CodeWalrus

Development => Web => Topic started by: ordelore on May 27, 2016, 08:07:49 PM

Title: Div rules not applying to finished web site
Post by: ordelore on May 27, 2016, 08:07:49 PM
I have the complete website's code available at https://github.com/ordelore/ordelore.github.io (https://github.com/ordelore/ordelore.github.io)
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>
</div>

Code ("CSS") Select

#top {
    font-family: Sans-Serif;
    background-color:#000000;
    color:white;
    text-align:center;
    padding:5px;
    text-align: center;
}
Title: Re: Div rules not applying to finished web site
Post by: Yuki on May 27, 2016, 08:24:39 PM
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.
Title: Re: Div rules not applying to finished web site
Post by: ordelore on May 27, 2016, 09:50:21 PM
Thanks Juju, removing the <style> tags fixed it.