|
djcc -> IE6 - same id with different classes not working. (9/16/2007 18:13:13)
|
Code: #content {
margin: 0; }
#LeftSide,
#RightSide {
margin: 3px 8px;}
/* only the first one works */
#LeftSide.3bss {
margin: 3px 0px 3px 8px!important;}
#LeftSide.3ssb {
margin: 3px 0px 3px 8px!important;}
/* same problem */
#content.3bss {
margin: 3px 0 3px 8px !important;}
#content.3ssb {
margin: 3px 8px 3px 0 !important;} Classic sidebar content structure. Options exist to place sidebars on right or left. In my case, I need to adjust margins based on these combinations. As you can see, margins are initially set to default values. #LeftSide.3bss margins work - definitely override the defaults. The second version - #LeftSide.3ssb does NOT work... at least, not as long as #LeftSide.3bss exists. If I comment that one out, then #LeftSide.3bss will work. Same for the 2 #content versions. Only seems to interpret the first instance of an id/class combination and will not allow any further combinations using the same id with a different class. Anyone have a solution, or am I doing something wrong here?
|
|
|
|