Previous Message
Next Message

Re: [css-d] Newbie question

Sent by Liorean on 29 September 2002 00:12


At 16:32 2002-09-28 -0500, Ken Hicks wrote:
>Hi all!
>I was wondering how you are viewing the stylesheets for someone's site. I
>noticed that when someone asked a question or wants a solution to a problem
>on their site, the responses indicate the ability to view someone else's
>stylesheets. I guess I have just not gotten far enough in my studies or have
>missed how to see or download this info.... Is this possible? Please accept
>my apology if this is a "no-no" or a very stupid question.

First of all, you could look at the source of the html file. There are 
multiple ways of applying styles to an html page, but here's a few:

Inline styles:
   <tag styles="/* css for this element only */"></tag>

Embedded styles (in the head):
   <style type="text/css">
   /* css follows here */
   </style>

Imported/linked styles, also referred to as external stylysheets (in the head):
   <style type="text/css">
   @import url([url]);
   </style>

   <link ref="Stylesheet" href="[url]" type="text/css" />

There's also a few other methods, but those are not in wide use and 
learning them would currently just be information overloading.



As you see, while two of those mechanisms provide ways of writing the 
styles into the html document itself, the most widely used method is to 
refer to external stylesheet files.

I've constructed a convenient bookmarklet for ie5.5+win and moz/nn6+ for 
displaying external stylesheets, which you might find useful:
<http://members.evolt.org/liorean/bookmarklets/viewstyles.html>

Tantek also has a bookmarklet doing the same in ie5+mac at his site 
<http://www.favelets.com/>

// Liorean
Previous Message
Next Message

Message thread:

Possibly related: