|
|
|
| |
Welcome
Time Now: Sat Sep 04, 2010 8:06 am
All times are GMT
|
|
|
|
|
|
|
|
|
|
| |
SEO 1 Forums
>
Webmastering >
What is the exact css code to put a background?
qwzxlk
New Member
Joined: 28 Apr 2009
Good Posts: 6
|
| What is the exact css code to put a background? |
|
|
What is the exact css code to put a background behind a centered div tag? I want to center my website and behind the centered div tag i want to have a plain gray background but i can't seem to get any codes to work.
Please give me the exact codes and where to put them...i dont know if i should put it in a css or right in the page code. |
Mon May 11, 2009 6:55 am |
|
|
Sime
Moderator

Joined: 30 Apr 2009
Good Posts: 22
Location: Somerset |
Put your content in a table, center the table by wrapping <center> tags around it and then give the table itself a background.
Hi, I'm new to SEO 1. |
Mon May 11, 2009 8:09 pm |
|
|
arvindwebmaster
Senior Member

Joined: 02 Apr 2009
Good Posts: 215
Location: New Delhi, India |
quote: Originally posted by Mr Jepps Se Put your content in a table, center the table by wrapping <center> tags around it and then give the table itself a background.
he is asking for the CSS code ad we dnt use table in the CSS format.
instead of putting all the code here i would like to suggest you to go through the following URL:
http://csshtmltutorial.com/csshtmltutorial-cssbackgroundcodetutorial.php
I think that it may be helpful for you
Digital Agency India | website design india |
Tue May 12, 2009 6:37 am |
|
|
lawexpert
New Member
Joined: 22 Apr 2009
Good Posts: 6
|
Hi
<div style="background:url(../../filename.ext) top left no-repeat;" ></div>
apply this code hope so it will be work.
Hi, I'm new to SEO 1. |
Tue May 12, 2009 11:18 am |
|
|
Sime
Moderator

Joined: 30 Apr 2009
Good Posts: 22
Location: Somerset |
quote: Originally posted by arvindwebmaster
he is asking for the CSS code
I know, I just get so annoyed by people who don't even do the tiniest bit of learning for themselves.
Tables are more than useful, but I'm not looking for a stupid argument.
Hi, I'm new to SEO 1. |
Tue May 12, 2009 2:10 pm |
|
|
Jenniferlinn
Preferred Member
Joined: 01 Jan 2009
Good Posts: 107
Location: UK |
Here is the code:
body {
background:#cccccc;
}
#parent {
background:#cccccc;
}
SEO |
Tue Jun 02, 2009 5:37 am |
|
|
nagesh
New Member
Joined: 26 Aug 2009
Good Posts: 6
|
css code:
body {
background: #666666;
}
div#wrap {
height: auto;
margin: 0 auto;
}
html:
<body>
<div id="wrap"></div>
</body>
Please use your signature |
Wed Aug 26, 2009 11:57 am |
|
|
|
|
|
|
|
|
|