14 replies [Last post]
media23
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2005-09-07
Posts: 8
Points: 0

when i hit my site for the first time it loads ok with the stylesheet, but when i click to another page the page loads without the styles, yet on refresh it picks the stylesheet up....

any ideas ?

media23
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2005-09-07
Posts: 8
Points: 0

losing css style sheet when new page loads

this prob is on IE6, just tried on firefox and it's ok!

???

briski
briski's picture
Offline
Elder
London
Last seen: 9 years 24 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

losing css style sheet when new page loads

any link to the site in question?

media23
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2005-09-07
Posts: 8
Points: 0

losing css style sheet when new page loads

thanks

briski
briski's picture
Offline
Elder
London
Last seen: 9 years 24 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

losing css style sheet when new page loads

Hmm I don't see this, I get the styles page on every instance...

media23
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2005-09-07
Posts: 8
Points: 0

losing css style sheet when new page loads

you're trying on IE presumably ?

i get it both live on server and locally!

briski
briski's picture
Offline
Elder
London
Last seen: 9 years 24 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

losing css style sheet when new page loads

Yep - IE6. win 2000 if that's likely to make a jot of difference?

Lorraine
Lorraine's picture
Offline
Elder
UK
Last seen: 15 years 14 weeks ago
UK
Timezone: GMT+1
Joined: 2005-01-04
Posts: 1001
Points: 0

losing css style sheet when new page loads

Sean
You are not alone, I see some problems in IE and in Fx the Reference link opens intermittently if you click around the other links. Also in Fx the menu items are aligned to the left.

The validator is a bit sniffy about the way you have declared/called your stylesheet. There are other issues such as nested unordered lists within <head>, not enough closing </ul>s etc:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.seanjohnson.net%2Fnew%2Findex.asp

Maybe, things will get better if you validate all the pages.

media23
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2005-09-07
Posts: 8
Points: 0

losing css style sheet when new page loads

thanks lorraine... it was the nested ULs - sorted now...

i'm still learning and i need to find how to centre stuff in FX - i'm using text-align: center at the mo, and it seems FX dont support it int he same way as IE

thanks for you help!

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 6 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

losing css style sheet when new page loads

To centre things in other browsers, use margin: 0 auto. The auto is for left & right margins.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 38 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

losing css style sheet when new page loads

media23 wrote:
i'm still learning and i need to find how to centre stuff in FX - i'm using text-align: center at the mo, and it seems FX dont support it int he same way as IE

To expand on Tyssen's answer, IE gets it wrong. The text-align property does not apply to block level elements. IE<6 always get it wrong. IE6 will do it correctly if you put it into standards mode by using a complete DTD.

You can generally assume that if IE and Firefox do things differently, IE screwed up.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

briski
briski's picture
Offline
Elder
London
Last seen: 9 years 24 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

losing css style sheet when new page loads

Not sure if your aware but your new design bares a striking resembalance to

http://csszengarden.com/?cssfile=/181/181.css&page=0

If it's not intentional you might want to consider some changes to avoid embarasment.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 3 years 3 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

losing css style sheet when new page loads

Tyssen wrote:
To centre things in other browsers, use margin: 0 auto. The auto is for left & right margins.

Except that may not work for IE MAC, which doesn't recognise margin:auto, instead you have to do margin-right:auto;margin-left:auto

Nasty, bad MS.

Trevor

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 7 years 39 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

losing css style sheet when new page loads

On IE 5.2.3/Mac it does understand the margin: 0 auto; shorthand - for all but tables.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 3 years 3 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

losing css style sheet when new page loads

wolfcry911 wrote:
On IE 5.2.3/Mac it does understand the margin: 0 auto; shorthand - for all but tables.

But not for some earlier versions, and, amazingly, there are folks out there with them.

Trevor