Css Backgrounds

8 posts Page 1 of 1
Contributors
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Css Backgrounds
Lewis
First we can change the body background of our webpage you can also look at my thread in HTML If you dont know what that is, Now We can add this to the head section of the webpage:
<head>
<style>
%Add the style tags *Dont add this*%
</style>
</head>

Now we can set the background of the webpage to a color i choose a grayish blue color:
add this in between <style>
body {
background-color:#b0c4de
}

But we can also set an image as the background:
body {
background-image:url('bg.gif')
}

You can repeat the background horizontaly:
background-repeat:repeat-x;

And Verticly:
background-repeat:repeat-y;

Note you have to add the background repeat under the were youv set the image
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Css Backgrounds
Lewis
any questions? Ask me :P
Image
User avatar
tedhead2
Excellent Poster
Excellent Poster
Posts: 338
Joined: Sun Jan 03, 2010 8:36 am

Re: Css Backgrounds
tedhead2
what do you use to write CSS? I use Komodo Edit.
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Css Backgrounds
Lewis
I can use notepad anything realy :P
Image
User avatar
Toxikr3
Dedicated Member
Dedicated Member
Posts: 69
Joined: Tue Dec 08, 2009 12:49 am

Re: Css Backgrounds
Toxikr3
I hate html/css editors.

They always think they know what I will write, and they just fill it up for me. I get so annoyed. NotePad FTW.

-Toxikr3
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Css Backgrounds
Lewis
^^ Post above agreed ^^
Image
User avatar
rocky4126
VIP - Donator
VIP - Donator
Posts: 258
Joined: Mon Nov 16, 2009 7:39 pm

Re: Css Backgrounds
rocky4126
Dreamweaver for codehints but normally notepad/notepad ++
Image
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Css Backgrounds
Codex
I use Dreamweaver for all web coding, because if i do any sort of mistake it will tell me. and i also like the syntax highlighting. cooll;

+rep to Adobe Dreamweaver :lol:
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
8 posts Page 1 of 1
Return to “Tutorials”