I am working on my website and whenever I am adding some new lines to my CSS file, it just doesn't want to use the lines I made.
Yet, they should be alright.
.what-new {
padding:2em 0 4em;
text-align:center;
}
.what-new h3 {
font-size:4em;
font-weight:700;
color:#000;
margin:0.5em 0;
Just as an example.
The CSS file is working at one part, but from somewhere it just stops using my file.
Yet, it is linked in the < head >.
<link rel="stylesheet" href="style/css_2-play.css" type="text/css"/>
And my HTML code is the following(note that this is just a part of the code):
<div class="what-new">
<div class="container">
<h3>What's new</h3>
<div class="blog-news">
<div class="blog-news-grid">
<div class="news-grid-left">
<h4>06</h4>
<small>of january 2015</small>
</div>
Anyone know a solution for that?
Best Answer
This means that your CSS rule is not applied or that your CSS file is cached.
The possible causes are:
Inspect how the rules are applied through the browser's Developer Tools (open with F12).
HINT: In the CSS panel, the rules are listed by importance in descending order.
Use some validator.
Force the refresh of the browser-cached resource by pressing CTRLF5.
HINT: This Q&A explores the subject.
Force the refresh of the server-cached resource by entering the URL of the static resources in the Address Bar and pressing CTRLF5 on that page (that is the CSS file).
HINT: To open the CSS file's URL fastly, use Open link in a new Tab from the browser's Developer Tools, or click on the CSS link in the HTML opened with View Source.