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 Link to comment https://forums.phpfreaks.com/topic/257009-regarding-differences-in-variable-named-class-selector/ 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. Link to comment https://forums.phpfreaks.com/topic/257009-regarding-differences-in-variable-named-class-selector/#findComment-1317512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.