css inheritance

Status
Not open for further replies.

emer_son

Smack-Fu Master, in training
96
Hello
I'm having trouble with my web page. A paragraph<p> I want styled a certain way isn't working. Following are the relevant codes involved;

body {padding: 1em; font-size: 1em; font-family: Verdana,kalimati, serif, sans-serif; color:#3333cc; background-color: #45d4ff; background-image: url(/html//civis/threads/css-inheritance.1108713/latest/placemat.jpg); background-attachment: fixed; }


#align ( color: #ff0000; text-align: center; }


<div id="align">
<p> I don't know when I will go home</p></div>

I can't get the div align paragraph to render as I wish it too. I've searched the web for answers and found some good info but nothing that helps me solve my problem. Help would be appreciated greatly

Thanks
 

jspaul

Wise, Aged Ars Veteran
138
You have multiple CSS syntax errors that come before #align, like this one:

Code:
 #work{ margin: 4em;   font-size: 1em;  font-family: comic sans ms; ;    sans-serif; color: green; font-style: italic; font-weight: bolder; >

try changing that to:

Code:
 #work { margin: 4em; font-size: 1em; font-family: "comic sans ms", sans-serif; color: green; font-style: italic; font-weight: bold; }

Here's a tip: run your site through a validation service if you are having CSS problems. It will often find problems you couldn't see in the code.
 
Status
Not open for further replies.