S
S
Satir012015-01-07 00:56:20
css
Satir01, 2015-01-07 00:56:20

Why is the tag not assigned a class?

I'm building a site on localhost (under Apache), I noticed this bug for the second time: classes are not assigned.
Yesterday the background-image did not appear - I thought I messed up the paths, etc., but now the class is simply not assigned to the div.
I checked it in Chrome and Firefox, restarted the server, rebooted the computer))) I
'm attaching screenshots: one and two .
Any thoughts on what could be the issue?
UPD I don't know why, I moved the styles in the css file higher and the browser assigned them, everything is ok. But what was the matter?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Zelenin, 2015-01-07
@Satir01

miracles don't happen. there can be three options:
1. css did not load (from the second screen we see that it loaded)
2. the class of the element does not match the class in css (just copy from css to html or vice versa. most likely either Cyrillic or invisible characters)
3. css-file everyday - somewhere something is closed incorrectly, and after that the styles are not rendered

A
Arman, 2015-01-07
@Arik

Maybe where is Cyrillic?

M
MintTea, 2015-01-07
@MintTea

I recently encountered a similar bug - the server returned css/js with mimetype text/plain, which caused the browser to not apply styles and execute scripts. I solved it by correct server settings.
It seems that this is not your problem, but check for everyone :)

R
Rad1calDreamer, 2015-01-07
@Rad1calDreamer

it was like this on open server in chrome in the debugger - style changes did not work. At first it was treated by restarting the server, then it went away somehow (

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question