[thelist] aligning text within inline elements
Tom Dell'Aringa
pixelmech at yahoo.com
Wed Jun 26 17:31:00 CDT 2002
--- "Means, Eric D" <eric.d.means at boeing.com> wrote:
> > -----Original Message-----
> > From: Tom Dell'Aringa [mailto:pixelmech at yahoo.com]
> > As we've seen on some recent emails, text-align works well for
> > aligning text in block level elements. My problem is this: I have
> > this type of thing happening --
> >
> > ..wrapper tables and stuff
> > <tr>
> > <td>
> >
> > <span>A Title Word</span> <span>Links</span>
> >
> > </td>
> > </tr>
> >
> > I need to get my Title word aligned LEFT, and my Links aligned
> RIGHT.
>
> In the CSS for the left span:
> span.left {
> float: left;
> width: 49%;
> }
> For the right span:
> span.right {
> float: right;
> width: 49%;
> }
>
> (the widths should not add to 100% because IE's fudgy box model
> gets screwy,
> but 98% works AFAIK. If you need one span or the other larger,
> just change
> the %s appropriately; 69%/29%, for instance).
That works great - as you said I just need to mess with the span
percentages. Thanks Eric!
Tom
=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
More information about the thelist
mailing list