Solved

External css styles being ignored?

Posted on 2006-07-14
4
421 Views
Last Modified: 2008-03-10
Hi Experts -
   Actually this probably isn't an extremely difficult question for someone who knows -- but it's driving me crazy!  I'm very new to css and I've certainly seen the benefits of it;  now I'm suffering one of the curses.  I have an external css style sheet that works on my local development machine, but not when I move it to the live server.  (Well, I've now spent a lot of time fidding with everything and now it doesn't seem to be working at all).
   I see that it isn't working because I'll have something like font-size:smaller in the css, and it isn't being picked up.  I've set strange colors, etc. in it to see if it is being read at all, and it doesn't appear to be.
   I reference the style sheet in the <head> like this:

   <style rel="stylesheet" type="text/css" href="myStyles.css" ></style>
 
   What can I be doing wrong?
Please help!
TIA

G

0
Comment
Question by:gailhl
4 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 17112217
Where is you stylesheet located relative to the page where it is included ? If its not in the same folder then you will need to modify the "href" to match the path.

You could also try clearing out the cache in your browser in case it has cached an older version. If you're using IE then go to Tools > Internet Options > Delete Files.
0
 
LVL 7

Assisted Solution

by:pradeepsudharsan
pradeepsudharsan earned 250 total points
ID: 17113279
hi,
plz
try like this
<LINK href="stylesheet.css" type="text/css" rel="stylesheet">
0
 

Author Comment

by:gailhl
ID: 17114011
Oh dear --- I meant to split the points and it didn't work.  I will contact the moderator and get that resolved  -
because I want to thank you both.  You both helped me very much.  The caching problem meant that I didn't see my changes immediately, and falsely assumed that the style sheet wasn't being picked up.  (It sure is time-consuming to keep having to clear the cache while developing!)

But I also had to change the way the link to the style sheet was written.

So many thanks to you both.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now