Previous Message
Next Message

Re: how to vertical align text with top of adjacent image

Sent by Antonio Bueno Delgado on 30 December 2004 19:07


Hello, Susan.

> I have a square image that I want three lines (one word each line) of
> text to appear next to. The square is first on the left and the three
> words are to follow:
> -------------|First word
> -------------|Second word
> -------------|Third word

If I understand what you want you just need to left-float your
"compassW.jpg" image. As it is inside the #logo element, just add
#logo img { float: left; } to your stylesheet. You can even put the
company name in a <h1>, define a width for it to achieve the
linebreaks and forget about those ugly <br>.

As for learning CSS, your header layout is simple enough. You don't
need that table. And you'll probably want to right-float the other
image.

-- 
Saludos,
 Antonio

http://www.mundoplus.tv/
Televisión por satélite en España

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: