You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

Div rules not applying to finished web site

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

0
b/Web publicado por u/ordelore May 27, 2016, 08:07:49 PM
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;
}
Inicia sesión o crea una cuenta para dejar un comentario
u/Yuki 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.
Last Edit: May 27, 2016, 08:29:20 PM by Juju
u/ordelore May 27, 2016, 09:50:21 PM
Thanks Juju, removing the <style> tags fixed it.
Start a Discussion

b/Web

Website developement and scripting

68
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal