* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Div rules not applying to finished web site  (Read 446 times)

0 Members and 1 Guest are viewing this topic.

Offline ordelore

  • Full User
  • Safe-haven access
  • Join Date: Oct 2015
  • Location:
  • Posts: 73
  • Post Rating Ratio: +1/-0
  • 8x
    • @ordelore8x
    • ordelore8x
    • @UCJ9TFxpyxonUZvAv-S8K_1A
    • /u/ordelore8x
    • ordelore
    • 112/11231
    • View Profile
    • My WIP Story
Div rules not applying to finished web site
« on: 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;
}


  • Calculators owned: TI-84+SE, TI_Nspire CX
Calc Wars is still alive (I hope)

Online Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • CodeWalrus Staff
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 2662
  • Post Rating Ratio: +17/-1
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • View Profile
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: Div rules not applying to finished web site
« Reply #1 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.
« Last Edit: May 27, 2016, 08:29:20 pm by Juju »
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)

In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii:

YUKI-CHAAAANNNN

Offline ordelore

  • Full User
  • Safe-haven access
  • Join Date: Oct 2015
  • Location:
  • Posts: 73
  • Post Rating Ratio: +1/-0
  • 8x
    • @ordelore8x
    • ordelore8x
    • @UCJ9TFxpyxonUZvAv-S8K_1A
    • /u/ordelore8x
    • ordelore
    • 112/11231
    • View Profile
    • My WIP Story
Re: Div rules not applying to finished web site
« Reply #2 on: May 27, 2016, 09:50:21 pm »
Thanks Juju, removing the <style> tags fixed it.
  • Calculators owned: TI-84+SE, TI_Nspire CX
Calc Wars is still alive (I hope)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games