Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Slight CSS oddity 1

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hello,

I have a bit of a space before the footer on this page:


Can anyone see what I have done wrong? I've tried explicity setting the padding and margin to 0. I've tried snugging it up a bit with the top property.

Thanks, folks.

frozenpeas
 
By the way, I have noticed that problem in Firefox. It looks fine in IE. (Windows)

Another Firefox issue I'm having is the "sidebar" div - it is not appearing on the right side as I'd like. I'm not sure why.

Thanks again.

frozenpeas
 
Thanks, Lee. I fixed those things up.

My posted issues are still there. [neutral]

frozenpeas
 
Did you notice the difference in position of your sidebar between IE and Firefox? In IE, it's to the right side of the large white block. In Firefox, it's along the left side, and the word sidebar is at the bottom of the page on the left. I didn't look at your CSS to see what you had for the sidebar. If you remove the sidebar div, does that clean up the page in FF?

Lee
 
Yes, I noticed that in FF. I need the sidebar to appear on the right side, as it does in IE. That, and I need to get rid of the space above the footer.

frozenpeas
 

Add this to your CSS:

Code:
#footer p {
  margin:0px;
}

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Sorry - that only removes the top margin. To remove both, use:

Code:
#footer h3, #footer p {
  margin: 0px;
}

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Interesting. Thanks, Dan. The footer spacing looks good now.

I am still stuck with the pesky sidebar going on the left in FF...

frozenpeas
 
Something like this might help:

Code:
#sidebar {
	background-color: #F2F2F3;
	width: 154px;
	float: left;
	padding: 5px 8px 5px 5px;
	clear: right;
}
#footer{
	clear: both;
	background-image: url(images/bg_container.gif);
	width: 679px;
	padding-left: 6px;
	text-align: center;
}

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Hmm. That keeps the sidebar in place, all right. But it wipes out the #main background colour in Firefox.


Just when I think I'm starting to get a hold on CSS layout, these kinds of things make my head swim.

frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top