473,804 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

external stylesheet problem

I created an external stylesheet file 'styles.css' and an html file that
includes the line:

<LINK REL="stylesheet " TYPE="text/css" HREF="styles.cs s"

Both the .css file and the html file reside on my local PC. When I open the
html file with IE6 the styles are not seen in the webpage. Everything looks
fine if I upload the .css and html files to my web server.

Any ideas on why the styles don't appear on my local PC?
Jul 20 '05
26 3500
I do not have a BASE tag in my page.

"Harlan Messinger" <h.*********@co mcast.net> wrote in message
news:2l******** ****@uni-berlin.de...

"HarryO" <ch*******@comc ast.net> wrote in message
news:qKwHc.4740 0$a24.7881@attb i_s03...
I created an external stylesheet file 'styles.css' and an html file that
includes the line:

<LINK REL="stylesheet " TYPE="text/css" HREF="styles.cs s"

Both the .css file and the html file reside on my local PC. When I open

the
html file with IE6 the styles are not seen in the webpage. Everything

looks
fine if I upload the .css and html files to my web server.

Any ideas on why the styles don't appear on my local PC?


Have you got a BASE tag in your page?

Jul 20 '05 #21
Els wrote:

Be honest: you're trolling, or you're clueless?
I can display a page with 5 different stylesheets on my IE or
whichever browser locally, no need for a server.

KMA.
BTW, you are correct, I was not. Setup problem.

--
jmm dash list at sohnen-moe dot com
(Remove .TRSPAMTR for email)
Jul 20 '05 #22
jmm-list-tr wrote:

KMA.
BTW, you are correct, I was not. Setup problem.


If you were wrong, then what's the "KMA" for?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #23
Brian wrote:

KMA.
BTW, you are correct, I was not. Setup problem.


If you were wrong, then what's the "KMA" for?

I am neither a troll, nor clueless. Just mistaken.

--
jmm dash list at sohnen-moe dot com
(Remove .TRSPAMTR for email)
Jul 20 '05 #24
jmm-list-tr wrote:
KMA.
BTW, you are correct, I was not. Setup problem.

I am neither a troll, nor clueless. Just mistaken.


And rather belligerent. You forgot that part.

HAND
--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #25
O.K. I've partially solved my problem. When I created my '.css' file I used
Notepad saving it as 'styles.css' and type Text Document. Apparently there's
a hidden '.txt' extension at the end of the file because when I change my
link line to:

<LINK REL="stylesheet " TYPE="text/css" HREF="styles.cs s.txt>"

the styles show up when I view the html file in IE6 browser.

New question: How do I create a '.css' file without the '.txt' extension?

"HarryO" <ch*******@comc ast.net> wrote in message
news:qKwHc.4740 0$a24.7881@attb i_s03...
I created an external stylesheet file 'styles.css' and an html file that
includes the line:

<LINK REL="stylesheet " TYPE="text/css" HREF="styles.cs s>"

Both the .css file and the html file reside on my local PC. When I open the html file with IE6 the styles are not seen in the webpage. Everything looks fine if I upload the .css and html files to my web server.

Any ideas on why the styles don't appear on my local PC?

Jul 20 '05 #26
Els
HarryO wrote:
O.K. I've partially solved my problem. When I created my
'.css' file I used Notepad saving it as 'styles.css' and
type Text Document. Apparently there's a hidden '.txt'
extension at the end of the file because when I change my
link line to:

<LINK REL="stylesheet " TYPE="text/css"
HREF="styles.cs s.txt>"

the styles show up when I view the html file in IE6
browser.

New question: How do I create a '.css' file without the
'.txt' extension?


Don't select type "Text Document". Instead select "All files".
Plus you might want to switch on the visibility of all
extensions. Might just save you from opening an attachment
called openme.txt.exe. ..

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Scene - Geloof
Jul 20 '05 #27

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

Similar topics

3
12823
by: allard poldermans | last post by:
How can I make a reference to an external CSS or JS file that is relative to the XSL stylesheet, and not relative to the XML data? If you simply put : <link rel="stylesheet" type="text/css" href="ui/demo.css" ></link> in your XSL file, this link will always be relative to the location where the XML file is. For example, suppose I have following XML data (test.xml):
0
1484
by: Shawn Modersohn | last post by:
Can someone give me the lowdown on the way these two browsers deal with the following <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="datadump.css"?> <!DOCTYPE datadump > <datadump> <name> <first>&txt;</first> <last>&sig;</last>
12
2787
by: Peter Collinson | last post by:
Hi... My external style sheet for a 200+ page site is marked up as: BODY, P, TABLE, TD, DIV { background: #ffffff; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em;
6
3425
by: Christopher Benson-Manica | last post by:
Just FMI, if an external stylesheet is linked to a page (with <link>), will subsequent <style> tags override the values in the external stylesheet? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
2
2256
by: Markus Ernst | last post by:
Hi I build a small content management system. I use different external stylesheets for the admin section and the frontend, called admin.css and frontend.css. Now I would like to preview some frontend stuff in the admin section. Is there a syntax for accessing a style from a different style sheet? For example:
7
2587
by: David Filmer | last post by:
Greetings. I want to localize a style definition to a portion of an HTML document, but use an external stylesheet. It seems that I can only do <style><!-- @import url(styles/my_style.css);--></style> and <link rel=stylesheet href=styles/my_style.css type=text/css> in the header, which applies to the entire HTML document and is NOT what I want to do. This does not seem to work: <span style = @import url('styles/my_style.css');>
6
2492
by: Stephen Cook | last post by:
Having worked through the problems around enabling the document function using an XmlUrlResolver I started work on building a useful class to hide the intricacies. Trying to generalise the process I've hit a snag. How do I resolve multiple external references? The transform method on a stylesheet only takes one resolver, not an array Stephen
7
1692
by: Dan Nash | last post by:
Hi I'm trying to create an external stylesheet for use in my Web App. It works fine, and I've got it linked and everything. The only problem is the "background-image" property isn't working. I've selected the iamge through VS, and its in the _images/ subdir. The code that VS created is as follows: background-image: url(_images/back.jpg) Yet it doesn't work. The image appears in the CSS style editor, but when I run my app in the...
35
2377
by: Guy Macon | last post by:
I have been running tests on various doctypes and found something interesting. I set up a test page using this doctype... <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0 Strict Level 1//EN"> ....and put this in the head: <link rel="stylesheet" type="text/css" href="http://www.example.com/test.css">
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10326
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.