Lining up CSS objects horizontally
Posted: Tue Dec 06, 2005 12:18 am
I can never get CSS to line up text next to an image or basically line up anything horizontally without using tables. If you aren't sure what I mean, look at my code:
Oh, and I know about float and I dont like it.
Oh, and I know about float and I dont like it.
Code: Select all
<div class="main_body" align="left">
<p><span><img src="images/spacer.gif" width="110" height="150" border="1" /></span>
<span>asdfasda sd fasdf asdf</span> <-- This text should be lined up next to the image beside it but it shows up below. -- />
</div>
<div class="main_body" align="left">
<h1>Title</h1>
<p>asdf ad</p>
</div>