On Wed, Mar 4, 2009 at 10:51 AM, Michael Slater <[email protected]> wrote:
> 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
>
> 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
>

You can do a couple things:

1. not use a list, but add your bullets to classed paragraphs (as
background images) with appropriate padding, so that they look like a
list.
2. wrap the contents of each li in a span, use position-inside, then
give those spans a margin or padding to fudge the indent of
position:outside
3. change your design.

None of the options are the sort that you dream about, but they all
give you the look you want.

cheers.
______________________________________________________________________
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