Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,256
Total Threads: 106,575
Total Posts: 592,699
There are 86 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Can I achieve the following with 1 line? nth-of-type

Thread title: Can I achieve the following with 1 line? nth-of-type
Reply    
    Thread tools Search this thread Display Modes  
12-13-2012, 02:31 PM
#1
Dan is offline Dan
Dan's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 3,164
iTrader: 15 / 86%
 

Dan is an unknown quantity at this point

  Old  Can I achieve the following with 1 line? nth-of-type

HTML Code:
li:nth-of-type(1),
li:nth-of-type(6),
li:nth-of-type(11),
li:nth-of-type(16) {}
Start at 1 then every 5th.

Reply With Quote
12-13-2012, 02:36 PM
#2
Dan is offline Dan
Dan's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 3,164
iTrader: 15 / 86%
 

Dan is an unknown quantity at this point

  Old

Nevermind.

Code:
li:nth-of-type(5n+1) { margin-left:0 }
Worked it out seconds after posting. As usual.

Reply With Quote
Reply    


Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed