Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reading a CSS file?

0 views
Skip to first unread message

Mike Barnard

unread,
May 3, 2004, 3:03:28 PM5/3/04
to
Hi.

When looking at a website I can use VIEW / SOURCE to see the HTML, but
any external .css files don't show up. Is there a way to see them and
see what someone has done to get an effect?

Thanks.

--
Regards from Mike Barnard
South Coast, UK.

[To reply by email remove ".trousers" spamtrap from email address]

PeterMcC

unread,
May 3, 2004, 5:18:46 PM5/3/04
to
Mike Barnard wrote in
<uo5d90dvpggu6td6k...@4ax.com>

> Hi.
>
> When looking at a website I can use VIEW / SOURCE to see the HTML, but
> any external .css files don't show up. Is there a way to see them and
> see what someone has done to get an effect?

Look in the html source, the location for the css file will be in the head
In the head will be something like:
<link rel="stylesheet" href="style.css" type="text/css">

Go up to the address bar and type the href file name in place of the current
filename - sometimes the file may be in a separate directory, perhaps
/styles/filename.css so add in the directory. Locate the file and save it
then open it in a plain text editor.

Crosscheck styling in the html with the definitions in the css.

Even better - download a copy of TopStyle - an html editor with style
previews - from http://www.bradsoft.com/download/index.asp
Then you simply open the file in TopStyle and you'll be able to preview each
style.

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

gitte

unread,
May 3, 2004, 11:36:02 PM5/3/04
to
you can grab them from your TIF-folder ... temp internet files ..
gitte

"Mike Barnard" <m.barnard...@thunderin.co.uk> skrev i en meddelelse
news:uo5d90dvpggu6td6k...@4ax.com...

Little Dave

unread,
May 10, 2004, 2:21:25 PM5/10/04
to
Mike Barnard wrote:

> Hi.
>
> When looking at a website I can use VIEW / SOURCE to see the HTML, but
> any external .css files don't show up. Is there a way to see them and
> see what someone has done to get an effect?
>
> Thanks.
>

Yes - but not imported ones.. just ones linked by <link>

Load the website you want to see the CSS for and paste this in the
address bar and press enter.

javascript:for(i=0;i<document.getElementsByTagName('LINK').length;i++){var
x=document.getElementsByTagName('LINK')[i].getAttribute('href');var
y=window.open(x);}


If it does what you want, you can add it as a favourite and run it from
there for easy access.

Dave

--
Little Dave
http://www.daveholloway.co.uk
Everyone feel free to add me to your instant messengers:
MSN: daveho...@spamcop.net, YAHOO: daveho...@yahoo.com, ICQ: 104452444

Little Dave

unread,
May 10, 2004, 2:24:19 PM5/10/04
to
Little Dave wrote:

> javascript:for(i=0;i<document.getElementsByTagName('LINK').length;i++){var
> x=document.getElementsByTagName('LINK')[i].getAttribute('href');var
> y=window.open(x);}


Typical line wrapping.. that should all go one one line and there is a
space between "var" and "x" and another space between "var" and "y".

0 new messages