I have a design that I think is really cool. I want to use it for my website but I have tried for weeks and then finially gave up because I can’t figure out how to do it without using tables.
I’ve seen a ton of articles on how to do it using DIVs but none of them ever worked for my exact design. I haven’t done anything with this for a few months now, and I’m getting interested again.
Does anyone know how to modify this to use DIVs instead of tables? I’ve been told its simple, but I was never able to get it right.
This one expands when I resize the browser, but even a fixed version that is centered would be fine.
Is this even possible or am I stuck with tables? I would really like to get this website going but I can’t put it out there using tables, it bugs me too much.
There is 16 images I made in Photoshop to make the two boxes, but the images are REALLY tiny, they are 1KB each.
<!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>
<title>MrGeeker</title>
<link href="style/default.css" rel="Stylesheet" type="text/css" />
</head>
<body>
<table class="outer-rounded-box">
<tr >
<td class="outer-top-left"></td>
<td class="outer-top"></td>
<td class="outer-top-right"></td>
</tr>
<tr>
<td class="outer-left"></td>
<td class="content">
<div id="navbar">
<a href="#">Home</a> • <a href="#">About</a> • <a href="#">Contact</a> •
</div>
<table class="inner-rounded-box">
<tr>
<td class="inner-top-left"></td>
<td class="inner-top"></td>
<td class="inner-top-right"></td>
</tr>
<tr>
<td class="inner-left"></td>
<td class="content">
<div id="logo">
<img src="style/images/main-logo.png" alt="MrGeeker Logo" width="350px" height="150px" />
</div>
Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah <br />
Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah <br />
</td>
<td class="inner-right"></td>
</tr>
<tr>
<td class="inner-bottom-left"></td>
<td class="inner-bottom"></td>
<td class="inner-bottom-right"></td>
</tr>
</table>
<div id="footer">
<a href="#">Privacy Statement</a> • <a href="#">Terms of Service</a>
<br /><br />Copyright © 2009-2010 MrGeeker<br/>
All Rights Reserved.
</div>
</td>
<td class="outer-right"></td>
</tr>
<tr>
<td class="outer-bottom-left"></td>
<td class="outer-bottom"></td>
<td class="outer-bottom-right"></td>
</tr>
</table>
</body>
</html>
body
{
font-family: Sans-Serif, Arial, Helvetica;
}
a, a:hover, a:visited
{
color: #FFFFFF;
text-decoration: none;
font-size: 14px;
}
label
{
margin-left: 20px;
}
input
{
margin-left: 20px;
width: 50%;
}
input.click-button
{
width: 35%;
}
textarea
{
margin-left: 20px;
height: 150px;
width: 80%;
}
.required-field
{
color: #FF0000;
font-weight: bold;
}
.header-text
{
color: #FF6600;
font-weight: bold;
}
.content-text
{
color: #000000;
padding-left: 18px;
width: 50%;
}
.content-text-alternate
{
margin-left: 20px;
color: #2C8FC4;
font-weight: bold;
}
#logo
{
text-align: center;
margin: 8px;
}
#navbar
{
font-weight: bold;
text-align: center;
margin-bottom: 4px;
}
#footer
{
font-weight: bold;
text-align: center;
margin-top: 4px;
font-size: 12px;
}
table.outer-rounded-box
{
margin: 1px auto 1px auto;
border-collapse: collapse;
background-color: #2C8FC4;
color: #FFFFFF;
width: 95%;
min-width: 500px;
}
table.inner-rounded-box
{
margin: 1px auto 1px auto;
border-collapse: collapse;
background-color: #FFFFFF;
color: #000000;
width: 100%;
min-width: 400px;
}
table.outer-rounded-box td
{
padding: 0px;
}
table.inner-rounded-box td
{
padding: 0px;
}
table.outer-rounded-box td.outer-top-left { width: 46px; height: 47px; }
table.outer-rounded-box td.outer-top-right { width: 46px; height: 47px; }
table.outer-rounded-box td.outer-bottom-left { width: 46px; height: 47px; }
table.outer-rounded-box td.outer-bottom-right { width: 46px; height: 47px; }
table.outer-rounded-box td.outer-top { width: auto; height: 12px; }
table.outer-rounded-box td.outer-bottom { width: auto; height: 12px; }
table.outer-rounded-box td.outer-left { width: 14px; height: auto; }
table.outer-rounded-box td.outer-right { width: 14px; height: auto; }
table.inner-rounded-box td.inner-top-left { width: 29px; height: 32px; }
table.inner-rounded-box td.inner-top-right { width: 29px; height: 32px; }
table.inner-rounded-box td.inner-bottom-left { width: 29px; height: 32px; }
table.inner-rounded-box td.inner-bottom-right { width: 29px; height: 32px; }
table.inner-rounded-box td.inner-top { width: auto; height: 12px; }
table.inner-rounded-box td.inner-bottom { width: auto; height: 12px; }
table.inner-rounded-box td.inner-left { width: 10px; height: auto; }
table.inner-rounded-box td.inner-right { width: 10px; height: auto; }
.outer-top-left { background: url('images/outer-top-left.png') no-repeat top left; }
.outer-top-right { background: url('images/outer-top-right.png') no-repeat top right; }
.outer-bottom-left { background: url('images/outer-bottom-left.png') no-repeat bottom left; }
.outer-bottom-right { background: url('images/outer-bottom-right.png') no-repeat bottom right; }
.outer-top { background: url('images/outer-top.png') repeat-x top; }
.outer-bottom { background: url('images/outer-bottom.png') repeat-x bottom; }
.outer-left { background: url('images/outer-left.png') repeat-y left; }
.outer-right { background: url('images/outer-right.png') repeat-y right; }
.inner-top-left { background: url('images/inner-top-left.png') no-repeat top left; }
.inner-top-right { background: url('images/inner-top-right.png') no-repeat top right; }
.inner-bottom-left { background: url('images/inner-bottom-left.png') no-repeat bottom left; }
.inner-bottom-right { background: url('images/inner-bottom-right.png') no-repeat bottom right; }
.inner-top { background: url('images/inner-top.png') repeat-x top; }
.inner-bottom { background: url('images/inner-bottom.png') repeat-x bottom; }
.inner-left { background: url('images/inner-left.png') repeat-y left; }
.inner-right { background: url('images/inner-right.png') repeat-y right; }