0

Ok I am seriously stumped by this. I have a CSS reset, but some reason my body on my website (Click Here) still has a margin of 8px all the way arround. My CSS reset is pasted below, you can go to the website to see the HTML. The only thing I've noticed is that when you go to inspect element, you can see that the "user agent stylesheet" seems to actually be overriding the reset. So what's up?

@charset "utf-8";
/* CSS Document */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    display: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

Edited by Bensirpent07

2
Contributors
4
Replies
13
Views
2 Years
Discussion Span
Last Post by Bensirpent07
1

Try placing all of your link elements (stylesheet references) in the head section of the page, not the body. In addition, place the CSS Reset first above all of the other link elements.

0

I tried this but it still didn't work, the only reason I put the CSS links in the body is to see if that would work.

0

Aha! My eyes slipped over that, thanks a bunch... the tiniest errors... you think Dreamweaver would notice that? Anyways thanks a bunch, that was the problem.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.