Wierd spacing. (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


rage2001 -> Wierd spacing. (8/10/2006 19:37:27)

Hey guys. If you view this page in IE the picture (banner with the name and the date in it, and the navigation menu blow are flush together.. which is the way I want it.. Now open it in any other web browser (FF mainly i am worried about), there is a white space between the image and the menu....


anyone know what is causing this? I know there arw a couple of small thigns wrong other then that, which I am working on now.

THanks




BeTheBall -> RE: Wierd spacing. (8/10/2006 19:45:47)

And "this page" would be what???




rage2001 -> RE: Wierd spacing. (8/10/2006 19:47:33)

Haha, sorry thought I pasted it. Guess you will need this.

http://www.swgc.mun.ca/tourismworkshop/index2.html




BeTheBall -> RE: Wierd spacing. (8/10/2006 20:34:51)

Changing to this doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

seems to tighten it up. You are using a strict doctype, but your code is not html strict.

(Tailslide will be so proud of me [:)])




Tailslide -> RE: Wierd spacing. (8/11/2006 3:25:44)

quote:

ORIGINAL: BeTheBall
(Tailslide will be so proud of me [:)])


[:D]




rage2001 -> RE: Wierd spacing. (8/11/2006 8:06:53)

Thanks, BeTheBall, that solved the problem...

if I could ask one more question if someone could answer, maybe tailside

If you look at this page in IE and FF (or NS), the menu comes out 1px too short. Ie works fine. FF is 1px short and you see white space. No Idea why.

http://www.swgc.mun.ca/tourismworkshop/index3.html




jaybee -> RE: Wierd spacing. (8/11/2006 8:21:58)

It's because your widths are all being set absolutely. Your header is 752 pixels wide, your menu is 751pixels.

#menu1 { border-collapse: collapse;
width: 751px;
border-left: 1px solid #808080;
border-right: 1px solid #808080;
border-top: 1px solid #808080;
border-bottom: 1px solid #808080; }

If you change it to 752px it fits in FF




rage2001 -> RE: Wierd spacing. (8/11/2006 8:45:54)

Thanks. Was changing those numbers alot to try and fix things, must have screwed that up.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.125