Forum Moderators: not2easy

Message Too Old, No Replies

stylesheet saved from ie

different from stylesheet uploaded

         

HelenDev

1:24 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is odd, but if I browse to my page using ie, and save the page (along with it's files) why is my stylesheet different from the one I uploaded?

It's the same styles, but it's nearly twice the size, all in caps and my shorthand has turned back into longhand.

This doesn't happen if I save the page from FF.

Has anyone else had this or am I going crazy?!

Span

1:31 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There must be a very simple explanation. Like two stylesheets up there. Servers don't turn shorthand CSS into longhand...

j4mes

1:34 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



You'll also notice that the source code of the html pages is different too.

This is because when you use "Save As", IE changes the code to suit itself (no idea why) before saving it.

Just use view source and copy and paste to save it and it'll be the same as how you uploaded it.

J.

HelenDev

1:40 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You'll also notice that the source code of the html pages is different too.

OMG! You're right!

And it turns it into horrible HTML at that! Loads of capitalisation and no speech marks around attributes! Ugh!

The wonders of M$ will never cease!

Wow. Why on earth would it do that?

choster

2:19 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you're saving the "complete" web page, the browser is rewriting the page so that, for instance, image sources are changed from a location on your server to a location on your hard disk. Since the HTML is different, why wouldn't you expect the CSS be different?

HelenDev

2:28 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since the HTML is different, why wouldn't you expect the CSS be different?

I didn't realise either would be different.