03-19-2009, 07:02 PM
|
#27 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Ok, I uploaded my DIV test to my server. Could you take a look?
It's aligned to the left, I removed the position attribute.
Below is the exact code for FYI:
DIV TEST PAGE
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test page</title>
<body style="margin:0 auto;">
<div id="layer1" style="top:50; width:1024; height:100; z-index:1; padding:0px; border:#e0e0e0 1px dashed; background-color:#EEEEEE;">
<div style="width:20; height:20;border:#CCCCCC 1px solid;float:left">#</div>
<div style="width:200; height:20;border:#CCCCCC 1px solid;float:left">Name</div>
<div style="width:250; height:20;border:#CCCCCC 1px solid;float:left">Address</div>
<div style="width:300; height:20;border:#CCCCCC 1px solid;float:left">Location</div>
<div style="width:75; height:20;border:#CCCCCC 1px solid;float:left">City</div>
<div style="width:75; height:20;border:#CCCCCC 1px solid;float:left">State</div>
<div style="width:102; height:20;border:#CCCCCC 1px solid;float:left">ZIP</div>
</div>
</body>
</html>
Also, is there anyway to clean up the DIV attributes? Perhaps with CSS? It looks just as messy as using TABLES almost...
|
|
|
|