Forum Archive

Go Back   3D Realms Forums > General Topics > Programming Forum
Blogs FAQ Members List Social Groups Calendar Mark Forums Read

Notices

 
 
Thread Tools
Old 04-01-2005, 03:39 AM   #1
NetNessie

NetNessie's Avatar
Ahh CSS, why do you hate me!
I've been working on a blog template for a friend for a while now, but the header keeps moving around. Right now the rest of its fine, but for some reason a huge amount of space is added between the wrapper div and the header div.

Either way, if you'd like to give a hand, you can find the template over here:

http://meatbasedproducts.blogspot.com/

The CSS is found within the HTML. Any suggestions would be helpful. I can give the origional file if anyone needs it.

I'd appreciate it if someone worked this little bugger out for me. Cheers.
__________________
Ink Grass LazyMoon Photography
"Say something wise, and your name will be remembered forever." - Anonymous
NetNessie is offline  
Old 04-01-2005, 04:06 AM   #2
Iggy

Iggy's Avatar
Re: Ahh CSS, why do you hate me!
Try using the official validator, this has been a great help to me for fixing CSS/XHTML-problems. (59 errors in the mark-up code according to it for that template you posted).

http://validator.w3.org/

I'm viewing that template you posted and I don't see any flaws on first sight. Any screenshot you can post?
__________________
Duke4Ever || The Game Collector's Market - Forum for game collectors.
"That Nordbergian wench could be a handful! Several." - Gnarl (Overlord 2)
Iggy is offline  
Old 04-01-2005, 10:08 AM   #3
Usurper

Usurper's Avatar
Re: Ahh CSS, why do you hate me!
position:static? Is that in the specs? I think legal values are "auto, relative, fixed, and absolute," based on memory.
__________________
Meadhall of the Comitatus | RTCM
Usurper is offline  
Old 04-05-2005, 03:03 AM   #4
NetNessie

NetNessie's Avatar
Re: Ahh CSS, why do you hate me!
Static, relative, absolute, fixed & inherit are all suitable attributes according to w3.

The validator just pins errors with the code that blogger automatically inserts. Despite a couple of missing <p> tags, there doesnt seem to be a markup problem.

Image anyone;
Attached Images
File Type: gif 817342-example.gif (35.9 KB, 12 views)
__________________
Ink Grass LazyMoon Photography
"Say something wise, and your name will be remembered forever." - Anonymous
NetNessie is offline  
Old 04-05-2005, 03:28 AM   #5
biXen
Re: Ahh CSS, why do you hate me!
In wrapper style:
set border-top-width to 0px and margin-top to 0px.
biXen is offline  
Old 04-05-2005, 05:06 AM   #6
NetNessie

NetNessie's Avatar
Re: Ahh CSS, why do you hate me!
Quote:
biXen said:
In wrapper style:
set border-top-width to 0px and margin-top to 0px.
Well that worked... not that I know why. Cheers biXen!
__________________
Ink Grass LazyMoon Photography
"Say something wise, and your name will be remembered forever." - Anonymous
NetNessie is offline  
Old 04-05-2005, 06:39 AM   #7
biXen
Re: Ahh CSS, why do you hate me!
The margin just pushes your content downwards (inwards really) 50 pixels from the top. And the border created a 10 pixel border (with blank content). Why you had it there in the first place is the big question But I guess it suited the original design or something

Beware that I didn't test it in IE now, it might be one more setting if there's other weirdness
biXen is offline  
Old 04-05-2005, 06:55 AM   #8
NetNessie

NetNessie's Avatar
Re: Ahh CSS, why do you hate me!
The page actually displays normally and validates, its only when its used as a blogger template does it do its own thing. Probably because blogger inserts its own CSS that interferes with my CSS. Such is life.
__________________
Ink Grass LazyMoon Photography
"Say something wise, and your name will be remembered forever." - Anonymous
NetNessie is offline  
Old 04-05-2005, 08:21 AM   #9
biXen
Re: Ahh CSS, why do you hate me!
Yeah there's nothing wrong with the code, it's just made to have that spacing there, and if you have some other background than you do now you'd probably want that. Anyway, glad I could help.
biXen is offline  
 

Bookmarks

Thread Tools

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

Forum Jump


All times are GMT -6. The time now is 12:15 PM.

Page generated in 0.13840699 seconds (100.00% PHP - 0% MySQL) with 17 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.