Join us on Discord!
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.

ordelore

I have the complete website's code available at 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;
}
  • Calculators owned: TI-84+SE, TI_Nspire CX
Calc Wars is still alive (I hope)

Yuki

#1
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.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
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

ordelore

Thanks Juju, removing the <style> tags fixed it.
  • Calculators owned: TI-84+SE, TI_Nspire CX
Calc Wars is still alive (I hope)

Powered by EzPortal