Previous Message
Next Message

Getting info to vertically align to the center of a div

Sent by Joanne on 21 March 2006 06:06

I have the following css code:
background-color: #ffffff;
border: 1px dotted #CCCCCC;
padding: 3px;
margin-top: 8px;
height: 130px;

float: left;

float: inherit;
margin-left: 200px;}

and the following html:
<div id="fooddivs"><div id="foodimage"><img src="images/burgergodfather.jpg"
width="147" height="100"></div>
<div id="foodinfo">text will be going in here</div></div>

The information is vertically aligning to the top of the main div. How do I
get it to vertically align to the center?


css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message