I have been fighting with CSS all day long trying to get it to do what I want, to no avail. Basically, what I want the page to look like this (used tables to demonstrate):
http://sixpointnine.net/test/tables.html
I realize that I could have just went with the tables and moved on, but the whole point of this exercise is to familiarize myself with CSS. Something that has not gone all that well, which is the reason I'm now hoping someone can point out whatever mistake I have managed to overlook/not find the answer to for the past few hours. Anyway, here's what I've ended up with:
http://sixpointnine.net/test/index.html
The problem lies in trying to float the two images at the top, to opposite sides. I have tried so many ways to accomplish it, but all have failed. Many thanks to anyone that can shed some light on this for me.
http://sixpointnine.net/test/tables.html
I realize that I could have just went with the tables and moved on, but the whole point of this exercise is to familiarize myself with CSS. Something that has not gone all that well, which is the reason I'm now hoping someone can point out whatever mistake I have managed to overlook/not find the answer to for the past few hours. Anyway, here's what I've ended up with:
http://sixpointnine.net/test/index.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Title Here</title>
<meta http-equiv=content-type content="text/html; charset=UTF-8">
<style type="text/css">
body {
font:10pt Verdana, Arial, Helvetica, sans-serif; color:#000000;
background:#999999;
padding:0px;
margin:0px;
text-align:center;
}
a {
text-decoration:none;
font-weight:bold;
color:#FFCC00;
}
pre {
font-size:11px;
color:blue;
}
.top {
padding:0px;
width:100%;
border-bottom:2px solid #FF9900;
background:#666666;
}
span.left {
margin-left:10%;
margin-right:0px;
float:left;
text-align:left;
width:40%;
border-left:2px solid #FF9900;
}
span.right {
margin-right:10%;
maring-left:0px;
float:right;
text-align:right;
width:40%;
border-right:2px solid #FF9900;
background:#000000;
}
.mid {
margin-left:auto;
margin-right:auto;
width:80%;
height:100%;
background:#000000;
text-align:right;
border-left:2px solid #FF9900;
border-right:2px solid #FF9900;
}
</style>
</head>
<div class="top"><span class="left"><img src="dumbylogo.png" alt="" border="0"></span><span class="right"><img src="swatch.png" border="0" alt=""></span></div>
<div class="mid"><a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> </div>
</html>
The problem lies in trying to float the two images at the top, to opposite sides. I have tried so many ways to accomplish it, but all have failed. Many thanks to anyone that can shed some light on this for me.