I'm trying to center this banner, it's in a div that has the same width so it's not exactly "centering" but it's screwed up, It works in safari but in Firefox it's messed up. I uploaded a Video to show what I'm talking about.
(*WARNING, TAKES A WHILE TO LOAD*)
*HTML*
*CSS*
(*WARNING, TAKES A WHILE TO LOAD*)
*HTML*
Code:
<html>
<head>
<title>James Mann - Portfolio</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><style type="text/css">
<!--
body {
background-color: #9cad32;
}
-->
</style></head>
<body>
<div id="topbar">
<div id="buttonconatiner">
<div id="buttons">
<ul>
<li class="selected"><a href="http://pdhtdev.johnabbott.qc.ca/students/2010/james_mann/portfolio/index.htm">Home</a></li>
<li><a href="#">Media</a></li>
<li><a href="websites.htm">Websites</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">About Me</a></li>
</ul>
</div>
</div>
</div>
<div id="wrapper">
<div id="container">
<div id="banner">
<a href="#"></a>
</div>
<div id="flashtop">
<script type="text/javascript" src="flashobject.js"></script>
<div id="flashban" style="width: 700px; height: 150px"></div>
<script type="text/javascript" language="javascript">
var fo = new FlashObject("flashbanner2.swf", "flashban", "700", "150", "7", "#000000, true");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.addParam("wmode", "transparent");
fo.write("flashban");
</script>
</div>
<div id="content">
<h1>Updates!</h1>
<p class="bigz"> Biography will be moved to the "About Me" page soon - "Websites" page up and with content - "Artwork" to be changed to "Media" because I will be posting my Music and Digital Artwork but currently Artwork/Projects/About Me are non-existent. Please email me any suggestion, email link at the bottom of the page.</p>
<h2>Biography</h2>
<p class="bigz"> blah.</p>
<p class="bigz">blah</p>
<p class="bigz">blah</p>
<p class="bigz"> blah. </p>
</div>
</div>
<div id="footer">
© <a href="mailto:jwm@videotron.ca">James Mann</a>, 2008, Montreal
</div>
</div>
</div>
</body>
</html>
Code:
html,body {
margin:0;
padding:0;
}
a:visited {
color:#CC9900;
text-decoration:none;
}
a:hover {
text-decoration:underline;
}
a {
color:#CC9900;
text-decoration:none;
}
p {
line-height:17px;
padding-left:10px;
padding-right: 10px;
}
.bigz:first-letter {
font-size:150%;
line-height:0.8;
}
#container {
width: 700px;
font-family: serif;
font-size:14px;
color: #222222;
margin:0 auto;
border-left:solid 1px #333333;
border-right:solid 1px #333333;
overflow:hidden;
}
#wrapper {
width:750px;
margin:0 auto;
background-image: url(images/repeat-y-back.gif);
background-repeat:repeat-y;
overflow:hidden;
}
body {
text-align: center;
}
#banner {
width: 700px;
height: 150px;
text-align:center;
background-image: url(images/JamesBanner.gif);
}
h1 {
color:#ffffff;
display: block;
width: 700px;
padding-left:0px;
padding-right:0px;
padding-bottom:3px;
padding-top:3px;
margin-top:0px;
margin-bottom:5px;
border-top: solid 1px black;
border-bottom: solid 1px black;
background-color: #666666;
background-image: url(images/heading.gif);
font-size:16px;
text-align:center;
font-family: Verdana;
font-style:italic;
height:19px
}
h2 {
color:#ffffff;
display: block;
width: 700px;
padding-left:0px;
padding-right:0px;
padding-bottom:3px;
padding-top:3px;
margin-top:35px;
margin-bottom:5px;
border-top: solid 1px black;
border-bottom: solid 1px black;
background-color: #666666;
background-image: url(images/heading.gif);
font-size:16px;
text-align:center;
font-family: Verdana;
font-style:italic;
height:19px
}
#content {
width: 700px;
text-align:left;
overflow:hidden;
}
#content1 {
padding-left:10px;
padding-right: 10px;
width: 680px;
text-align:left;
overflow:hidden;
}
#footer {
margin:0 auto;
margin-top:0px;
width:750px;
height:50px;
background-image: url(images/footer.gif);
color: #CC9900;
font-style:italic;
font-size:12px;
font-family: Arial;
font-variant:small-caps;
margin-top:10px;
float:inherit;
}
/*NAVIGATION*/
#topbar {
width:100%;
height:30px;
font-family:Verdana;
font-variant:small-caps;
text-decoration:underline;
font-style:italic;
background-color:#353535;
background-image: url(images/button3.gif);
overflow:hidden;
}
#buttonconatiner {
width:700px;
height:30px;
margin:0 auto;
overflow:hidden;
}
#buttons {
margin:0 auto;
height:30px;
width:700px;
text-align:center;
overflow::hidden;
}
#buttons ul {
height:30px;
float:none;
clear:both;
padding:0px;
margin-top:0px;
margin-bottom:0px;
margin-left:0px;
margin-right:0px;
overflow:hidden;
}
#buttons li {
padding-top:3px;
padding-bottom:0px;
padding-left:0px;
padding-right:0px;
height:30px;
width:140px;
text-align:center;
list-style-type: none;
float:left;
display:block;
overflow:hidden;
}
.selected, .selected a {
color:#e1a902;
overflow:hidden;
background-repeat:repeat-x;
}
#buttons li:hover {
background-color:#CC9900;
background-image: url(images/button3sel.gif);
height:30px;
width:140px;
text-decoration:underline;
overflow:hidden;
}
ul a,a:visited,a:focus {
color:#ffffff;
text-decoration:none;
}
li {
text-decoration:none;
}
/*FLASH BANNER*/
#flashtop {
position:absolute;
width: 700px;
height:150px;
top:30px;
text-align:center;
margin:0 auto;
z-index:99;
}
#flashban {
position: absolute;
width: 700px;
height:150px;
top:0px;
text-align:center;
margin:0 auto;
z-index:99px;
}
/* THUMBNAIL PREVIEWZZZ!*/
ul.gallery{
list-style-type: none;
margin-bottom: 20px;
}
ul.gallery li{
width: 216px;
margin: 5px;
border: 1px solid #CCCCCC;
background-color: #FFFFFF=;
text-align: center;
}
ul.gallery li a, .comingsoon{
border: 3px solid #FFFFFF;
text-decoration: none;
display:block;
height: 170px;
width: 210px;
}
.comingsoon{padding-top:3px;}
ul.gallery li a:hover{
border-top-color: #CCCCCC;
border-right-color: #CCCCCC;
border-bottom-color: #CCCCCC;
border-left-color: #CCCCCC;
background-color: #CCCCCC;
}
ul.gallery span{
color: #666666;
background-color: #FFFFFF;
float: left;
width: 204px;
text-align: center;
padding: 3px;
font-size: 10px;
margin-top: 3px;
}
ul.gallery a:hover span{
background-color: #CCCCCC;
}
Comment