View Full Version : hm


Melancholy
03-17-2003, 07:52 PM
I've read 4 different tutorials on CSS. I'm still a bit confused.

Most of them say you make 1 page and you can title it like 'style.css' or whatever. and you put all the CSS on that page. and then on all your other pages you put this code in the head tag. Is that right so far?

And the page that has all the CSS on it. I'm confused on how the source goes. Do you have to have all the html and head and body tags? Or do you just put all the CSS on there? If someone could help me out i'd appriciate it.

Alcy
03-17-2003, 08:31 PM
Yup, this is the code you put between your head tags:
<link rel=stylesheet href="style.css" type="text/css">

On style.css, you just put the css. No html, head, or body tags. You don't even need style tags :).

For example:
body
{
background-color:#FFFFFF;
font-family:verdana;
}

Melancholy
03-17-2003, 08:35 PM
thank you so much! I get it now :-D

Melancholy
03-17-2003, 10:21 PM
Something went wrong.

http://members.cox.net/sarahm/style.css

That's my CSS. Am I doing something wrong on it? Because, no matter what i change, nothing is changing on my overall site.

http://members.cox.net/sarahm/testing3.html

I don't know if I did the head tag right. Can someone help me? I'd appriciate it.

Sakii
03-17-2003, 10:35 PM
Like Alcy said, you don't need the <style type="text/css">
<!--
part in your CSS. or the ending part either. Hope it helps. There's also the option of putting the CSS all on your webpage with the html, between the <head> tags.

Melancholy
03-17-2003, 10:42 PM
well i took the <-- style stuff out of the CSS. But when I go to my page it's just black new times roman font, which isn't what I had in the CSS.

On the pages, is the HTML supposed to be like this?

<html>

<head

<link rel="stylesheet" type="text/css" href="http://members.cox.net/sarahm/style.css">

>

<title>New Page 3</title>
</head>


Or, did I do something wrong there?

epolady
03-17-2003, 10:44 PM
Try

<html>

<head>

<link rel="stylesheet" type="text/css" href="http://members.cox.net/sarahm/style.css">

<title>New Page 3</title>
</head>


:)

Melancholy
03-17-2003, 11:02 PM
I think that fixed it. Thank you very much!

Melancholy
03-17-2003, 11:12 PM
One more thing... agh I feel so stupid.

The font part isn't working. The colors and such are, but the type of font. I want it to be Verdana, but when I put that, all I get is New Times Roman which I'm assuming is the default. Is there something I'm missing?

Sorry for bugging you all. But your help is greatly appriciated.

epolady
03-17-2003, 11:28 PM
In your CSS page change

body
{ background-color: #18398C;
background-attachment: fixed

cursor:crosshair;

font-family: verdana;
color: #FFFFFF;
font-size: 10pt;

to

body{
background-color: #18398C;
cursor: crosshair;
font-family: verdana;
color: #FFFFFF;
font-size: 10pt;

And it should work.

Melancholy
03-17-2003, 11:32 PM
thank you once again!