Hi,
I am a self-taught html newbie who wrote my own web page...I am trying to integrate style sheets and it is just not working. After pulling my hair out trying to get it to work on my actual pages, I did the very basics and it still did not work.
this is what is in my temp.html file, see very basic
<html>
<head>
<title></title>
<LINK REL="stylesheet" TYPE="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.celebratedsensations.com/celebrat.css" />
</head>
<body>
this is a test
</body>
</html>
and this is what is in my celebrat.css file
<style type="text/css">
body{font-family:verdana, arial, times; font-size: 36pt;colorrange;} </style>
and all I get is a white background with black text...when I took out the external link and entered the 'style' in the temp.html it worked fine. I must be doing something really silly and would appreciate any help!!!
Thanks!!
LizOn you css file you can get rid of the <style> tags. You don't need them if the file is saved as *.css. Also, you should write your css like this for readability:
body {
font-family: verdana, arial, times;
font-size: 36pt;
color: orange;
}
It's not necessary, but it makes it easier to read.
With your font-family you should end in sans-serif, serif. I think those two are the most common generic fonts. I think Yes they are the only 2 generic font types. though in your font list you have mixed the 2 which is a rather odd thing to do. I prefer to use "verdana, arial, helvetica, sans-serif"
It's also recommended that all your html tags are in lowercase and you change your colours to hex code.thank you, thank you, thank you!!!! removing the 'style' in the file did the trick...also with the fonts didn't know which ones to use or the order so thanks for the suggestions. now i can let my hair grow back in With your fonts, just list them in the order of importance to you. But, end with sans-serif or serif. gotcha, thanks once again!!!!
I am a self-taught html newbie who wrote my own web page...I am trying to integrate style sheets and it is just not working. After pulling my hair out trying to get it to work on my actual pages, I did the very basics and it still did not work.
this is what is in my temp.html file, see very basic
<html>
<head>
<title></title>
<LINK REL="stylesheet" TYPE="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.celebratedsensations.com/celebrat.css" />
</head>
<body>
this is a test
</body>
</html>
and this is what is in my celebrat.css file
<style type="text/css">
body{font-family:verdana, arial, times; font-size: 36pt;colorrange;} </style>
and all I get is a white background with black text...when I took out the external link and entered the 'style' in the temp.html it worked fine. I must be doing something really silly and would appreciate any help!!!
Thanks!!
LizOn you css file you can get rid of the <style> tags. You don't need them if the file is saved as *.css. Also, you should write your css like this for readability:
body {
font-family: verdana, arial, times;
font-size: 36pt;
color: orange;
}
It's not necessary, but it makes it easier to read.
With your font-family you should end in sans-serif, serif. I think those two are the most common generic fonts. I think Yes they are the only 2 generic font types. though in your font list you have mixed the 2 which is a rather odd thing to do. I prefer to use "verdana, arial, helvetica, sans-serif"
It's also recommended that all your html tags are in lowercase and you change your colours to hex code.thank you, thank you, thank you!!!! removing the 'style' in the file did the trick...also with the fonts didn't know which ones to use or the order so thanks for the suggestions. now i can let my hair grow back in With your fonts, just list them in the order of importance to you. But, end with sans-serif or serif. gotcha, thanks once again!!!!