4 replies [Last post]
linkot
Offline
newbie
Last seen: 16 years 17 weeks ago
Joined: 2004-08-09
Posts: 3
Points: 0

I would like to view the style sheet for a particular website and it does not download when I saved the page. Is there a way to find and download the css without knowing how it's named?
Thanks!

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 4 years 44 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

Obtaining CSS

It would be impossible to find something if you don't know it's name... but you can find it out. Most browsers are quite good if you do File->Save... (or similar).

The two things in the HTML to look for are:

<link rel="stylesheet" href="templates/subSilverCSS/subSilverCSS.css" type="text/css" />

<script type="text/css">
@include("blah.css")
</script>

(I think that last one is right, not sure tho)

If they're relative links (like above) look at the URL of the page you saved... if it were http://blahblah.com/woof.html then the top css would be at http://blahblah.com/templates/subSilverCSS/subSilverCSS.css...

It is also possible the include statement is in a CSS file. So check each CSS as you get it, and keep downloading them...

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

linkot
Offline
newbie
Last seen: 16 years 17 weeks ago
Joined: 2004-08-09
Posts: 3
Points: 0

Obtaining CSS

Thanks for the information ... I looked at the Code and don't see the reference ... would you mind taking a look, perhaps your trained eye would find it, or know why it isn't there http://www.sothebys.com

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 16 years 45 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

Obtaining CSS

The style sheet(Drunk is loaded in by the javascript
/includes/common/sothebys_js.js

This checks which browser is being used then writes the style sheet to the document . For example ~
if (nn6mac) {
document.writeln('<link rel="stylesheet" href="/includes/common/sothebys_css_ie5pc.css" type="text/css">');
var formInputSize = 13;

This will only work for javascript enabled browsers though.

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

linkot
Offline
newbie
Last seen: 16 years 17 weeks ago
Joined: 2004-08-09
Posts: 3
Points: 0

Obtaining CSS

:roll: okay ... does that mean I can't get my hands on the style sheet? :?