Resell Print? Click here to see how we can help


Graphic Design Forums: UK forums for graphic designers » Website Design Forums: » Website Coding & Programming Forum: » Firefox adding space under header

Reply
Old 10-11-2009, 06:47 PM   #1
Junior Member
 
Anglo Design's Avatar
 
Join Date: Oct 2008
Posts: 23
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via MSN to Anglo Design
Question Firefox adding space under header

Hiya,
I'm using a website template as a base, but i've erased a header section with links and things. I want to simply add my header directly on top of the template. I've done this, and it's fine in IE, but Firefox puts a space underneath the header. This won't work for me as the header image needs to have no space for the images in the header & the template to blend together.

I've added my css directly to the template file, so all code is below for you to see, can you help me?

If you'd like to see the gap itself just say and I'll host the images online and repost the template code, so you can see it.



Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="Premium Series" content="" />
<style media="screen" type="text/css">

body {
	margin-top: 50px;
	padding: 0;
	background: #232323;
	text-align: justify;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;
	color: #141414;
}

h1, h2, h3 {
	margin-top: 0;
	color: #8C0209;
}

h1 {
	font-size: 1.6em;
	font-weight: normal;
}

h2 {
	font-size: 1.6em;
}

h3 {
	font-size: 1em;
}

ul {
}

a {
	text-decoration: none;
	color: #8C0209;
}

a:hover {
	border-bottom: none;
}

a img {
	border: none;
}

img.left {
	float: left;
	margin: 0 20px 0 0;
}

img.right {
	float: right;
	margin: 0 0 0 20px;
}


/* Wrapper */

#wrapper {
}

/* Page */

#page {
	width: 990px;
	margin: 0 auto;
	padding: 0px 5px;
	background: #FFFFFF;
}

#page-bg {
}

/* Latest Post */

#latest-post {
	padding: 20px;
	border: 1px solid #E7E7E7;
}

/* Content */

#content {
	float: left;
	width: 620px;
}


/* Sidebars */

#sidebar1 {
	float: left;
}

#sidebar2 {
	float: right;
}

.sidebar {
	float: left;
	width: 180px;
	padding: 0;
	font-size: 13px;
}

.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar li {
	padding: 0 0 20px 0;
}

.sidebar li ul {
}

.sidebar li li {
	margin: 0 5px 0 5px;
	padding: 8px 0px;
	border-bottom: 1px #BBBBBB dashed;
}


.sidebar li h2 {
	height: 18px;
	margin: 0 0 0 0;
	padding: 10px 15px 2px 15px;
	background: #141414 url(images/img05.jpg) no-repeat left top;
	letter-spacing: 0px;
	font-size: 14px;
	color: #FFFFFF;
}

.sidebar a {
}

/* Footer */

#footer {
	width: 960px;
	height: 70px;
	margin: 0 auto;
	padding: 0 20px;
	background: url(images/img04.jpg) no-repeat left top;
}

#footer p {
	margin: 0;
	padding: 25px 0 0 0;
	text-align: center;
	font-size: smaller;
}

#footer a {
}

#footer .link {
	float: right;
}

#footer .copyright {
	float: left;
}

.flower {
	padding-left: 20px;
}

</style>
</head>
<body>
<!-- start header -->
<div align="center"><img src="http://www.graphicdesignforums.co.uk/images/header.jpg"></div>
<!-- end header -->
<div id="wrapper">
	<!-- start page -->
	<div id="page">
		<div id="sidebar1" class="sidebar">
			<ul>
				<li>
					<h2><div align="center">Featured Item</div></h2>
					
					
					
				</li>
				<li>
					<h2><div align="center">Categories</div></h2>
					<ul>
						<li><a href="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/#">Logo & Banner Package</a></li>
						<li><a href="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/#">eBay Listing Template</a></li>
						<li><a href="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/#">eBay Shop-Style Template</a></li>
					</ul>
				</li>
				<li>
					<h2><div align="center">Custom Pages</div></h2>
					
					
					
				</li>
				<li>
					<h2><div align="center">Newsletter Signup</div></h2>
					
					
					
				</li>
			</ul>
		</div>
		<!-- start content -->
		<div id="content">
			<div class="flower"><img src="http://www.graphicdesignforums.co.uk/images/img06.jpg" alt="" width="590" height="234" /></div>
			<div align="center"><p>
			
			
			<font size="3">Text text text text text text text text text text text text text text text text text </font>
			
			
		</p></div>
		</div>
		<!-- end content -->
		<!-- start sidebars -->
		<div id="sidebar2" class="sidebar">
			<ul>
				<li><div>
				<h2><div align="center">Item Search</div></h2>
						
							
						
				</div></li>
				<li>
				<h2><div align="center">Best Sellers</div></h2>
					
					
					
				</li>
				<li>
				<h2><div align="center">Offers</div></h2>
					
					
					
				</li>
				<li>
				<h2><div align="center">Other</div></h2>
					
					
					
			</li>
			</ul>
		</div>
		<!-- end sidebars -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end page -->
</div>
<div id="footer">
	<p class="copyright">&copy;&nbsp;&nbsp;2009 All Rights Reserved &nbsp;&bull;&nbsp; Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
	<p class="link"><a href="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/#">Privacy Policy</a>&nbsp;•&nbsp;<a href="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/#">Terms of Use</a></p>
</div>
</body>
</html>

Last edited by Anglo Design; 10-11-2009 at 06:50 PM.
Anglo Design is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 03-28-2010, 07:02 PM   #2
Junior Member
 
Join Date: Mar 2010
Location: Barrow-in-Furness
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Try this:

Replace your 'content' with this:

<!-- start content -->
<div id="content">
<div class="flower"><img src="http://www.graphicdesignforums.co.uk/images/img06.jpg" alt="" width="590" height="234" /></div>
<div class="text_text">
<h1> Text text text text text text text text text text text text text text text text text </h1>
</div>
</div>
<!-- end content -->


and add these css styles:

.text_text {
margin-top: -0.5em;
}

.text_text h1 {
text-align: center;
}


I added a class ("text_text") to the Div that holds your Text text text. Changed the text from p to h1.

I hope this points you in the right direction.
Marko is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Flyer Printing | Print Reseller Scheme | Graphic Design | Logo Designer | Web Design UK | Graphic Design UK | Letterhead Printing
Business Card Printing | UK Business Forum | Logo Designer | NCR Pads | NCR Books | Receipt Books | Drinks Coasters | A6 Flyers | A5 Leaflets
Web Design & Development | vBulletin Skins | Small Business Websites | Leaflets | Leaflet Printing | Web Design Liverpool | Invoice Books


DISCLAIMER: All posts on this forum express the views and opinions of the author only, not the owners, staff or advertisers, hence we will not be held liable.


Powered by vBulletin®
© Copyright Jelsoft Enterprises Ltd
SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.