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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

General CSS Question

Status
Not open for further replies.

mkohl

Programmer
Feb 22, 2005
82
US
Hello,

I was wondering if any knew if there was a solution to this problem. When I view my page (asp.net) for a split second I see a unformatted display of my page before css kicks in and puts everything in place. for example when my page loads I see all my all my information in the top left corner of the page, and then it goes to the correct position after a split second.

Is there a solution to this? Am I doing something wrong?

-Mike
 
to my knowledge, you're not doing anything wrong. maybe your css file is quite large and your asp page is quite small. if this is the case, the html will load and will appear that way until the css file is downloaded to completion. possible work-arounds are reducing your css page file (consolidate styles wherever possible) or try incorporating your css into the asp file (i don't like this idea).

*cLFlaVA
----------------------------
[tt]your mom goes to college[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
What would you consider a large css file, mine is only 175 lines as of now. I was thinking that was kind of small. My asp.net page is around 145 lines of code.

-Mike
 
It might help if you moved the <link /> element that loads the css into the <head> part of the document where it belongs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top