I'm trying to wrap a list around a block and IE doesn't make my life easier.
The block is floating on the left, so I expect the list to be on the right. While it works in all browsers, it looks pretty ugly in IE, because IE puts the text on the right and the bullets on the left of the image.
Look at the example: http://jsfiddle.net/xA9n8/
How to fix this?
UPD: I tested it in IE9.
Use the markup code <BR CLEAR=”left” /> to flow text around images on opposite sides of your Web pages.
Enter . left { float: left; padding: 0 20px 20px 0;} to the stylesheet to use the CSS "float" property. (Use right to align the image to the right.) If you view your page in a browser, you'll see the image is aligned to the left side of the page and the text wraps around it.
Wrapping the text around an image is quite attractive for any kind of website.By using HTML and CSS wrapping an image with the text is possible and there are many ways to do so because the shape of any image is not constant.
In order to get the text to flow around the image, you need to use the CSS property called float. In principle, using float is very simple, and it can be used on any HTML element, not just images.
For the googlez:
#somebox ul li {
list-style-position: inside;
}
Giving the list items the property float:left;
seems to work. You may want to insert a <div style="clear: left;" />
afterwards to prevent further elements from floating.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With