/    Sign up×
Community /Pin to ProfileBookmark

CSS – gaps with firefox and opera but not IE

hi
im pretty new to web development. I’m having a shot at building a personal website without tables using XHTML1.1 and CSS.

When previewed in IE my site looks fine, but when I view my site with firefox or opera I get spaces between my header, main body and footer.

Please help me fix this problem.

(please view the source code from your browser. Right click -> view source)
Below are the links to my homepage and css file for my homepage

[URL=http://www.waynedougan.me.uk]my homepage [/URL]
[URL=http://www.waynedougan.me.uk/css/home.css]home page css file[/URL]

Thanks,
Wayne

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@fuzecxauthorJun 02.2006 — sorry, didn't realise i could attach files.

index.html

home.css

[upl-file uuid=0b74264d-589a-4e1c-b980-51bb64eca557 size=2kB]home.css.txt[/upl-file]

[upl-file uuid=f2940e43-2e6a-40be-b5c0-d054656d2796 size=2kB]home.css.txt[/upl-file]
Copy linkTweet thisAlerts:
@GonzagaJun 02.2006 — Add that section after the body declaration in your CSS file to remove all unwanted margins and paddings ... then define them where you want them.

You might also want to download the web developer toolbar for firefox where you can change the CSS on the fly and watch it's effects.

http://chrispederick.com/work/webdeveloper/

body * {

margin: 0px;

padding: 0px;

}

Greetings ... Andreas.
Copy linkTweet thisAlerts:
@fuzecxauthorJun 02.2006 — perfect! works a treat. Thank you ?
×

Success!

Help @fuzecx spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.11,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...