English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am using a text editor to create a basic web page that has one relative link. I'm familiar with XHTML and am learning CSS. In theory, I know how an external CSS style sheet works, but I can't seem to get it to work out... I put the CSS link



in my home.html document in the correct place (between the head tags?). My CSS comands in the separate document look like this

body { font: dark 12pt 'Century Schoolbook'; background: gray; color: blue }

and I made sure to save this file with the .css extension. Also, I uploaded all the necessary documents to my server...so I can't be wrong there.

The changes show up on the homepage, but not the linked page that I created. Did I do something wrong? Do I need to put the CSS link on the linked page as well as the home page? Thanks.

2006-06-16 07:34:47 · 7 answers · asked by aer 2 in Computers & Internet Programming & Design

7 answers

◙ read these books about html/xhtml/css.
http://www.google.com/search?num=100&hl=en&lr=&newwindow=1&safe=off&q=site%3Awww.oreilly.com+books+html+xhtml+css&btnG=Search

more great books
css hacks and filters http://www.idest.com/csshacks

css anthology 101
http://www.oreilly.com/catalog/0957921888/

read this css filters site
http://www.centricle.com/ref/css/filters/

here is a really good css email list run by eric meyer http://www.css-discuss.com/

here are their css examples pages
http://css-discuss.incutio.com/

best free html/xhtml/css editor with many plugins you can add to it for extra features.
http://www.chami.com/html-kit/

don't use microsoft frontpage. it is just plan junk.

2006-06-17 04:55:00 · answer #1 · answered by Anonymous · 0 0

Yes, each individual page needs to link to the CSS file in the head section.

2006-06-16 07:40:37 · answer #2 · answered by Anonymous · 0 0

You need to put the CSS in the linked pages as well to make it work on those pages too.

2006-06-16 07:41:08 · answer #3 · answered by saqib 2 · 0 0


You have a slash at the end.

Get rid of the slash and do:


And yes, you have to put the link reference in all pages that you want to use the .css page.

2006-06-16 07:44:51 · answer #4 · answered by Sean I.T ? 7 · 1 0

yes, you have to put the css link in the linked page and in any other documents where you want to use it

2006-06-16 07:42:06 · answer #5 · answered by Deep Thought 5 · 0 0

The link is in the right place.

2006-06-16 07:38:23 · answer #6 · answered by Anonymous · 0 0

I have never seen it done with the "" syntax...I would use the following syntax in the HTML document:

2006-06-16 07:39:43 · answer #7 · answered by Richard H 7 · 0 0

fedest.com, questions and answers