Complete list of reasons why a css file might not be working
Are you sure the stylesheet is loaded? You can see it using the "Net" tab of Firebug on firefox, or on "Network" tab of the Console of your browser.
(If 1 works) can you have a simple sample style and see whether this is getting applied (and visible in the console)?
Why is my CSS style not being applied?
Have you tried forcing the selectors to be in the front of the class?
p span label.fancify {
font-size: 1.5em;
font-weight: 800;
font-family: Consolas, "Segoe UI", Calibri, sans-serif;
font-style: italic;
}
Usually it will add more weight to your CSS declaration.
My mistake ... There should be no space between the selector and the class.
The same goes for the ID. If you have for example:
<div id="first">
<p id="myParagraph">Hello <span class="bolder">World</span></p>
</div>
You would style it like this:
div#first p#myParagraph {
color : #ff0000;
}
Just to make a complete example using a class:
div#first p#myParagraph span.bolder{
font-weight:900;
}
For more information about pseudo-selectors and child selectors : http://www.w3.org/TR/CSS2/selector.html
CSS is a whole science :) Beware that some browsers can have incompatibilities and will not show you the proper results. For more information check this site: http://www.caniuse.com/
CSS changes are not getting reflected. Why?
I forgot to close a {
in the CSS file.
That's why all the code didn't show up on the page.
Related Topics
Why Would Google Use a Font Tag
CSS Changes Are Not Getting Reflected. Why
Background-Position-Y Doesn't Work in Firefox (Via CSS)
Is It Ok to Use <Strong> in Place of <B> Blindly
Applying CSS for Only Parent But Not to Children
How to Format Code in HTML/CSS/Js/ PHP
Converting HTML Text into Plain Text Using Objective-C
What Does "Top: 0; Left: 0; Bottom: 0; Right: 0;" Mean
CSS to Keep Element at "Fixed" Position on Screen
Why Does 100% Not Mean 100% Height
How to Detect HTML5 Audio Mp3 Support
Border Around Specific Rows in a Table
Bootstrap Row Class Contains Margin-Left and Margin-Right Which Creates Problems
Centering a Div Between One That's Floated Right and One That's Floated Left
How to Create a Fixed Sidebar Layout with Bootstrap 4
Positioning Text Over Image (HTML,CSS)
Apply Custom Font to Attributed String Which Converts from HTML String