473,320 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Style Sheet not always responding

JnrJnr
88
I have a StyleSheet.css in my project with no errors (checked by jigsaw.w3.org/css-validator/).
When I change a value in my style sheet the page doesnt respond to the change but when I remove the contents from the style sheet and place it with my html code in the <style type = "text/css"> then the change responds.
I refer to my style sheet correctly <link rel = "Stylesheet" type = "text/css" href = "StyleSheet.css"/>
When I delete the styleSheet.css file and add a new one and rename it it works fine for a while until I carry on working and find that it's not working anymore.
Any Ideas what I should look at? Im pretty sure my HTML is correct.
Apr 11 '11 #1

✓ answered by JKing

Do you have your cache on or off?

You can try adding a query string to your stylsheet path. Just continually change the value.

Some like to use the date or time as it is constantly changing.

Expand|Select|Wrap|Line Numbers
  1. <style type="text/css" rel="stylesheet" href="stylesheet.css?v=1"
  2.  

3 2011
JKing
1,206 Expert 1GB
Do you have your cache on or off?

You can try adding a query string to your stylsheet path. Just continually change the value.

Some like to use the date or time as it is constantly changing.

Expand|Select|Wrap|Line Numbers
  1. <style type="text/css" rel="stylesheet" href="stylesheet.css?v=1"
  2.  
Apr 11 '11 #2
JnrJnr
88
ok so whats happening is as soon as you make changes to your style sheet it caches the file and you have to update the name of the syle sheet in order for it to take effect. Thanx!
Apr 11 '11 #3
Dormilich
8,658 Expert Mod 8TB
you could also set the cache header to must-revalidate in your server.
Apr 13 '11 #4

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

Similar topics

2
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages...
19
by: Roger | last post by:
How can I pass parameters to a style sheet? I have noticed a couple of sites are now passing variables to the style sheet, which appear to be substituted at run time. For example: <link...
3
by: Kerberos | last post by:
This is weird. I have made a simple page using XHTML & CSS. It works great on all browsers when the content is delivered as HTML: http://www.auriance.com/clientes/cpe However, when I deliver the...
5
by: Andrew Poulos | last post by:
If I have an external stylesheet that is @imported into my page and it has an element that looks like this: * html td { font-style: italic; } how can I use javascript to change the font...
7
by: Don Wash | last post by:
Hi There! I'm creating several ASCX Controls and those controls will have their own CSS Style Sheets. But I don't know how I can link the corresponding Style Sheet in the ASCX file? Because the...
3
by: Chris | last post by:
Hi I have another style sheet question: We effectively have a page that has two text boxes on it. We would like one text box to be in one style and the other text box to be in another style....
2
by: melvinsdayout | last post by:
I have been having problems with IE 7 not responding to changes in the style sheet it is linked to. My problem is that my site looks good in Firefox, and was looking good in ie7 via an statement...
1
by: Looch | last post by:
Hi All, I have a need for a user to open an XML file from a web site and have it open based on a style sheet, not just looking at the raw XML data. I'm wondering what the best way to go about...
7
Stang02GT
by: Stang02GT | last post by:
I am running into a problem with a style sheet for my menu and the style sheet on my web page. The style sheet for the web page is over riding some of the items of my menu sheet. Is there any...
4
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.