Simple CSS question

O

Otuatail

Can anyone help me as I am new to style sheets. I have managed to change fonts
but I can't get the background to work. here is the style sheet code.

Thanks.

<style>

body {background-image:url(file:images/marble.gif);}

..headline
{
FONT-SIZE: 22pt;
COLOR: sienna;
FONT-FAMILY: 'Times New Roman'
}

..standard
{
FONT-SIZE: 12pt;
COLOR: black;
FONT-FAMILY: Arial
}

..Menu
{
FONT-SIZE: 14pt;
COLOR: sienna;
FONT-FAMILY: 'Times New Roman'
}

</style>
 
E

Els

Otuatail said:
Can anyone help me as I am new to style sheets. I have
managed to change fonts but I can't get the background to
work. here is the style sheet code.

Thanks.

<style>

body {background-image:url(file:images/marble.gif);}

Take out the word "file:".
.headline
{
FONT-SIZE: 22pt;

Extra info, not asked for:
Don't use pt for font-size, use %.
;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top