Hello,
I have a main div, with two divs in it:
- Main div
---- div title
---- div content
And now I want to center the content div and title div in the main div, and its really anoying because nothing that i've found on internet is going to work.
<div id="crm-main">
<div id="crm-title">
<h1> New costomer </h1>
</div>
<div id="crm-content">
<table width="600px" border="1">
<tr>
<td>some data
</td>
</tr>
</table>
</div>
</div>';
The CSS I have (I have removed al the CSS I found that should center the divs):
#crm-main {
padding: 10px;
}
#crm-title {
border-bottom: 2px solid #595d66;
}
#crm-content {
margin: 4px;
}
When I just do vertical-align: middle; it do work in IE but not in FF.