Home > OS >  External CSS not always displaying
External CSS not always displaying

Time:12-05

For some odd reason all my external CSS does work fine except for this one. It does work if I add it internally to my html page but not if it is linked to the external sheet

in the external sheet

.title {
    font-size: 30px; 
    font-family: Bebas Neue, cursive;
}

but

<span >hello</span>

does not work in the html sheet

tried with . or even with # id="" but neither work it would make sense to me if nothing else worked but I don't understand how just 1 can be giving me problems

CodePudding user response:

Try to add Internal StyleSheet :

<span   style=" font-size: 30px;font-family: Bebas Neue, cursive;" >Hello </span>

CodePudding user response:

OMG! I figured out the issue!! I am an inexperienced coder and as with many issues I encounter, at the end it often is just something silly. The code actually worked but my browser was working on the cached version of the page so I was not seeing the changes. Once I CTRL-F5 rather than doing just a straight reload my CSS appeared!

  •  Tags:  
  • css
  • Related