dux0r
07-27-2006, 01:54 AM
Hi all,
First off, I'm very new to CSS so bare with me while I try to explain what's going on.
First off my site is http://www.eurotripped.com It looks ugly right now because it's only about a week old and I'm trying to edit a template that I haven't written, so I'm trying to work out what's going on (and not having much luck)
As you can see there's a big white gap between the top of the section and the first post, I think this may have something to do with the Navigation bar on the left hand side.
There's three CSS files. I will include the one that I think is relevant to the question.
/* andreas01 - an open source xhtml/css website layout by Andreas Viklund - http://andreasviklund.com . Free to use for any purpose as long as the proper credits are given to the original author.
Version: 1.3 (Nov 28, 2005)
20060413 - Sebastiaan Brozius -> Changed #avmenu-items to be more specific to the primary links
#avmenu ul --> #avmenu ul#primary-links
#avmenu li --> #avmenu ul#primary-links li
#avmenu li a --> #avmenu ul#primary-links li a
#avmenu li a:hover --> #avmenu ul#primary-links li a:hover
Screen layout: */
body{
margin:0 auto;
padding:0;
background:#000000;
color:#303030; font-style:normal; font-variant:normal; font-weight:normal; font-size:76%; font-family:Verdana, Tahoma, Arial, sans-serif
}
#wrap{
background:#FFFFFF;
color:#303030;
margin:0 auto;
width:760px;
}
#header{
clear:both;
margin:20px 0 0 0;
padding:0;
height:45px;
}
#header h1{
width:250px;
margin:0 0 10px 0;
float:left;
}
#header p{
width:500px;
float:right;
text-align:center;
color:#a0a0a0;
margin:0 0 10px 0;
font-size:0.8em;
line-height:1.2em;
background-color:inherit;
}
#frontphoto{
border:0px none;; margin-left:0; margin-right:0; margin-top:0; margin-bottom:10px
}
#avmenu{
clear:left;
float:left;
width:150px;
margin:0 0 10px 0;
padding:0;
font-size:0.9em;
background:#FFFFFF;
text-transform:capitalize;
}
#avmenu ul#primary-links{ /* To change Menu Links */
list-style:none;
width:150px;
margin:0 0 20px 0;
padding:0;
font-size:1.1em;
text-transform:capitalize;
}
#avmenu ul#primary-links li{
margin-bottom:4px;
}
#avmenu ul#primary-links li a{
font-weight:bold;
height:20px;
text-decoration:none;
color:#505050;
display:block;
padding:6px 0 0 10px;
background:#CCFFFF; /* #f4f4f4; */
border-left:4px solid #cccccc;
}
#avmenu ul#primary-links li a:hover{
background:#eaeaea;
color:#286ea0;
border-left:4px solid #286ea0;
}
.announce{
margin:10px 0 10px 0;
padding:10px;
width:130px;
color:#505050;
background-color:#FFFFFF; /* #f4f4f4; */
line-height:1.3em;
}
#extras{
float:right;
width:120px;
margin:0 0 10px 0;
padding:0;
font-size:0.9em;
line-height:1.5em;
}
#extras p{
margin:0 0 1.5em 0;
}
#content{
margin:0 130px 20px 160px; /* margin:0 130px 20px 160px; */
border-left:1px solid #f0f0f0;
border-right:1px solid #f0f0f0;
padding:0 10px 0 10px; /* padding:0 10px 0 10px; */
line-height:1.6em;
text-align:left;
}
#content h2{
font-size:1.5em;
margin:0 0 0.5em 0;
}
#content img{
padding:1px;
display:inline;
background:#cccccc;
color:#303030;
border:4px solid #f0f0f0;
}
h3{
font-size:1.3em;
margin:0 0 10px 0;
}
a{
text-decoration:none;
color:#286ea0;
}
a:hover{
text-decoration:underline;
color:#286ea0;
}
a img{
border:0px none;
}
#footer{
clear:both;
margin:0 auto;
padding:10px 0 20px 0;
border-top:4px solid #f0f0f0;
width:760px;
text-align:center;
color:#808080;
font-size:0.9em;
}
#footer a{
color:#808080;
text-decoration:none;
}
#footer a:hover{
text-decoration:underline;
}
.left{
margin:10px 10px 5px 0;
float:left;
}
.right{
margin:10px 0 5px 10px;
float:right;
}
.textright{
text-align:right;
}
.center{
text-align:center;
}
.small{
font-size:0.8em;
}
.bold{
font-weight:bold;
}
.hide{
display:none;
}
Here is the page.tpl.php file (I'm doing my site with Drupal)
<?php
// $Id$
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>">
<head>
<title><?php print $head_title ?></title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<?php print $head ?>
<style type="text/css" media="screen">@import "<?php print base_path(). path_to_theme(); ?>/andreas01.css";</style>
<style type="text/css" media="projection">@import "<?php print base_path(). path_to_theme(); ?>/andreas01.css";</style>
<style type="text/css" media="print">@import "<?php print base_path(). path_to_theme(); ?>/print.css";</style>
<?php print $styles ?>
</head>
<body>
<div id="wrap">
<div id="header">
<a href="<?php print base_path() ?>" title="<?php print t('Home') ?>">
<?php
print '<img src="' . base_path() . $directory . '/eurotrippedtitle.gif" />'
?>
</div>
<br><br>
<img id="frontphoto" src="<?php if ($logo) { ?><?php print $logo ?><?php } else { ?><?php print base_path(). path_to_theme(); ?>/front.jpg<?php } ?>" width="760" height="175" alt="" />
<div id="avmenu">
<?php if ($primary_links) { ?>
<h2 class="hide"><?php print t("Primary Links:")?></h2>
<ul id="primary-links">
<?php foreach ($primary_links as $link) { ?>
<li><?php print $link?></li>
<?php }; ?>
</ul>
<?php }; ?>
<?php if ($sidebar_left != "") { ?>
<div class="announce">
<?php print $sidebar_left ?><?php /* print left sidebar if any blocks enabled */ ?>
</div>
<?php }; ?>
</div>
<?php if ($sidebar_right != "") { ?>
<div id="extras">
<?php print $sidebar_right ?><?php /* print right sidebar if any blocks enabled */ ?>
</div>
<?php }; ?>
<div id="content">
<div id="content-wrap">
<div id="breadcrumb">
<?php print $breadcrumb ?>
</div>
<?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
<?php print $help ?>
<?php print $messages ?>
<?php if ($title) { ?><h2 class="title"><?php print $title ?></h2><?php } ?>
<div class="tabs"><?php print $tabs ?></div>
<?php print $content; ?>
</div>
</div>
<div class="footer" id="footer">
<?php print $footer_message ?>
</div>
<?php print $closure ?>
</div>
</body>
</html>
Sorry for the overkill code posting, I just wanted to include everything relevant in the hope that someone can help me get rid of that gap! It's fine in IE7 and Firefox (the two browsers I just happened to be using) but IE6 doesn't like it at all. The comments next to some of the margins is me changing values and the commented values are the previous settings, just in case I forgot them, I did however, change them back to what they were before, hence why they say the same thing.
Anyone have any ideas as how to get rid of that nasty big white space gap ?
Thanks a lot
dux0r
First off, I'm very new to CSS so bare with me while I try to explain what's going on.
First off my site is http://www.eurotripped.com It looks ugly right now because it's only about a week old and I'm trying to edit a template that I haven't written, so I'm trying to work out what's going on (and not having much luck)
As you can see there's a big white gap between the top of the section and the first post, I think this may have something to do with the Navigation bar on the left hand side.
There's three CSS files. I will include the one that I think is relevant to the question.
/* andreas01 - an open source xhtml/css website layout by Andreas Viklund - http://andreasviklund.com . Free to use for any purpose as long as the proper credits are given to the original author.
Version: 1.3 (Nov 28, 2005)
20060413 - Sebastiaan Brozius -> Changed #avmenu-items to be more specific to the primary links
#avmenu ul --> #avmenu ul#primary-links
#avmenu li --> #avmenu ul#primary-links li
#avmenu li a --> #avmenu ul#primary-links li a
#avmenu li a:hover --> #avmenu ul#primary-links li a:hover
Screen layout: */
body{
margin:0 auto;
padding:0;
background:#000000;
color:#303030; font-style:normal; font-variant:normal; font-weight:normal; font-size:76%; font-family:Verdana, Tahoma, Arial, sans-serif
}
#wrap{
background:#FFFFFF;
color:#303030;
margin:0 auto;
width:760px;
}
#header{
clear:both;
margin:20px 0 0 0;
padding:0;
height:45px;
}
#header h1{
width:250px;
margin:0 0 10px 0;
float:left;
}
#header p{
width:500px;
float:right;
text-align:center;
color:#a0a0a0;
margin:0 0 10px 0;
font-size:0.8em;
line-height:1.2em;
background-color:inherit;
}
#frontphoto{
border:0px none;; margin-left:0; margin-right:0; margin-top:0; margin-bottom:10px
}
#avmenu{
clear:left;
float:left;
width:150px;
margin:0 0 10px 0;
padding:0;
font-size:0.9em;
background:#FFFFFF;
text-transform:capitalize;
}
#avmenu ul#primary-links{ /* To change Menu Links */
list-style:none;
width:150px;
margin:0 0 20px 0;
padding:0;
font-size:1.1em;
text-transform:capitalize;
}
#avmenu ul#primary-links li{
margin-bottom:4px;
}
#avmenu ul#primary-links li a{
font-weight:bold;
height:20px;
text-decoration:none;
color:#505050;
display:block;
padding:6px 0 0 10px;
background:#CCFFFF; /* #f4f4f4; */
border-left:4px solid #cccccc;
}
#avmenu ul#primary-links li a:hover{
background:#eaeaea;
color:#286ea0;
border-left:4px solid #286ea0;
}
.announce{
margin:10px 0 10px 0;
padding:10px;
width:130px;
color:#505050;
background-color:#FFFFFF; /* #f4f4f4; */
line-height:1.3em;
}
#extras{
float:right;
width:120px;
margin:0 0 10px 0;
padding:0;
font-size:0.9em;
line-height:1.5em;
}
#extras p{
margin:0 0 1.5em 0;
}
#content{
margin:0 130px 20px 160px; /* margin:0 130px 20px 160px; */
border-left:1px solid #f0f0f0;
border-right:1px solid #f0f0f0;
padding:0 10px 0 10px; /* padding:0 10px 0 10px; */
line-height:1.6em;
text-align:left;
}
#content h2{
font-size:1.5em;
margin:0 0 0.5em 0;
}
#content img{
padding:1px;
display:inline;
background:#cccccc;
color:#303030;
border:4px solid #f0f0f0;
}
h3{
font-size:1.3em;
margin:0 0 10px 0;
}
a{
text-decoration:none;
color:#286ea0;
}
a:hover{
text-decoration:underline;
color:#286ea0;
}
a img{
border:0px none;
}
#footer{
clear:both;
margin:0 auto;
padding:10px 0 20px 0;
border-top:4px solid #f0f0f0;
width:760px;
text-align:center;
color:#808080;
font-size:0.9em;
}
#footer a{
color:#808080;
text-decoration:none;
}
#footer a:hover{
text-decoration:underline;
}
.left{
margin:10px 10px 5px 0;
float:left;
}
.right{
margin:10px 0 5px 10px;
float:right;
}
.textright{
text-align:right;
}
.center{
text-align:center;
}
.small{
font-size:0.8em;
}
.bold{
font-weight:bold;
}
.hide{
display:none;
}
Here is the page.tpl.php file (I'm doing my site with Drupal)
<?php
// $Id$
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>">
<head>
<title><?php print $head_title ?></title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<?php print $head ?>
<style type="text/css" media="screen">@import "<?php print base_path(). path_to_theme(); ?>/andreas01.css";</style>
<style type="text/css" media="projection">@import "<?php print base_path(). path_to_theme(); ?>/andreas01.css";</style>
<style type="text/css" media="print">@import "<?php print base_path(). path_to_theme(); ?>/print.css";</style>
<?php print $styles ?>
</head>
<body>
<div id="wrap">
<div id="header">
<a href="<?php print base_path() ?>" title="<?php print t('Home') ?>">
<?php
print '<img src="' . base_path() . $directory . '/eurotrippedtitle.gif" />'
?>
</div>
<br><br>
<img id="frontphoto" src="<?php if ($logo) { ?><?php print $logo ?><?php } else { ?><?php print base_path(). path_to_theme(); ?>/front.jpg<?php } ?>" width="760" height="175" alt="" />
<div id="avmenu">
<?php if ($primary_links) { ?>
<h2 class="hide"><?php print t("Primary Links:")?></h2>
<ul id="primary-links">
<?php foreach ($primary_links as $link) { ?>
<li><?php print $link?></li>
<?php }; ?>
</ul>
<?php }; ?>
<?php if ($sidebar_left != "") { ?>
<div class="announce">
<?php print $sidebar_left ?><?php /* print left sidebar if any blocks enabled */ ?>
</div>
<?php }; ?>
</div>
<?php if ($sidebar_right != "") { ?>
<div id="extras">
<?php print $sidebar_right ?><?php /* print right sidebar if any blocks enabled */ ?>
</div>
<?php }; ?>
<div id="content">
<div id="content-wrap">
<div id="breadcrumb">
<?php print $breadcrumb ?>
</div>
<?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
<?php print $help ?>
<?php print $messages ?>
<?php if ($title) { ?><h2 class="title"><?php print $title ?></h2><?php } ?>
<div class="tabs"><?php print $tabs ?></div>
<?php print $content; ?>
</div>
</div>
<div class="footer" id="footer">
<?php print $footer_message ?>
</div>
<?php print $closure ?>
</div>
</body>
</html>
Sorry for the overkill code posting, I just wanted to include everything relevant in the hope that someone can help me get rid of that gap! It's fine in IE7 and Firefox (the two browsers I just happened to be using) but IE6 doesn't like it at all. The comments next to some of the margins is me changing values and the commented values are the previous settings, just in case I forgot them, I did however, change them back to what they were before, hence why they say the same thing.
Anyone have any ideas as how to get rid of that nasty big white space gap ?
Thanks a lot
dux0r