This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2004 > background image with css





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author background image with css
jameslyon

2004-03-30, 9:08 pm

I'm trying to add a background image to my web site using some basic css but
the image doesn't show up. It's a basic background-image and repeat-x but no
worky...

Any help or comments is appreciated!

www.thinlime.com

Here's the css code in the header

<style type="text/css">
body {
background-color: #96CD01;
}
#content {
height: 400px;
width: 550px;
margin: 0 auto;
background-image: url ("sidingSlice.jpg");
background-repeat: repeat-x;
position: relative;
}
</style>

jameslyon

2004-03-30, 9:08 pm

Solution found.

<style type="text/css">
body {
background-color: #96CD01;
}
#content {
height: 400px;
margin: 0 auto;
background-image: url("sidingSlice.jpg");
background-repeat: repeat-x;
position: relative;
text-align: center;

}
</style>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews