I have a div : <div id="fancyboxID-1">
<p>0767380042</p>
</div>
and this css:
#fancyboxID-1 p { font-size:150px; text-align: center; line-height:150px; overflow:hidden;}
After I upload and refresh the website I don’t see any changes but if I check the source code: I see the css properties.
It’s very strange for me, I’ve tried to upload on another server and there it works.
Any ideas why this is not working ?
Looking at your stylesheet (style.css) there appears to be some strange characters (corruption / unicode?) before your problematic line which is probably invalidating your stylesheet. Removing these characters results in your styles suddenly bursting to life…
When viewed with ISO-8859-1 encoding, they appear as 4 visible characters, although if viewed as UTF-8 it just looks like a single space (although it’s not a single space):
(Btw, hyphens in the id/class names are perfectly valid.)