Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 08-22-2007, 11:36 AM Closing the gaps
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Hello,

I am having a difficult time closing the gaps between 3 div layers. If you preview the site below in Firefox there is spacing between the layers. Why does it look fine in IE? How can I get this to look as it does in IE with Firefox?

http://ss-interactive.com/new/

Thanks!
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
 
Register now for full access!
Old 08-22-2007, 11:41 AM Re: Closing the gaps
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Here is the code:
HTML Code:
<html>
<head>
<title>Interactive</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="main.css" rel="stylesheet" type="text/css">
</head>
<body>

<div id="body">
	<div id="body_header">
		<img src="images/ssi_v.2_01.gif" width="780" height="295" alt=""></div>
	<div id="body_main">
<br><br><br><br><br><br><br>
  </div><div id="body_footer"></div>
</div>
</body>
</html>
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 08-23-2007, 01:07 AM Re: Closing the gaps
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
First, you're approaching this backwards. Don't try to force FF to look like IE, IE does things WRONG. Make it look right in FF first, THEN kick IE until you get it to look more like FF - they will never be EXACT.

I don't know why you bother with tables.. UGH!
You have a problem here:
Quote:
#body_main {
width:780px;
background-color: #74563A;
background-image: url(images/body_bg1.gif);
background-repeat: no-repeat;
background-position: 160px top;
top: 305px;
}
Unless you're using absolute or relative positioning, that top:305px does nothing, you would need to use margin-top: 305px to effect the same position. However, if you do that, then your main body section will be much further down the page, so you'll have to adjust it to a much smaller number, if not zero. Then you can address where the footer is appearing.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-23-2007, 11:41 AM Re: Closing the gaps
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
What I have noticed is that the gaps only appear when I use the <p></p> tags in the body_main div. If I replace with <br> tags the gaps are gone. What gives?

Code:
body {
	text-align: center;
	margin-top: 10px;
	margin-right: 0px;
	margin-left: 0px;
  }

#body {
	margin: 0 auto;
	width: 780px;
}

#body_header {
	width:780px;
}

#body_main {
	width:780px;
	background-color: #74563A;
	background-image: url(images/body_bg1.gif);
	background-repeat: no-repeat;
	background-position: 160px top;
	margin-top: 0px
}
#body_footer {
	background-image: url(images/body_footer.gif);
	background-repeat: no-repeat;
	height: 76px;
	width: 780px;
}
main_menu a:link {
	padding-left: 15px;
}
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 08-23-2007, 10:21 PM Re: Closing the gaps
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Paragraphs have a default amount of margin and/or padding. Zero them out to start with, then adjust as necessary.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Closing the gaps
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15501 seconds with 12 queries