css - css3 selector, nth child incrementing by 1 -


I am using css3 selector to select different children. This is an alternative option instead of hardcoding.

  .checkout_main .check_tr th: nth-child (1) {width: 50px; Padding-left: 10px; } .check_tr th: nth-child (2) {width: 300px; Padding-left: 10px; } .check_tr th: nth-child (3) {width: 50px; Padding-left: 10px; } .check_tr th: nth-child (4) {width: 100px; Padding-left: 10px; }  

There are two options

  you can do Use even weird: nth-child (weird) {width: 100px; }: Nth-child (even) {width: 200px; } Another way is to prepare A + B. Then it works, I have my html address. I will try you and tell you a + B form. 


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -