I am new to using divs and css for layout. I have a simple one row, 6 column table, and would like to know if I have missed a better way of coding it. Also, I have a css instruction to align the text vertically in the middle, which for some reason does not happen. Any suggestions there?
...and the xhtml:
Thanks in advance for any help.
Code:
.tableq {display: table; border: 0px solid red; width: 465px; }
.rowq {display: table-row;}
.one {border: 0px; display: table-cell; width: 22px; float: left;}
.two {border: 0px; display: table-cell; width: 104px; height: 44px; float: left; background-color: #282484; vertical-align: middle; }
.three {border: 0px; display: table-cell; width: 104px; height: 44px; float: left; background-color: #282484; vertical-align: bottom; }
.four {border: 0px; display: table-cell; width: 104px; height: 44px; float: left; background-color: #282484; vertical-align: middle; }
.five {border: 0px; display: table-cell; width: 104px; height: 44px; float: left; background-color: #282484; vertical-align: middle; }
.six {border: 0px; display: table-cell; width: 22px; float: left;}
...and the xhtml:
Code:
<div class="tableq">
<div class="rowq">
<div class="one"><img src="images/linkbarleft.gif" alt="alt" /></div>
<div class="two"><a class="helpcontentyel" href="blogsite/">Archives</a></div>
<div class="three"><a class="helpcontentyel" href="blogsite/">Archives</a></div>
<div class="four"><a class="helpcontentyel" href="blogsite/">Archives</a></div>
<div class="five"><a class="helpcontentyel" href="blogsite/">Archives</a></div>
<div class="six"><img src="images/linkbarright.gif" alt="alt" /></div>
</div>
</div>
Thanks in advance for any help.