Breadcrumb NavXT image problem in IE7
-
I’m using an image in the first element of the breadcrumb (image for the home) by using this css code:
.breadcrumbs a:first-child{background: url(“myImage”) no-repeat;padding-left:14px;}This works perfect in all browsers. But IE7 has a problem with the first-child element and comments. If you have a comment, IE7 thinks that this comment is the first child.
For example, if you have:
<div class=”myDiv”>
<!– this is my comment –>
first link
second link
</div>
For IE7 the comment is the first-child.
And by default, when you use the Breadcrumb NavX you get this code:
<div class=”breadcrumbs”>
<!– Breadcrumb NavXT 3.8.1 –>
firstLink /
SecondLink /
actual page
</div>
You can see that before the first link there’s a comment. And thats why in IE7 it doesn’t show my image.
Anybody knows a workaround or a way to delete or move the comment?
thanks
- The topic ‘Breadcrumb NavXT image problem in IE7’ is closed to new replies.