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]
> 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.
"Mike Barnard" <m.barnard...@thunderin.co.uk> skrev i en meddelelse
news: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?
>
> 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
> 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".