Thread: CSS/HTML Help
View Single Post
  #6 (permalink)  
Old 30-October-2007, 07:08 AM
The_Radiation_Specialist's Avatar
The_Radiation_Specialist The_Radiation_Specialist is offline
Senior Member
 
Join Date: Dec 2005
Posts: 1,556
Send a message via Yahoo to The_Radiation_Specialist
Default

If you're using vertical-align or valign then that's the problem since it doesn't work well for divs in IE.

try to go with a table cell, or use absolute positioning:

Code:
<html>
<body leftmargin="0px" topmargin="0px">
	Using absolute positioning
	<div style="width:300px;height:300px;border:solid 1px #000000;">
		<div style="left:100px;top:100px;width:100px;height:100px;border:solid 1px #000000;position:absolute;z-index:2">
		
		</div>
	</div>
	Using table cells
	<table cellspacing="0px">
		<tr>
			<td align="center" valign="middle" width="300px" height="300px" style="border:solid 1px #000000">
				<div style="width:100px;height:100px;border:solid 1px #000000;"></div>
			</td>
		</tr>
	</table>
</body>
</html>
__________________
Female software engineers become sexually irresistible at the age of consent, and remain that way until about thirty minutes after clinical death. Longer if it's a warm day.
Reply With Quote