Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-14-2012, 01:53 AM   PM User | #1
mike316
New Coder

 
Join Date: May 2012
Posts: 19
Thanks: 7
Thanked 0 Times in 0 Posts
mike316 is an unknown quantity at this point
how to remove background image in css

Hi
I am trying to remove the background image from a template that i downloaded.
Here is what i suspect needs to be changed:
Code:
body {background:url(../images/bg_img.jpg) top center no-repeat #000;border:0;font:13px Arial, Helvetica, sans-serif;color:#3a3a3a;line-height:20px;min-width:980px;text-align:justify;padding:10px 0}

how do I remove the background without messing anything else up?
I tried deleting the bg_img.jpg file, and that worked, but is there a more legit way of doing it?

Last edited by mike316; 05-14-2012 at 02:06 AM..
mike316 is offline   Reply With Quote
Old 05-14-2012, 02:00 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Change
Code:
background:url(../images/bg_img.jpg) top center no-repeat #000;
to
Code:
background: #000;
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Users who have thanked _Aerospace_Eng_ for this post:
mike316 (05-14-2012)
Old 05-14-2012, 02:09 AM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello mike316,
That line is the shorthand for 3 different background properties, image/color/position. Have a look at background shorthand here.

Here the regular background properties are described.

And, of course, _Aerospace_Eng_'s suggestion fixes your problem.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:05 PM.


Advertisement
Log in to turn off these ads.