css - I don' t get it (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


jrrnow -> css - I don' t get it (6/11/2003 6:19:03)

ok,

I just changed my simple css on my web and it screwed everything up.

www.wetclaywebdesign.com/index2.htm

here is the css:

quote:

body { font-family: Arial; font-size: 10pt; color:#000000; list-style-type:disc }
A:link {color: #660000; text-decoration: none}
A:visited {color:#660000; text-decoration:none}
A:hover {color: #666666; text-decoration:underline}
background-color: white


All I did was add the bg color line and saved and my borders on the left and right changed to fat 3 pix as well as the justification for the paragraph changed also. But the weird thing is that it only changed the one page. (/index2.htm) all the rest of my pages are the same.

What happened?




abbeyvet -> RE: css - I don' t get it (6/11/2003 6:50:48)

background-color: white is an attribute. An attribute must be applied to an element - background of what?

If you mean the page background then it should be like this:

body { font-family: Arial; font-size: 10pt; color:#000000; list-style-type:disc; background-color: white;}




jrrnow -> RE: css - I don' t get it (6/11/2003 6:58:05)

I want the whole page background to be white. Because some have thier theme set for their display and I would like the page to look the way I designed it. Can I still use the same line as above or does it need to be something else.

I changed it to what you suggested and I guess it worked but now the font and size is being done by the css but the color is not. here is the new css.

quote:

body { font-family: Arial; font-size: 9pt; color:#666666; list-style-type:disc; background-color: white;}
A:link {color: #660000; text-decoration: none}
A:visited {color:#660000; text-decoration:none}
A:hover {color: #666666; text-decoration:underline}


The weird thing is that in normal view in Fp it works, it doesn' t work when I publish and try to view it on the internet. Although, like I said, the font and size is working.

I' m completely lost with the css thing if you haven' t guessed yet.

thanks




gorilla -> RE: css - I don' t get it (6/11/2003 7:47:28)

The body background will apply to the whole page. That' s what it' s for [:)]

The exception to this is that for any element where you specify a different background colour. Therefore if you have a body background of white and one element say a quotation for example and you choose to give that quotation a background of yellow then all the page will have a white background except for the quotation.

quote:

I' m completely lost with the css thing if you haven' t guessed yet.



Stick with it - it really is very easy and a great timesaver. You were probably completely lost the first time you started HTML too but you got there didn' t you? [:)][:)]

Karsten




jrrnow -> RE: css - I don' t get it (6/11/2003 7:52:34)

quote:

You were probably completely lost the first time you started HTML too but you got there didn' t you?


Got you fooled don' t I? I' m just as lost there. haha

thanks for the help




gorilla -> RE: css - I don' t get it (6/11/2003 8:14:33)

quote:

ORIGINAL: jrrnow

Got you fooled don' t I? I' m just as lost there. haha

thanks for the help


[:D][:D][:D][:D]

You are welcome

K




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625