...

View Full Version : CSS - Text and Image Align (Easy i think)



joroco
11-03-2006, 12:34 PM
Hi, just started now to understand how CSS layouts work and im making a site just using css.. no tables :thumbsup: yipi for me! :)

i have put a frame around my images and some information text below the picture. now i want more information about that picture on the right side of the picture.

here is the css:

#partners
{
width: 150px;
margin: 20px 10px 10px 0;
padding: 8px 8px 15px 8px;
border: 1px solid #000;
display: block;
background-color: #a8a8a8;
text-align: center;
align: left;
}

#partners img
{
border: 1px solid #000;
}

and here is the HTML

<div id="partners">
<img src="DB.jpg">
Lorem lorem disat sium.
</div>
</p>Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium. Lorem lorem disat sium.</p>


Should think its easy, but i cant figure it out.
I dont want the text to be inside to the right of the "picture frame" but on the outside (the text would then have no grey background)

hope someone can help!

THANKS! :thumbsup:

BonRouge
11-03-2006, 02:23 PM
Try this:
#partners {
float:left;
}

joroco
11-04-2006, 05:15 AM
thanks but i worked it out in the end... needed to add another 2 divs to get it all working fine...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum