ordered list next to floated element: issue with vertical alignment and text indent
Hi,
I have an issue with an ordered list.
When the line wraps, in IE6 the number aligns suddenly to the bottom. And the text indentation Firefox goes wrong also. It should properly align with the first line of the wrapping <li>.
The same list could appear next to floated element or stand to the left side of the box.
I had to use a separate stylesheet for IE only to get the left margin right in all browsers.
Get a decent CMS, the restrictions are ridiculous.
Thanks for the tip but I think it's a fairly simple and straight forward structure. How would you achieve the same flexibility (wrapping text around image) in an other way?
Originally Posted by Fang
Alternatively, as this is the second related posting, it's sounding more like homework which you should be solving yourself.
Excuse me, but i spend some hours trying to solve this myself! Without any luck...
The problem is with the lists, once you change margin, padding or float the list-style-type tends to disappear depending on the property values used.
The easiest way is to place a background image in the li in place of the bullets.
If you look through this typical css reset list, you will notice that lists are displayed is simple lines of text. Consequently any further changes to their properties will render them the same across all browsers.
I can not see why a CMS would restrict you in such a way.
At least 98% of internet users' DNA is identical to that of chimpanzees
The easiest way is to place a background image in the li in place of the bullets.
If you look through this typical css reset list, you will notice that lists are displayed is simple lines of text. Consequently any further changes to their properties will render them the same across all browsers.
Maybe I wasn't clear: the current issue is with the ordered list, not the bullets. The bullets work fine now. As described in the example page: in IE6 the number of the ordered list aligns to bottom of the two lines when it wraps and in Firefox the second line of the wrapped text indents unwanted.
Bookmarks