Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Changing background color to black?
Old 02-23-2009, 05:40 PM Changing background color to black?
Super Talker

Posts: 132
Trades: 0
Hey guys, i need to change the background color of each "content" block or portion of each page [which is presently "white"] on this site to black,

www.mywholesalephones.com

this is the site's existing CSS code, what exactly do I need to change please? I am not seeing anything referring to "background" color of the blocks in this coding?


Quote:
/************************************************** *******
************************************************** ********

Folder: Theme315_Generic1
Name: Generic 1
Cat: Generic

************************************************** ********
************************************************** *******/
/*------------------------------------
GENERAL
------------------------------------*/
body {
margin: auto;
}

.sf_outer_wrapper {
width: 798px;
margin: 50px auto;
}

.sf_wrapper {
width: 798px;
position: relative;
}

a {
color: #000;
}

.sf_extra10 {
display: none;
}

/* ------------------------------------
HEADER
------------------------------------ */
.sf_header_wrapper {
margin-top: 0px;
height: 133px;
background-image:url(images/dreamstime_1140097.jpg);
background-repeat:no-repeat;
width:798px;
}

.sf_main_header p, .sf_sub_header p { margin: 0; padding: 0; }
.sf_main_header {
padding-top: 25px;
text-align: left;
font: bold 24px Helvetica, Arial, sans-serif;
line-height: .9;
margin-left: 18px;
height: 40px;
overflow: hidden;
}

.sf_sub_header {
text-align: left;
font: normal 12px Helvetica, Arial, sans-serif;
padding: 4px 0 30px 50px;
width: 450px;
height: 30px;
overflow: hidden;
}
/* ------------------------------------
NAVIGATION
------------------------------------ */
.sf_navigation_top { display: none; }

.sf_navigation {
clear: both;
height: auto;
width: 798px;
}

.sf_navigation ul {
margin: 0 0;
height: auto !important; height: 1%;
padding-left: 0;
}

.sf_navigation ul:after {
content: ".";
display: block;
visibility: hidden;
height: 0;
font-size: 1px;
clear: both;
}

.sf_navigation ul {
list-style-type: none;
}

.sf_navigation ul li {
float: left;
width: auto !important;
width: 5px;
white-space: nowrap;
}

.sf_navigation ul li a {
height: 40px;
margin: 0 0 0 1px;
text-decoration: none;
display: block;
font: normal 12px Verdana, Arial, Helvetica, sans-serif;
line-height: 28px;
padding: 0 10px;
}

.sf_navigation ul li a:hover {
text-decoration: none;
color: #fff;
display: block;
}

/*------------------------------------
CONTENT
------------------------------------*/
.sf_pagetitle {
clear: both;
padding: 10px 0 0 20px;
font: normal 1.5em Helvetica, Arial, sans-serif;
text-align: left;
height: auto !important;
min-height: 30px;
}

.sf_content {
height: 300px;
padding: 20px 20px 0 20px;
margin: 0px;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
height: auto !important;
height: 200px;
min-height: 200px;
}

.sf_content:after {
content: ".";
display: block;
visibility: hidden;
height: 0;
font-size: 1px;
clear: both;
}

/*------------------------------------
FOOTER
------------------------------------*/
.sf_footer {
font-size: .8em;
padding: 25px 0 0 20px;
text-align: center;
font-family: Verdana, Arial, Helvetica, sans-serif;
height: 30px;
}

/*------------------------------------
BANNER
------------------------------------*/
div.sf_banner {
margin-bottom: 35px;
padding-top: 50px;
text-align: center;
font-size: .8em;
}

div.sf_banner div#bannerLink {
padding-top: 10px;
}
mikehende is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-23-2009, 05:42 PM Re: Changing background color to black?
Super Talker

Posts: 132
Trades: 0
I am being told this:

White, or #FFFFFF; is the default value for background colours. All you need to do is add this to the sections you want to have a black background:

{background-color: #000; }

but I need to know exactly where to add it, let's narrow this down please, I want the content block's background alone to be black so I add the black color code to this section of the code? If so, I am told to add it to .sf_content, therefore the Content code should be?

.sf_content {
{background-color: #000; }
height: 300px;
padding: 20px 20px 0 20px;
margin: 0px;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
height: auto !important;
height: 200px;
min-height: 200px;
}

or should I remove the before and after {} surrounding the color code?

Last edited by mikehende; 02-23-2009 at 05:46 PM..
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-23-2009, 05:55 PM Re: Changing background color to black?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Remove the curly braces that you now have around the background color property, you only need 1 set per selector.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2009, 06:07 PM Re: Changing background color to black?
Super Talker

Posts: 132
Trades: 0
Great, works [thanks], so tell me, does this mean that if you are building a site and want the background color to be white you simply don't add any background color code?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-23-2009, 08:54 PM Re: Changing background color to black?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Well, no, that's not a good habit to get into. For instance, my default desktop background color is a pale pink (doesn't cause eye strain). When I view sites that have NOT set a bg color, what I see is their (often) colored boxes sitting on top of pale pink. Who knows what colors someone else might have. So it's a good practice to ALWAYS specify a bg color, even if it's just white.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2009, 09:02 PM Re: Changing background color to black?
Super Talker

Posts: 132
Trades: 0
ok, noted, will do, thanks.
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-25-2009, 09:36 AM Re: Changing background color to black?
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
strange style setting in browsers are EXACTLY why "style re-setters" were invented.

http://developer.yahoo.com/yui/reset/

good stuff
__________________
Will Anderson

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Old 02-25-2009, 10:29 AM Re: Changing background color to black?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I'd hardly call a default of white a 'strange setting'
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Changing background color to black?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27587 seconds with 12 queries