The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

Div rules not applying to finished web site

Started by ordelore, May 27, 2016, 08:07:49 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


I have the complete website's code available at
But here are my two main bits of conflicting code
The h1 text shows up as regular, black, serif text.
Code ("HTML") Select
<div id="top">
    <h1>Copy of Untitled Story (1)</h1>

Code ("CSS") Select

#top {
    font-family: Sans-Serif;
    text-align: center;
Calc Wars is still alive (I hope)


May 27, 2016, 08:24:39 pm #1 Last Edit: May 27, 2016, 08:29:20 pm by Juju
Remove the <style> tags in your main.css. As simple as that. Somehow it keeps the browser from parsing the CSS.

EDIT: Wait, it must look for a <div> inside of a <<style>> tag, as if you wrote <style> div { ... }, which makes no sense. Still no good.
Read Zarmina!
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here


Thanks Juju, removing the <style> tags fixed it.
Calc Wars is still alive (I hope)

Powered by EzPortal