View Full Version : Trouble with CSS coding


hina
07-13-2005, 04:26 PM
I've made a page and linked CSS to it but not all the CSS seems to work. The page is http://www.miragefactory.co.uk/main.html

This is the CSS:

<style type="text/css">

A:link
{color:#CC521E; text-decoration:overline}
A:visited
{color:#CC521E; text-decoration:overline}
A:active
{color:#CC521E; text-decoration:overline}
A:hover
{color:#CC521E;

text-decoration:overline;font-weight:bold;cursor:cursor:n-resize}

body
{ background: #FFFFFF;
background-image: files/layout_1bg.gif;
background-repeat: repeat;
background-position: left;
background-attachment: scroll;
font-family: verdana;
color: #CC521E ;
letter-spacing: 1pt;
font-weight: normal;
font-size: 10pt}

input, textarea
{ background: #FF996D;
font-family: verdana;
color: #CC521E;
border-style: solid;
border-color: #CC521E;
border-width: 1px;}

</style>

Any help will be appreciated =)

salomeyasobko
07-13-2005, 04:43 PM
if you're linking to an external style sheet, take out the <style> and </style> tags

also, your coding for the background image is incorrect. you have

background-image: files/layout_1bg.gif;

but it needs to be

background-image: url(files/layout_1bg.gif);

i hope that helps! :)

hina
07-13-2005, 05:53 PM
if you're linking to an external style sheet, take out the <style> and </style> tags

also, your coding for the background image is incorrect. you have

background-image: files/layout_1bg.gif;

but it needs to be

background-image: url(files/layout_1bg.gif);

i hope that helps! :)

Thanks =). I just changed the coding but the background still doesn't seem to work.

Merike
07-13-2005, 06:40 PM
Thanks =). I just changed the coding but the background still doesn't seem to work.

Did you upload the file aswell? I can't see the changes in your css.

DTT
07-13-2005, 07:24 PM
Try like this:

background-image: url(files/layout_1bg.gif);

If that DOESN'T work, could you maybe link and show us...?

hina
07-13-2005, 09:56 PM
Thanks ^^. It works now.