Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Style sheets problem

Status
Not open for further replies.

gokeeffe

Programmer
Jan 11, 2005
170
IE
Here's my problem I have a website that I have nearly

completed, but one very annoying aspect is that, when you

go to the website it takes a few seconds, depending on the

internet speed for the page to render correctly because I

assume it is looking for my .css file with the styles. Is

the only solution to this putting the corresponding style

code in the index page so it doesn't have to go looking

for it. Or is the a better workaround as this defeats the

purpose of having all the style in one sheet.

Tks

Graham

 
Where is the website?

Are you using <link> tags or @import to include your stylesheet?
I believe @import will take longer, if you switch to using <link> then you may get rid of the problem. I think this is because @import acts as an over-ride on the browser's own stylesheet.

It is better to use an external sheet as this will be cached by a browser and so improve speed on the rest of the site.

Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 
I am using

<style type="text/css" media="screen">@import "./style.css";</style>

how do I change it to the <link> type.

Could you show me with code

Tks

Graham
 
Tks for the help guys, using the link instead of import

totally resolved the problem.

Very happy

It's the small things that make all the difference

Graham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top