I have an unordered list, I'm trying to hide the text in the list. I can do this 2 ways that i know of:
font-color: transparent; font-size: 0px;
I prefer the 0px method as its not selectable. This issue is neither way works in IE6. The first way just doesn't work in IE6 at all, the 2nd leave a 1PX high font.
Is there a way to hide the text in IE6?
This is a visual thing, I know you can read the text by reading the source and that is OK, I just need it to visually not be there.
text-indent: -777em; width: FOO; overflow: hidden;
Try one of these:
display: none;
visibility: hidden;
text-indent: -9999px;
Can't you mark the text in a span with a special class? This way you can use:
span.hidden {
display: none;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.