Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > CSS
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 02-25-2008, 10:48 AM
  #1
Paul
Super Deity (Level 18)
 
Paul's Avatar
 
Join Date: Mar 2001
Location: 127.0.0.1
Posts: 4,035
iTrader: (0)
Paul has a spectacular aura aboutPaul has a spectacular aura about
Can't remove margin under header

The following page renders like its supposed to in IE:

http://mesacreative.com/free_templates/2/

But in firefox and probably every other browser I am getting a margin under the main graphic. Any ideas on what I am doing wrong? It looks like I am having the exact same issue in a previous design and didn't notice it until now:

http://mesacreative.com/free_templates/1/

Here is the CSS:

Code:
/*
	****DO NOT REMOVE****
	Design from templatesXchange
	http://www.templatesXchange.com
*/
body {
    margin:0;
    padding:0;
    background-color:#323232;
    background-image: url(images/bg.gif);
    background-repeat: repeat-x;
}

a:link { 
	color: #FFFFFF;
	}
a:visited { 
	color: #FFFFFF;
	}
a:hover { 
	color: #762e2e;
	}
a:active { 
	color: #762e2e;
	}

#container {
    width:773px;
    margin: 0px auto 0 auto;
 }
#container_footer {
    width:773px;
    margin: 0px auto 0 auto;
}

#logo {
	width: 298px;
	height: 62px;
	margin-top: 16px;
    background-image: url(images/logo.gif);
    background-repeat: no-repeat;
    float: left; 
 }
#top_nav {
	width: 375px;
	height: 20px;
	float: right;
	margin-top: 0px;
	padding-top: 45px;
}

#top_nav ul {
    margin:0;
    padding:0;
    list-style:none;
 }
#top_nav li {
    float:right;
 }
#top_nav a {
    width:70px;
    text-align:center;
    display:block;
    padding:10px 0px 0px 0px;
    margin-right:1px;
    text-decoration:none;
    font-size: 10px;
    font-family: Verdana;
    font-weight: bold;
    color:#FFFFFF;
    margin-bottom: 1px;
 }
#top_nav a:hover {
    color:#f9a726;
    font-weight: bold;
 }
#splash {
	width: 773px;
	height: 219px;
    background-image: url(images/splash.gif);
    background-repeat: no-repeat;
    clear: both;
}
#nav_2 {
	height: 56px;
	background-color: #000000;
}
#body {
	background-image: url(images/bg_hack.gif);
}
#footer {
	background-color: #000000;
	clear: both;
	height: 38px;
	padding-top: 20px;
	color: #FFFFFF;
	font-family: verdana;
	font-size: 10px;
}
#my_copyright {
	float: left;
	margin-top: 8px;
}
#tXc_copyright {
	float: right;
	
}
img.txc_logo {
	margin: 0px 0px -7px 0px;
	border: 0;
}
#left_nav {
	float: left;
	width: 298px;
	
}
#left_nav h1 {
	width: 284px;
	height: 32px;
	background-color: #d38d1e;
	font-family: verdana;
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	padding-top: 14px;
	padding-left: 14px;
}
#left_nav ul {
    margin-left: 0px;
    padding: 0;
    list-style: none;
 }
#left_nav li {
    
 }
#left_nav a {
	margin-left: 16px;
    width:242px;
    text-align:left;
    display:block;
    padding: 19px 00px 0px 20px;
    height:30px;
    background-image:url(images/left_bullet.gif);
    text-decoration: none;
    font-size:12px;
    font-weight: bold;
    font-family: Verdana;
    color:#000;
 }
#left_nav a:hover {
    color:#622000;
    font-weight: bold;
 }


#content {
	float: right;
	width: 445px;
	padding: 10px;
	text-align: justify;
	color: #dcdcdc;
	font-family: Verdana;
	font-size: 12px;
}
#content h1 {
	font-size: 14px;
	font-weight: bold;
}
img.picture1 {
	float: right;
	padding: 0px 0px 15px 15px;
}
.clearing {height:0;clear:both}
I keep getting further along with each new css design I do but it seems like I hit some kind of road block each time.
__________________

Pawel Kowalski
Albuquerque Web Design

templatesXchange.com - Free Web Templates - Native American Jewelry
Paul is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-25-2008, 04:15 PM
  #2
YMas
Chevalier (Level 6)
 
YMas's Avatar
 
Join Date: Jul 2007
Posts: 54
iTrader: (0)
YMas is on a distinguished road
There was some extra padding around the <h1> elements.

One way of solving the problem is to append the following:

Code:
padding:0;
margin:0;
to the following blocks;
Code:
#left_nav h1 { ... }  /*and*/
#content h1 { ... }

Comments on this post
Paul agrees: perfect, thank you

Last edited by YMas : 02-25-2008 at 07:42 PM.
YMas is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-25-2008, 05:50 PM
  #3
Paul
Super Deity (Level 18)
 
Paul's Avatar
 
Join Date: Mar 2001
Location: 127.0.0.1
Posts: 4,035
iTrader: (0)
Paul has a spectacular aura aboutPaul has a spectacular aura about
The margin: 0; fixed it. Thanks, I really appreciate it.

I still don't really understand what was pushing it down. I don't have a bottom margin defined anywhere above.
__________________

Pawel Kowalski
Albuquerque Web Design

templatesXchange.com - Free Web Templates - Native American Jewelry
Paul is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-25-2008, 07:46 PM
  #4
YMas
Chevalier (Level 6)
 
YMas's Avatar
 
Join Date: Jul 2007
Posts: 54
iTrader: (0)
YMas is on a distinguished road
Paul,
Sorry, I coppied an pasted the code (I've corrected the error in my previous post).

These values are added by default.

Cheers,
YMas
YMas is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-25-2008, 11:24 PM
  #5
Paul
Super Deity (Level 18)
 
Paul's Avatar
 
Join Date: Mar 2001
Location: 127.0.0.1
Posts: 4,035
iTrader: (0)
Paul has a spectacular aura aboutPaul has a spectacular aura about
Quote:
Originally Posted by YMas View Post
Paul,
Sorry, I coppied an pasted the code (I've corrected the error in my previous post).
No problem, it solved my issue perfectly. Thanks again.
__________________

Pawel Kowalski
Albuquerque Web Design

templatesXchange.com - Free Web Templates - Native American Jewelry
Paul is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 03:08 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.