mpsn Posted February 13, 2012 Share Posted February 13, 2012 Hi, what's the difference b/t: .header img { width:200px; height:220px; margin-top:-10px;/*we have to overlap and go past the header padding of 10px (see above)*/ border-right:1px solid black; } compared w/ : img.header { /*etc*/ } I tried the img.header and the image takes up entire space in my header, whereas .header img{/*stylle info*/}. Any hope appreciatedd Quote Link to comment Share on other sites More sharing options...
requinix Posted February 13, 2012 Share Posted February 13, 2012 .header img selects any IMG that's a descendant of any class=header element. img.header selects any IMG with a class=header. You need to find yourself a tutorial or book on CSS. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.