Forum Moderators: not2easy
/*left margin adjusted as bg was showing*/
.dm1 .item1:hover,
.dm1 .item1-active,
.dm1 .item1-active:hover {
background: transparent url(images/scsmenubtn4.gif)
-196px 0 no-repeat;
color: #ccccff; }
I hope that explains itIt did - and sorry for missing what should have been obvious.
I even dumped cache and history is Win IE 6 and still the image doesn't show up after the page is visited.I thought you would, just noting I always use a separate "cache cleaner" programme, and periodically cold (re)boot because ie6 is so troublesome.
I added "visited" in these two places:Not quite what I was referring to:
/*left side bar is 200 px and also faux col*/
.dm1 { font-size: 14px;
width:192px;
margin:0;
padding:2px 2px 10px 4px; }
/*to position text above button*/
.dm1 .item1
/*.dm1 .item1:hover - redundant as declarations will be inherited */
/*.dm1 .item1-active, - class not present in provided html*/
/*.dm1 .item1-active:hover - class not present in provided html*/ {
padding: 5px 0 6px 8px;
text-decoration: none;
font-weight:bold;
display: block;
position: relative;
background: transparent url(lorel1.gif) 0 0 no-repeat; /* on one line as ie6 detests breaks */
color: #ccccff; }
/* removed this rule and set it as the default on item1 above
menu btn is 388 or 194x2 px wide
.dm1 .item1 {
background: transparent url(lorel1.gif)
0 0 no-repeat;
color: #ccccff; } */
/*left margin adjusted as bg was showing*/
.dm1 .item1:hover
/*.dm1 .item1-active, - class not present in provided html*/
/*.dm1 .item1-active:hover - class not present in provided html*/ {
background: transparent url(lorel1.gif) -196px 0 no-repeat;
/*color: #ccccff; */ }
.dm1 .item2
/*.dm1 .item2:hover */ {
width:180px;
padding: 3px 8px 4px 8px;
text-decoration: none;
display: block;
white-space: nowrap;
background: url(lorel2.gif) 0 0 no-repeat;
color: #ccccff; }
/*.dm1 .item2 {
background: url(lorel2.gif) 0 0 no-repeat;
color: #ccccff; } */
/*left margin adjusted as bg was showing*/
.dm1 .item2:hover {
background: url(lorel2.gif) -194px 0 no-repeat;
/*color: #cccccc; */ }
/*.dm1 .section { deleted as was causing position issues, and wasn't part of the problem
position: absolute;
visibility: hidden;
z-index: -1;} */
/*.dm1 .bottom, - class not present in provided html*/
/*.dm1 .bottom:hover { border-style: solid solid solid solid; } */
/** html .dm1 td {position: relative; } ie 5.0 fix - element not present in provided html*/
.dm1 {... and still couldn't reproduce the issue. After trying quoted/un-quoted background-images, different styles (and images) for the link states, no change in styles for the link states, the only issues were caching.
font-size: 14px;
width:192px;
margin:0;
padding:2px 2px 10px 4px; }
a.item1, a.item1:visited /*explicitly specified the <a> in case ie was having (illogical) issues with it being classed */ {
padding: 5px 0 6px 8px;
text-decoration: none;
font-weight:bold;
display: block;
position: relative;
background: transparent url(images/scsmenubtn4.gif) 0 0 no-repeat;
color: #ccccff; }
a.item1:hover {background: transparent url(images/scsmenubtn4.gif) -196px 0 no-repeat; }
/* styles used for testing */
a.item1 {border:1px solid red; }
a.item1:hover {border:5px solid fuchsia;}
a.item1:active, a.item1:focus {background:transparent url(images/scsmenubtn4b.gif) 0 0 no-repeat;/*other button forces change*/
border:5px solid lime; }
dm1 .item1,Can you try inserting it as above, and let me know if that fixes the issue at your end as well?
.dm1 .item1:visited, <--- add the :visited pseudo class
.dm1 .item1:hover,
.dm1 .item1-active,
.dm1 .item1-visited,
.dm1 .item1-active:hover
However, the .dm1 .item1:visited, is already there (next to last line).Hi lorel, as I said way-back, that is a class, not the the pseudo-class you need
I tried background = transparent in ordinary link code, with no change either.background [w3.org] is shorthand for all the background properties. "none" isn't actually a permited value, even though it sometimes "works". ("None" is permitted value for background-image.) Given the way you've used "background", I think what you really want is background-color:transparent, or background-color:inherit.
I also tried moving the ordinary link code above the left menu code in css file and that didn't fix it either.A good test - and result is as expected. The "ordinary link" code explicitly provides background:none for a:link, a:visited, a:hover, a:active. ie6 is treating that as background-image:none, and that is taking priority over any inherited declarations for .dm1 .item1 when it is in the visited state. (Hence no image being displayed)
I took the ordinary link code back out of css and it works fine in IE 6.Yup, because doing so removes
a:link, a:visited {With that out of the code ie6 does not see a rule that it interprets as a:visited {background-image:none} - or "don't display a background-image". That means .dm1 .item1 inherits (and displays) the background-image when it is in the :visited state - even if .dm1 .item1:visited hasn't been explicitly stated.
...background: none; ...}
WebmasterWorld comes in very small print.... ah yes, the shrinking text effect. Newspapers, road signs, television captions, and recently WebmasterWorld as well ... hoping it's a design fad that will pass in a few years ;)