Suppose I have a page with a floated image on the left, and text that wraps
around it.

Any margins or padding set in the text are relatively to the left edge of
the page, not relative to the right edge of the floated object, so I can't
figure out how to position things away from that edge. In particular, bullet
lists, even with all the proper padding and spacing for normal
circumstances, drop their bullets outside the left margin of the text, since
their padding and margin is being interpreted as being relative to the left
edge of the page.

For example, see www.webvanta.com/indent_test.html

This shows a grey box that is floated left, with a bullet list to its right.
The ul is set with a huge 3 em padding-left, so it would be way away from
the box, but because the padding is interpreted as being away from the left
edge, not away from the box, it doesn't work.

You can see the second bullet list, which has exactly the same formatting
but is below the object, and there of course the padding works fine. What I
want is for the both lists to have the same formatting.

Some "solutions" that aren't acceptable for me:

- Can't set the margin for a div that encloses the text, because it needs to
wrap below the object to the left when the text reaches the bottom of the
object

- Can't use position:inside because the hanging indent is an important part
of the list formatting

I'd appreciate any suggestions. This seems like it must be a common issue
but I've spent a bunch of time searching and haven't found the answer.

Thanks,

Michael
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to