1 reply [Last post]
mfarris
Offline
newbie
Last seen: 14 years 50 weeks ago
Joined: 2008-06-16
Posts: 1
Points: 0

Hi, I'm new to CSS. I have the following code in my html:

Image
Welcome
Image

I wish for these 3 images just to be aligned on one line: the first one to the left of the browser window, the 2nd one in the center, and the 3rd one to the right. What is the best way to do this? I should use CSS instead of correct?

Thanks

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Well as 'img' is an inline

Well as 'img' is an inline element in 'strict' dtd it should naturally do what you require unless you have constraints on the parent width which might force the images to wrap to a new line. You have provided only a snippet of code though so it's hard to advise further. Please check the posting guidelines as they explain what we need provided in order to help effectively.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me