setting the widths of SPANS

M

mark | r

Hi there

im setting the widths of spans to indent content i.e.

<span>number of items</span>0
<span>subtotal </span>£0.00

it looks great in ie quirks mode, but not when i add a doctype
(transitional)

what do i need to to to recreate this functionality?

thanks

mark
 
S

Steve Pugh

mark | r said:
im setting the widths of spans to indent content i.e.

<span>number of items</span>0
<span>subtotal </span>£0.00

it looks great in ie quirks mode, but not when i add a doctype
(transitional)

inline elements don't support the width property. Quirks mode is
wrong.
what do i need to to to recreate this functionality?

The sample data above looks like a table might be appropriate.

Otherwise, the most widely supported alternative might be
span {float: left; clear: left; width: XXXem;}

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top