L
o
a
d
i
n
g
.
.
.
https://michele.zonca.org

Chrome and css import error

By Michele Zonca

23 September 2010

I had these lines in a html page

<style type=“text/css”>

@import url(“css/reset.css”);

@import url(“css/base.css”)

</style>

The second css contains the definition of basic components. It is a new project so I had just a couple of rules.

The problem was a different layout between chrome and firefox. I tried to change the css rules looking for some inconsistency betweend the two browsers and then I noticed that chrome was not even asking the server for the base.css file.

I added a semicolon at the end of the line and now everything  works like a charm..it wasn’t giving any sort of error/warning ..