473,320 Members | 1,861 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,320 software developers and data experts.

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.css"

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 #1
26 3444
Els
HarryO wrote:
I created an external stylesheet file 'styles.css' and an
html file that includes the line:

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

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?


Are they in the same folder?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Kasper's Rabbit Show - In Between
Jul 20 '05 #2
"HarryO" <ch*******@comcast.net> writes:
I created an external stylesheet file 'styles.css' and an html file that
includes the line:

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


Does it really not have a > on the end, or is that just on the next
line? That might be a problem if it's the former.

--
Chris
Jul 20 '05 #3
The .css and html files are in the same folder.

There is an '>' at the close of <LINK REL="stylesheet" TYPE="text/css"
HREF="styles.css"

"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
HarryO wrote:
I created an external stylesheet file 'styles.css' and an
html file that includes the line:

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

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?


Are they in the same folder?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Kasper's Rabbit Show - In Between

Jul 20 '05 #4

"HarryO" <ch*******@comcast.net> wrote in message
news:qKwHc.47400$a24.7881@attbi_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.css"

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 #5
Els
HarryO wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
HarryO wrote:
> I created an external stylesheet file 'styles.css' and
> an html file that includes the line:
>
> <LINK REL="stylesheet" TYPE="text/css" HREF="styles.css"
>
> 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?


Are they in the same folder?


The .css and html files are in the same folder.

There is an '>' at the close of <LINK REL="stylesheet"
TYPE="text/css" HREF="styles.css"


Heb je misschien in IE in de instellingen bepaalde dingen uit
staan voor locale dingen? Onder Extra - Internet-opties -
Beveiliging kun je zowel dingen instellen voor "Het Internet"
als voor "Lokaal intranet". Geen flauw idee of je daar iets in
kunt stellen wat stylesheets uitschakelt en of dat uitmaakt,
maar wie weet.

Misschien is een url van de geuploade versie toch ook wel
handig.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: S a a r - 12
Jul 20 '05 #6
Els
Els wrote:
HarryO wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
HarryO wrote:

> I created an external stylesheet file 'styles.css' and
> an html file that includes the line:
>
> <LINK REL="stylesheet" TYPE="text/css"
> HREF="styles.css"
>
> 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?

Are they in the same folder?


The .css and html files are in the same folder.

There is an '>' at the close of <LINK REL="stylesheet"
TYPE="text/css" HREF="styles.css"


Heb je misschien in IE in de instellingen bepaalde dingen
uit staan voor locale dingen? Onder Extra - Internet-opties
- Beveiliging kun je zowel dingen instellen voor "Het
Internet" als voor "Lokaal intranet". Geen flauw idee of je
daar iets in kunt stellen wat stylesheets uitschakelt en of
dat uitmaakt, maar wie weet.

Misschien is een url van de geuploade versie toch ook wel
handig.


Don't know how to cancel a post with XNews, but it should of
course be written in English :-S

Here goes again:
Maybe you have disabled certain things in IE for local files?
Under Extra - Internet-options - Security you can set stuff
for both the Internet, and for local intranet. No idea if you
could have disabled stylesheets there somehow, and if it would
make a difference, but you never know.

And maybe a url of the uploaded version would come in handy
after all.


--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Astar Shmir - The Lowest Place in Tel Aviv
Jul 20 '05 #7

"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
Els wrote:

Heb je misschien in IE in de instellingen bepaalde dingen
uit staan voor locale dingen? Onder Extra - Internet-opties
- Beveiliging kun je zowel dingen instellen voor "Het
Internet" als voor "Lokaal intranet". Geen flauw idee of je
daar iets in kunt stellen wat stylesheets uitschakelt en of
dat uitmaakt, maar wie weet.

Misschien is een url van de geuploade versie toch ook wel
handig.


Don't know how to cancel a post with XNews, but it should of
course be written in English :-S


Geen probleem--ik heb 't bijna vol begrijpt.

Jul 20 '05 #8
Els
Harlan Messinger wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
Els wrote:

> Heb je misschien in IE in de instellingen bepaalde dingen
> uit staan voor locale dingen? Onder Extra - Internet-opties
> - Beveiliging kun je zowel dingen instellen voor "Het
> Internet" als voor "Lokaal intranet". Geen flauw idee of je
> daar iets in kunt stellen wat stylesheets uitschakelt en of
> dat uitmaakt, maar wie weet.
>
> Misschien is een url van de geuploade versie toch ook wel
> handig.


Don't know how to cancel a post with XNews, but it should of
course be written in English :-S


Geen probleem--ik heb 't bijna vol begrijpt.


Bijna is niet helemaal ;-) Enne.. misschien begrijpt de OP het
helemaal niet :-)

Btw, hoe kom jij aan die taalkennis?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: S a a r - 9
Jul 20 '05 #9
On 9 Jul 2004 15:22:27 GMT, Els <el*********@tiscali.nl> wrote:
Harlan Messinger wrote:
Geen probleem--ik heb 't bijna vol begrijpt.


Bijna is niet helemaal ;-) Enne.. misschien begrijpt de OP het
helemaal niet :-)

Btw, hoe kom jij aan die taalkennis?


How do we know this isn't dirty?

(If it's dirty, you should write it in English ;) )
Jul 20 '05 #10
Els
Neal wrote:
On 9 Jul 2004 15:22:27 GMT, Els <el*********@tiscali.nl>
wrote:
Harlan Messinger wrote:
Geen probleem--ik heb 't bijna vol begrijpt.


Bijna is niet helemaal ;-) Enne.. misschien begrijpt de OP
het helemaal niet :-)

