Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2007, 01:45 AM
Registered User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default The css file in my website gets disabled

I have developed a web site and I have used .css files for my buttons etc., My web page runs fine in my machine. But when i try to run the same web page in different machine, my css files are disabled and hence my buttons and other controls does not have the format that i have declared.

Could any one please tell me a solution for this.

Regards,
Mags.
 
Old March 23rd, 2007, 07:02 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How are you referencing your external CSS file? What does the HEAD tag of your HTML page look like?

- Adam Kahtava [http://adam.kahtava.com]
 
Old March 26th, 2007, 12:35 AM
Registered User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I make a reference to my external css file by adding the following code in the Head tag in my HTML page.

<HEAD>
<LINK REL="STYLESHEET" type="text/css" HREF="../../includes/buttonsformat.css">

 
Old March 27th, 2007, 06:46 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try using a non relative link like HREF="/Directory/includes/buttonsformat.css" or HREF="http://domainname.com/Directory/includes/buttonsformat.css".

- Adam Kahtava [http://adam.kahtava.com]





Similar Threads
Thread Thread Starter Forum Replies Last Post
File share website cluce BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 February 18th, 2008 06:24 PM
Updating an Existing Website to XHTML and CSS funksoulkitty HTML Code Clinic 2 April 3rd, 2006 05:51 PM
Is CSS the best for making website layout?? DSteven CSS Cascading Style Sheets 3 August 23rd, 2005 05:45 AM
Applying CSS to a disabled List Box in ASP.net imsuneeta ASP.NET 1.0 and 1.1 Basics 1 May 2nd, 2005 08:56 PM
can't save html /css website !! ca123 CSS Cascading Style Sheets 2 November 15th, 2004 07:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.