467,163 Members | 950 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,163 developers. It's quick & easy.

CSS Parameter Sending issue


The above file contains : @import "main.css?20061116";
The above line.
I can understand the meaning of import statement but what is next to it---- ?20061116

and How to use this kind of statement while designing the CSS code ?
can any one will give me example?

Thanks and Regards,
Jan 7 '08 #1
  • viewed: 1123
1 Reply
It's not next to it, its part of the web address. ? starts the query portion of the URL. If you submit a search on google, you type something like "dog sweatshirts" into the search box (which is named q in the html source code) it will submit to a page like www.google.com?q=dog+sweatshirts

It is meant as a way of passing data to the server so it can do some kind of processing and return a dynamically created page.

Now as to why they do it on bbc's website. They probably ignore ?20061116. You could enter anything after main.css? or nothing at all and it will go to the same main.css page. The reason they do it is that browsers will cache main.css and even if they change the css, some browsers may never check for the new version. So if they update the file they also update this link to use a new date like @import "main.css?20070107, and all browsers that will see that this is not the same file they have in their cache and they will refetch it.
Jan 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Philippe Lang | last post: by
16 posts views Thread by hzmonte@hotmail.com | last post: by
3 posts views Thread by Jeff | last post: by
15 posts views Thread by colin | last post: by
reply views Thread by Adam Right | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.