473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

No link to external css

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)
Jan 18 '08 #1
4 1499
Where is this stylesheet ? For example the link is added automatically if
the stylesheet is placed in the theme folder...

--
Patrice
"John" <Jo*******@community.nospama écrit dans le message de news:
uw**************@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)

Jan 18 '08 #2
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).
<link rel="stylesheet" media="all" type="text/css" href="css/global.css" />

<link rel="stylesheet" media="all" type="text/css" href="css/MainMaster.css"
/>

Any thoughts?

Thanks

John
"Patrice" <http://www.chez.com/scribe/wrote in message
news:u7**************@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" <Jo*******@community.nospama écrit dans le message de news:
uw**************@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)


Jan 18 '08 #3
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 (wa****@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.

Jan 21 '08 #4
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]"" <wa****@online.microsoft.comwrote in message
news:50****************@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 (wa****@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.

Jan 21 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Unregistered | last post by:
I'm making an Intranet site for someone who is not very familiar wit making websites, thus I would like to make it as simple as possible fo her when she needs to update it. The intranet site...
5
by: Dave Mausner | last post by:
the html 4.01 standard says i can use: <link type="text/css" href=file-name> to include a style section. questions: 1. does the external style sheet have to contain <html> ... </html>? 2. does...
4
by: Jamie Jackson | last post by:
I know that it's possible to return false in an onClick to disable a link. Is there a way to do this within the HREF attribute? Something like: <a href="javascript: return false;"> ? Thanks,...
1
by: KiwiBrian | last post by:
I am using Statcounter to log site visits Upon enquiring whether the service logged visits from my site to external sites using site links I was given the following information:- "You have to...
2
by: Helen | last post by:
Hi I am trying to compile a package of avi to mpeg1 C source codes But I got the link error I searched actually my VFW.h and Vfw32.lib are all in the directory what should I do thanks a lot...
3
by: Leith Bade | last post by:
I have been trying to use the new Visual C++ Toolkit 2003 with the VC6 IDE I set up the executable, inlcude, and library directories to point to the new compilers I had to fix a few errors in the...
31
by: TC | last post by:
I'm looking for opinions on ways to show visitors, your links will send them off-site (to another website). The following was suggested: Look at the three links under the third paragraph:...
28
by: Craig Cockburn | last post by:
I have a tool which tells me the number of times that visitors attempt to access a link from my site to an external site and what the response code received was. In the event of the remote site...
2
by: Angus | last post by:
Hello I am using some classes from a third party and have included them in my projecxt and am compiling and linking with them. Everything compiles ok but I get these link errors: I added...
6
by: info | last post by:
hello all, if anyone out there could help me i would really appreciate it. i am very much a novice coder. I have a site we are building and we have created a section in the admin area to allow the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.