SEO 1 Links

  SEO Blog
  SEO Forum

  Active Topics
  Register
  Memberlist
  FAQ
  Search




SEO Forums

  SEO Forum
  SEM Forum

  Directories
  Link Networks
  Mod Rewrite
  Content
  Revenue Networks

  Marketing
  Social Bookmarking
  Webmastering

  Google
  Yahoo
  MSN

  Search
  Engines

  Link Exchange



Welcome

Time Now:
Sat Nov 21, 2009 4:39 am

All times are GMT

Log in

Username:

Password:

 





 





Who is Online



Most users ever online in a day was 2917 on Thu Oct 25, 2007 4:43 pm
 



Member Websites
SEO India 16
Drupal Development 16
Digital Agency 16
SEO Training 13
Web Design India 12
Vehicle Tracking 11
Web Hosting India 10
Dolson 10
Domain Registration 8
Web Hosting India 6
BestOnLineDir 6
Health Insurance 6
Social Optimization 5
Seo Audit 5
SeoGuardians 5
SEO Company India 4
Sax In My Pocket 4
bettyem 4

Free Sitewide Links
For Top Members





SEO 1 Forums > Webmastering >

What is the exact css code to put a background?



Author Thread
qwzxlk
New Member


Joined: 28 Apr 2009
Good Posts: 6

What is the exact css code to put a background?  Reply with quote  

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.
Post Mon May 11, 2009 6:55 am
 View user's profile Send private message
Mr Jepps Se
Moderator


Joined: 30 Apr 2009
Good Posts: 13
Location: Somerset
 Reply with quote  

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.
Post Mon May 11, 2009 8:09 pm
 View user's profile Send private message Visit poster's website
arvindwebmaster
Preferred Member


Joined: 02 Apr 2009
Good Posts: 137
Location: New Delhi, India
 Reply with quote  

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.

Mr. Green

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 | Interactive Advertising Agency
Post Tue May 12, 2009 6:37 am
 View user's profile Send private message Visit poster's website
lawexpert
New Member


Joined: 22 Apr 2009
Good Posts: 6

 Reply with quote  

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.
Post Tue May 12, 2009 11:18 am
 View user's profile Send private message Visit poster's website
Mr Jepps Se
Moderator


Joined: 30 Apr 2009
Good Posts: 13
Location: Somerset
 Reply with quote  

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.
Post Tue May 12, 2009 2:10 pm
 View user's profile Send private message Visit poster's website
Jenniferlinn
Preferred Member


Joined: 01 Jan 2009
Good Posts: 105
Location: UK
 Reply with quote  

Here is the code:

body {

background:#cccccc;
}

#parent {
background:#cccccc;
}


SEO
Post Tue Jun 02, 2009 5:37 am
 View user's profile Send private message Visit poster's website
nagesh
New Member


Joined: 26 Aug 2009
Good Posts: 6

 Reply with quote  

css code:
body {
background: #666666;
}

div#wrap {
height: auto;
margin: 0 auto;
}
html:

<body>

<div id="wrap"></div>

</body>


Please use your signature
Post Wed Aug 26, 2009 11:57 am
 View user's profile Send private message

Reply to topic
Jump to:  
Display posts from previous:      



phpBB

SEO 1 © 2005-2008 - SEO Forum