Btw, hoe kom jij aan die taalkennis?


How do we know this isn't dirty?

(If it's dirty, you should write it in English ;) )


It's not. Trust me ;-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: S a a r - 4
Jul 20 '05 #11
Neal wrote:
On 9 Jul 2004 15:22:27 GMT, Els <el*********@tiscali.nl> wrote:
Harlan Messinger wrote:
Geen probleem--ik heb 't bijna vol begrijpt.


Bijna is niet helemaal ;-) Enne.. misschien begrijpt de OP het
helemaal niet :-)

Btw, hoe kom jij aan die taalkennis?


How do we know this isn't dirty?

(If it's dirty, you should write it in English ;) )


http://babelfish.av.com/ is your friend. Red hot IE security settings
speak can be yours! ;)

P
Jul 20 '05 #12

"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
Harlan Messinger wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
Els wrote:

> Heb je misschien in IE in de instellingen bepaalde dingen
> uit staan voor locale dingen? Onder Extra - Internet-opties
> - Beveiliging kun je zowel dingen instellen voor "Het
> Internet" als voor "Lokaal intranet". Geen flauw idee of je
> daar iets in kunt stellen wat stylesheets uitschakelt en of
> dat uitmaakt, maar wie weet.
>
> Misschien is een url van de geuploade versie toch ook wel
> handig.

Don't know how to cancel a post with XNews, but it should of
course be written in English :-S


Geen probleem--ik heb 't bijna vol begrijpt.


Bijna is niet helemaal ;-) Enne.. misschien begrijpt de OP het
helemaal niet :-)

Btw, hoe kom jij aan die taalkennis?


Ik woonte drie jaar in Brussel (30 jaar geleden), en las de ondertitels van
de engelstalige programmas op de televisie. Maar die "stylesheets" en
"uploade"--die heb ik nooit op "Het meisje van de TV" (The Mary Tyler Moore
Show) of "M*A*S*H" gezien.

Jul 20 '05 #13
Els
Harlan Messinger wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
Harlan Messinger wrote:
> "Els" <el*********@tiscali.nl> wrote in message
> news:Xn*****************@130.133.1.4...
>> Els wrote:
>
>> > Heb je misschien in IE in de instellingen bepaalde
>> > dingen uit staan voor locale dingen? Onder Extra -
>> > Internet-opties - Beveiliging kun je zowel dingen
>> > instellen voor "Het Internet" als voor "Lokaal
>> > intranet". Geen flauw idee of je daar iets in kunt
>> > stellen wat stylesheets uitschakelt en of dat
>> > uitmaakt, maar wie weet.
>> >
>> > Misschien is een url van de geuploade versie toch ook
>> > wel handig.
>>
>> Don't know how to cancel a post with XNews, but it
>> should of course be written in English :-S
>
> Geen probleem--ik heb 't bijna vol begrijpt.


Bijna is niet helemaal ;-) Enne.. misschien begrijpt de OP
het helemaal niet :-)

Btw, hoe kom jij aan die taalkennis?


Ik woonte drie jaar in Brussel (30 jaar geleden), en las de
ondertitels van de engelstalige programmas op de televisie.
Maar die "stylesheets" en "uploade"--die heb ik nooit op
"Het meisje van de TV" (The Mary Tyler Moore Show) of
"M*A*S*H" gezien.


Impressive! eh.. indrukwekkend! 30 jaar geleden, slechts 3
jaar in Nederlandstalig gebied, en dan nu nog redelijk de taal
verstaan en schrijven... "petje af!"

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

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?

This is normal. You asked IE to open a file; you did not ask a web
server to deliver a page.

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

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?

This is normal. You asked IE to open a file; you did not
ask a web server to deliver a page.


That's got nothing to do with it.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #16
Els wrote:
jmm-list-tr wrote:
HarryO wrote:

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?

This is normal. You asked IE to open a file; you did not
ask a web server to deliver a page.


That's got nothing to do with it.


The only thing I can see that is missing is a "/" at the close. Like this,<link rel="stylesheet" type="text/css" href="ambl2.css" />. HTH

--

Dan
Jul 20 '05 #17
Dan Boyd wrote:
HarryO wrote:

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?


The only thing I can see that is missing is a "/" at the close.
Like this,<link rel="stylesheet" type="text/css" href="ambl2.css"
/>. HTH


That's only if the author has written xhtml. If it's html, then your
advice will only complicate matters, since it may introduce character
data before the <body> tag.

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

This is normal. You asked IE to open a file; you did not
ask a web server to deliver a page.


That's got nothing to do with it.

It has everything to do with it. The browser cannot ask for the CSS
file since there is nothing to send an http request to.

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

This is normal. You asked IE to open a file; you did
not ask a web server to deliver a page.


That's got nothing to do with it.

It has everything to do with it. The browser cannot ask
for the CSS
file since there is nothing to send an http request to.


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.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #20
I do not have a BASE tag in my page.

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

"HarryO" <ch*******@comcast.net> wrote in message
news:qKwHc.47400$a24.7881@attbi_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.css"

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.css.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*******@comcast.net> wrote in message
news:qKwHc.47400$a24.7881@attbi_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.css>"

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.css.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
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"...
0
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...
12
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:...
6
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*...
2
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...
7
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...
6
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...
7
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. ...
35
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"> ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.