css - .class + .class doesn't work -


i'm trying figure out how use .class + .class feature in css , cannot figure out how make work. i'm trying to when .reglink classes next each other adds margin of 50px between them. doing wrong?

here's jsfiddle: http://jsfiddle.net/rtohocql/

html

<a href="#" class="reglink">register</a>  <a href="#" class="reglink">login</a> 

css

.reglink + .reglink {     margin-right: 50px; } 

because .reglink + .reglink selecting second a tag,

so change margin-right margin-left

   .reglink + .reglink {         margin-left: 50px;     } 

jsfiddle http://jsfiddle.net/rtohocql/2/

about css + can read post http://www.w3.org/....


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -