Hello folks,
I'm converting over my site to XHTML & CSS, i've converted one page that had a table structure
i've managed to nearly duplicate it with DIV's
only as you can see i'm having dificulty in getting the spacing between the div's right. Can some one help as to am i correctly using the div's to replace my table and how do i set the spacing, i have tried to put a spacer div inbetween setting its height to 1px but that doesn't seem to work, I get a much bigger gap.
Here is the code
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I'm converting over my site to XHTML & CSS, i've converted one page that had a table structure
i've managed to nearly duplicate it with DIV's
only as you can see i'm having dificulty in getting the spacing between the div's right. Can some one help as to am i correctly using the div's to replace my table and how do i set the spacing, i have tried to put a spacer div inbetween setting its height to 1px but that doesn't seem to work, I get a much bigger gap.
Here is the code
Code:
<div align="center"><img src="images/hlp-lenders.jpg" title="HLP Lender Partners" border="0" alt="HLP Lender Partners" /></div>
<div align="center">
<div align="center" style="width:610px;">
<div align="left" class="titlecell" onmouseover="window.status='Please choose a menu option'"> HLP Lender Partners</div>
<div style="width:300px; height:80px; padding:2px; float:left">
<div class="table" style="padding:2px;">
<img src="images/dtl.gif" onmouseover="window.status='Direct Lender Panel'" onmouseout="window.status='Please choose a menu option'" title="Direct Lenders" style="cursor:pointer" border="0" alt="" onclick="window.open('/M2K-HLP2/directtolender.asp','DTL',
'scrollbars=yes,width=420,height=545,fullscreen=no');" />
</div>
<div style="height:1px;"></div>
<div class="table" style="padding:2px;">
<a href="#" onmouseover="window.status='Direct to Lender Procuration Fees'" onmouseout="window.status='Please choose a menu option'" onclick="document.lenders.FA.value='COM'; document.lenders.PROV.value='DTL'; document.lenders.submit();">Direct to Lender<br /><img alt="" src="images/10quid.jpg" title="Lender Procuration Fees" style="cursor:pointer" border="0" /><br />Procuration Fees</a>
</div>
</div>
<div style="position:relative; width:300px; height:80px; padding:2px; float:right">
<div class="table" style="padding:2px;">
<img src="images/packaged.gif" onmouseover="window.status='Packaged Lender Panel'" onmouseout="window.status='Please choose a menu option'" title="Packaged Lenders" style="cursor:pointer" border="0" alt="" onclick="window.open('/M2K-HLP2/packagedlenders.asp','PKG',
'scrollbars=yes,width=420,height=375,fullscreen=no');" />
</div>
<div style="height:1px;"></div>
<div class="table" style="padding:2px;">
<a href="#" onmouseover="window.status='Packager Procuration Fees Menu'" onmouseout="window.status='Please choose a menu option'" onclick="document.location.href='lenders.cgi';">Packaged Products<br /><img alt="" src="images/10quid.jpg" title="Packager Procuration Fees" style="cursor:pointer" border="0" onclick="document.location.href='lenders.cgi';" /><br />Procuration Fees</a>
</div>
</div>
<div class="titlecell" onmouseover="window.status='Please choose a menu option'"> </div>
</div>
</div>
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.