Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Identical test cases, two different backgrounds Reply To: [Solved] Identical test cases, two different backgrounds

#192175
Senff
Participant

Obviously it’s not identical code — if it was, the results would be identical too. :)

The difference is that the page on your server loads http://www.angeles4four.info/testcast-jedacad/css/style.css, but the one on Codepen doesn’t (you’re using a relative path).

The CSS you’ve entered in your pen is different from the CSS in http://www.angeles4four.info/testcast-jedacad/css/style.css

The specific difference that makes the background look different, is this line that you do have in your style.css file (but that is not used in your pen):

html {
    margin: 0 10em;
}

Also, do you notice that the rectangle frame at the bottom of in the testcase on my webserver?

Not seeing that! But probably the same reason — using different CSS styles.