...

View Full Version : CSS problem



dannowel
06-02-2007, 08:59 AM
Hi,

my question is simple, my body part does'nt work is there a reason?

<STYLE TYPE-"type/css">
<!--
BODY {color: purple; background-color: #00FF00}
A:link {color: green}
A:visited {color: yellow}
H1 {font-size: 24pt; font-family: arial}
H2 {font-size: 8pt; font-family: braggadocio}
H3 {font size:14pt; font-family: desdemona}
-->
</STYLE>

Thank you !

_Aerospace_Eng_
06-02-2007, 09:05 AM
Change this

<STYLE TYPE-"type/css">
to this

<STYLE TYPE="text/css">

dannowel
06-02-2007, 09:13 AM
Thank you for this quick answer:) ,

I tried your suggestion but it does'nt work :(

For the link color it work, but not for the body...

I use the link bellow inside all my html code in the <head> tag ?
<LINK REL=stylesheet HREF="style.css" TYPE="text/css">

Thank you again!

_Aerospace_Eng_
06-02-2007, 09:15 AM
Post a link to your site please.

dannowel
06-02-2007, 09:21 AM
My site is on product, so i don't have link for now...


My style.css is
<STYLE TYPE="type/css">
<!--
BODY {color: purple; background-color: #00FF00}
A:link {color: green}
A:visited {color: yellow}
H1 {font-size: 24pt; font-family: arial}
H2 {font-size: 8pt; font-family: braggadocio}
H3 {font size:14pt; font-family: desdemona}
-->
</STYLE>


And my link between <head> tag is
<LINK REL=stylesheet HREF="style.css" TYPE="text/css">

I just thought, i'm using NotePad++ to write it, can it be the problem?

rwedge
06-02-2007, 09:32 AM
style.css should be:
BODY {color: purple; background-color: #00FF00}
A:link {color: green}
A:visited {color: yellow}
H1 {font-size: 24pt; font-family: arial}
H2 {font-size: 8pt; font-family: braggadocio}
H3 {font size:14pt; font-family: desdemona}

dannowel
06-02-2007, 09:33 AM
Great it work ! :thumbsup:

Thank you very much!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum