I am having a nightmare, been trying all day with this, and searched google with no success. I have a little navigation that is floated to left and I wanted to make it work for RTL language. It worked fine in FireFox but IE6 does not display it at all.
Can someone tell me why?
The HTML is the default markup.. nothing fancy
<div id='topnav'> <ul> <li><a href='#'><?php print NAV_HOME; ?></a></li> <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?> </ul> </div>
#topnav ul { float: left; margin: 0 0 0 30px; } #topnav li { float: right; padding: 0;margin:0; margin-left: 10px; padding-left: 10px; background: url(img/topnav_br.png) no-repeat left center; }
The point is that it will be floated to left, but LI items will start from right to left because its RTL lanuage.. but this code above shows nothing in IE6 but works in FF.
Somebody please tell me what I am doing wrong here.
Thanks!
You haven’t provided enough information. If you did not specify a width, IE will default to 100% of the available room (within its parent).
The following code (with background colors) clearly displays (in IE6) with the list items floated all the way to the right within the ul (and actually 30px off the display window with a double margin on the left). We do not know what your containers are (if any) or what doctype (if any) you are using. We do not know what else is being floated.