I'm feeling a bit puzzled. I have a master and content page that use an
external css file (Home.css) and everything works perfectly. What I don't
understand is that I forgot to add a link to Home.css but some how it's
still being used. My understanding was that only if you explicitly add a
link to a css file would it be used?
If anyone can shed some light I'd be very grateful.
Best regards
John
(Using VS2008 Pro)
Re: No link to external css
am 18.01.2008 17:35:42 von Patrice
Where is this stylesheet ? For example the link is added automatically if
the stylesheet is placed in the theme folder...
--
Patrice
"John" a écrit dans le message de news:
uwZfr8eWIHA.4196@TK2MSFTNGP04.phx.gbl...
> Hi there,
>
> I'm feeling a bit puzzled. I have a master and content page that use an
> external css file (Home.css) and everything works perfectly. What I don't
> understand is that I forgot to add a link to Home.css but some how it's
> still being used. My understanding was that only if you explicitly add a
> link to a css file would it be used?
>
> If anyone can shed some light I'd be very grateful.
>
> Best regards
>
> John
>
> (Using VS2008 Pro)
>
Re: No link to external css
am 18.01.2008 18:52:30 von John
Hello Patrice,
Sorry I should have explained. Both content and master pages are at root
level and then I have all of css files (including Home.css) under a folder
named 'css'.
'global.css' and 'MainMaster.css' are linked to within the master head
section (as per below). No mention of 'Home.css' anywhere, but I know it's
working as I can see the effects of changing it plus in Dev Toolbars (IE and
Mozilla).
/>
Any thoughts?
Thanks
John
"Patrice" wrote in message
news:u78bsAfWIHA.4896@TK2MSFTNGP06.phx.gbl...
> Where is this stylesheet ? For example the link is added automatically if
> the stylesheet is placed in the theme folder...
>
> --
> Patrice
>
>
> "John" a écrit dans le message de news:
> uwZfr8eWIHA.4196@TK2MSFTNGP04.phx.gbl...
>> Hi there,
>>
>> I'm feeling a bit puzzled. I have a master and content page that use an
>> external css file (Home.css) and everything works perfectly. What I
>> don't understand is that I forgot to add a link to Home.css but some how
>> it's still being used. My understanding was that only if you explicitly
>> add a link to a css file would it be used?
>>
>> If anyone can shed some light I'd be very grateful.
>>
>> Best regards
>>
>> John
>>
>> (Using VS2008 Pro)
>>
>
>
Re: No link to external css
am 21.01.2008 05:03:03 von wawang
Hi John,
Search in all your stylesheet files to see if 'home.css' is imported by
other stylesheet files with "@import url(home.css)", then look at those
stylesheet files to see if they are used by your global.css or
MainMaster.css.
As Patrice pointed out, if you're using themes, stylesheets used in theme
will be included automatically. Check the html source to see if there's any.
Also, you can use IE Developer Toolbar's function "View Element Source with
Style" on the elements that you suspect is using styles from home.css to
confirm if home.css will be listed in the result.
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Re: No link to external css
am 21.01.2008 13:16:51 von John
Hello Walter,
Following your advice I've uncovered my mistake. I managed to add a link in
the content page's Page Load event and then promptly forgot about it.
Mystery solved! Thanks very much for your help.
Best regards
John
""Walter Wang [MSFT]"" wrote in message
news:50NGSK%23WIHA.7336@TK2MSFTNGHUB02.phx.gbl...
> Hi John,
>
> Search in all your stylesheet files to see if 'home.css' is imported by
> other stylesheet files with "@import url(home.css)", then look at those
> stylesheet files to see if they are used by your global.css or
> MainMaster.css.
>
> As Patrice pointed out, if you're using themes, stylesheets used in theme
> will be included automatically. Check the html source to see if there's
> any.
>
> Also, you can use IE Developer Toolbar's function "View Element Source
> with
> Style" on the elements that you suspect is using styles from home.css to
> confirm if home.css will be listed in the result.
>
>
> Regards,
> Walter Wang (wawang@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>