css background

All about creating websites!
Post Reply
User avatar
isapiens
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 533
Joined: 05 May 2006, 16:00
17
Location: Turn around

css background

Post by isapiens »

just a quick question about css.
I have created a simple site using css, so no html tables. I used <div> to create menu area, header, footer and etc... the usuall stuff.

Then i created an image in photoshop wich is a bit darker then the color of the website, so i wanna put it up as a background. Am i supposed to use the z-index or smth.. i am not quite getting it.

I actually have another problem too. The image that i created just looks like flames (they are filled with gradient gray). But it also has a background color.
Now how do i get rid of the background and just leave the flames, so that background wont overlap with the entier website when i put it up.

I am probably not really clear at what i am saying. let me know if u are not getting it so i can try to explain my problem again.

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Well, for the css you would do this:

body
{
background-image:url('image.jpg');
}

And for the flames image back ground, you'll have to delete the background and make it transparent.
¯\_(ツ)_/¯ It works on my machine...

User avatar
isapiens
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 533
Joined: 05 May 2006, 16:00
17
Location: Turn around

Post by isapiens »

ok got it, tx. I just realized i should have posted it in web development thread.

User avatar
Stavros
ΜΟΛΩΝ ΛΑΒΕ
ΜΟΛΩΝ ΛΑΒΕ
Posts: 1098
Joined: 02 Jan 2006, 17:00
18
Location: Mississippi, U.S.A.

Post by Stavros »

You're welcome. :)

User avatar
LaBlueGirl
Suckopithicus chickasaurus
Suckopithicus chickasaurus
Posts: 513
Joined: 22 Mar 2006, 17:00
18
Location: Brussel
Contact:

Re: css background

Post by LaBlueGirl »

isapiens wrote:
<snip>
Then i created an image in photoshop wich is a bit darker then the color of the website, so i wanna put it up as a background. Am i supposed to use the z-index or smth.. i am not quite getting it.
This may help:
http://archivist.incutio.com/viewlist/css-discuss/60934

I've never heard of 'smth' so I can't comment on it...
isapiens wrote: I actually have another problem too. The image that i created just looks like flames (they are filled with gradient gray). But it also has a background color.
Now how do i get rid of the background and just leave the flames, so that background wont overlap with the entier website when i put it up.

I am probably not really clear at what i am saying. let me know if u are not getting it so i can try to explain my problem again.
I can give a possible solution, but there are others here more knowledgeable in this field:)
"Hey, Crash!
Ever tried walking with no legs?

It's real slow!"
~Crunch, Crash Bandicoot TTR

User avatar
isapiens
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 533
Joined: 05 May 2006, 16:00
17
Location: Turn around

Post by isapiens »

lol 'smth' stands for something, which means i am not sure what to call it.
From what i understand layouts can be kind of confusing in css.

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

I prefer CSS over tables, Tables can be more confusing because of all the HTML code.
¯\_(ツ)_/¯ It works on my machine...

Post Reply