my goal is to position #content and #slideshow next to each other at the same height. i'm not sure if i should be padding or using margin. i'm new to css and doing my best to hand code the whole thing. ( except javascript )
also, is there a way to change the background color on the text below the slideshow?
thanks for any help.
here is the link:
http://traditionalfocus.com/brcatest.html
and 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>Beacon Rock Climbers Association - Home Page</title>
<style type= "text/css">
body {
background-color: black;
}
#container {
width: 590px;
height: 530px;
margin-left: auto;
margin-right: auto;
border: 1px solid black;
background-image: url(brcabackground.jpg);
background-color: gray;
font-family: arial, sans serif;
font-size: .75em;
}
#container img {
margin-top: 20px;
}
#header img {
margin:0;
display: block;
float: left;
padding-left: 20px;
}
#content {
float: right;
width: 225px;
height: 220px;
border: 1px solid black;
text-align: left;
}
#nav_bar {
float: right;
margin: 0;
padding-right: 80px;
border-left: 2px solid white;
font-size: 1em;
}
#nav_bar ul {
padding-top: 10px;
margin-bottom: -3px;
}
#nav_bar li {
list-style-type: none;
width: 0px;
background-color: gray;
text-align: center;
}
#nav_bar a {
color: white;
text-decoration: none;
}
#nav_bar a:hover {
color: black;
}
#slideshow {
float:left;
padding-top: 90px;
}
</style>
</head>
<body onload=runSlideShow() bgcolor=#000000>
<div id="container">
<div id="header">
<img src="gabes_beacon.gif"alt="brca header"/>
</div>
<div id="nav_bar">
<ul>
<li style="margin-top:40px"><a href="http:www.url.com">home</a></li>
<li><a href="http:www.url.com">pics</a></li>
<li><a href="http:www.url.com">topos</a></li>
<li><a href="http:www.url.com">forum</a></li>
<li><a href="http:www.url.com">contact</a></li>
</ul>
</div>
<div id="content">
<p>this is where the content will be written. this is where the content will be written.
this is where the content will be written.this is where the content will be written.
this is where the content will be written.this is where the content will be written.</p>
</div>
<div id="slideshow">
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<!--
The next table cell holds the images.
Set cell and image width and height the same.
The img src must have name=PictureBox in its
tag. Usually the first image in the Picture
array in the script is used here.
//-->
<td width=350 height=280>
<img src=Image001.jpg name=PictureBox width=350 height=280>
</td>
</tr>
<tr>
<!--
The next table cell holds the captions.
This table cell must have id=CaptionBox and
class=Caption in its tag. The default caption
shows whilst loading in all browsers; NS4
will show only the default caption, throughout.
//-->
<td id=CaptionBox class=Caption align=center bgcolor=#80C9FF>
This is the default caption.
</td>
</tr>
</table>
</div>
</div>
</body>
</html>