PC Review


Reply
Thread Tools Rate Thread

background css color

 
 
Mark
Guest
Posts: n/a
 
      15th Nov 2006
this should be easy but it doesn't seem to be. I am trying to add a
background color to a css page I have created.

What exactly should I put in to get it to display. Do I go to the style
area and create the name first and then past or type in the code? See below

..bg { <body bgcolor="black"> }


Whatever it is I am doing the .css page I am putting the color into does not
recognize it. I can get fonts etc. to change but not the background color.


 
Reply With Quote
 
 
 
 
Gordon
Guest
Posts: n/a
 
      15th Nov 2006
Posted in another reply:

for black

body {
background: #000000;
}

HTH

Jim

On Wed, 15 Nov 2006 11:32:27 -0500, "Mark" <(E-Mail Removed)> wrote:

>this should be easy but it doesn't seem to be. I am trying to add a
>background color to a css page I have created.
>
>What exactly should I put in to get it to display. Do I go to the style
>area and create the name first and then past or type in the code? See below
>
>.bg { <body bgcolor="black"> }
>
>
>Whatever it is I am doing the .css page I am putting the color into does not
>recognize it. I can get fonts etc. to change but not the background color.
>

 
Reply With Quote
 
David Berry
Guest
Posts: n/a
 
      15th Nov 2006
It should be

body {background: #000000;}



"Mark" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> this should be easy but it doesn't seem to be. I am trying to add a
> background color to a css page I have created.
>
> What exactly should I put in to get it to display. Do I go to the style
> area and create the name first and then past or type in the code? See
> below
>
> .bg { <body bgcolor="black"> }
>
>
> Whatever it is I am doing the .css page I am putting the color into does
> not recognize it. I can get fonts etc. to change but not the background
> color.
>



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      15th Nov 2006
Actually, try -

body { background-color:#000; }

or

body { background-color:black; }

The background style is a complex aggregate of color, image, position,
repeat, etc., and may be a bit confusing.

--
Murray
--------------
MVP FrontPage


"David Berry" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> It should be
>
> body {background: #000000;}
>
>
>
> "Mark" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> this should be easy but it doesn't seem to be. I am trying to add a
>> background color to a css page I have created.
>>
>> What exactly should I put in to get it to display. Do I go to the style
>> area and create the name first and then past or type in the code? See
>> below
>>
>> .bg { <body bgcolor="black"> }
>>
>>
>> Whatever it is I am doing the .css page I am putting the color into does
>> not recognize it. I can get fonts etc. to change but not the background
>> color.
>>

>
>



 
Reply With Quote
 
David Berry
Guest
Posts: n/a
 
      15th Nov 2006
Thanks Murray! typing too fast - forgot the - color part


"Murray" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Actually, try -
>
> body { background-color:#000; }
>
> or
>
> body { background-color:black; }
>
> The background style is a complex aggregate of color, image, position,
> repeat, etc., and may be a bit confusing.
>
> --
> Murray
> --------------
> MVP FrontPage
>
>
> "David Berry" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> It should be
>>
>> body {background: #000000;}
>>
>>
>>
>> "Mark" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> this should be easy but it doesn't seem to be. I am trying to add a
>>> background color to a css page I have created.
>>>
>>> What exactly should I put in to get it to display. Do I go to the style
>>> area and create the name first and then past or type in the code? See
>>> below
>>>
>>> .bg { <body bgcolor="black"> }
>>>
>>>
>>> Whatever it is I am doing the .css page I am putting the color into does
>>> not recognize it. I can get fonts etc. to change but not the background
>>> color.
>>>

>>
>>

>
>



 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      22nd Nov 2006
why only #000 (three 0's instead of #000000?)

"David Berry" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Murray! typing too fast - forgot the - color part
>
>
> "Murray" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Actually, try -
>>
>> body { background-color:#000; }
>>
>> or
>>
>> body { background-color:black; }
>>
>> The background style is a complex aggregate of color, image, position,
>> repeat, etc., and may be a bit confusing.
>>
>> --
>> Murray
>> --------------
>> MVP FrontPage
>>
>>
>> "David Berry" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> It should be
>>>
>>> body {background: #000000;}
>>>
>>>
>>>
>>> "Mark" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> this should be easy but it doesn't seem to be. I am trying to add a
>>>> background color to a css page I have created.
>>>>
>>>> What exactly should I put in to get it to display. Do I go to the
>>>> style area and create the name first and then past or type in the code?
>>>> See below
>>>>
>>>> .bg { <body bgcolor="black"> }
>>>>
>>>>
>>>> Whatever it is I am doing the .css page I am putting the color into
>>>> does not recognize it. I can get fonts etc. to change but not the
>>>> background color.
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Windsun
Guest
Posts: n/a
 
      22nd Nov 2006
Shorthand code if pairs of numbers:

#FFF = #FFFFFF, #999 = #999999, #3F7 = #33FF77

Personally I never use it, I prefer to keep all colors consistent in coding.

-------------------------------------------------------------------------
"Andrew Murray" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> why only #000 (three 0's instead of #000000?)
>
> "David Berry" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks Murray! typing too fast - forgot the - color part
>>
>>
>> "Murray" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Actually, try -
>>>
>>> body { background-color:#000; }
>>>
>>> or
>>>
>>> body { background-color:black; }
>>>
>>> The background style is a complex aggregate of color, image, position,
>>> repeat, etc., and may be a bit confusing.
>>>
>>> --
>>> Murray
>>> --------------
>>> MVP FrontPage
>>>
>>>
>>> "David Berry" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> It should be
>>>>
>>>> body {background: #000000;}
>>>>
>>>>
>>>>
>>>> "Mark" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> this should be easy but it doesn't seem to be. I am trying to add a
>>>>> background color to a css page I have created.
>>>>>
>>>>> What exactly should I put in to get it to display. Do I go to the
>>>>> style area and create the name first and then past or type in the
>>>>> code? See below
>>>>>
>>>>> .bg { <body bgcolor="black"> }
>>>>>
>>>>>
>>>>> Whatever it is I am doing the .css page I am putting the color into
>>>>> does not recognize it. I can get fonts etc. to change but not the
>>>>> background color.
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
David Berry
Guest
Posts: n/a
 
      22nd Nov 2006
It should be 6.


"Andrew Murray" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> why only #000 (three 0's instead of #000000?)
>
> "David Berry" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks Murray! typing too fast - forgot the - color part
>>
>>
>> "Murray" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Actually, try -
>>>
>>> body { background-color:#000; }
>>>
>>> or
>>>
>>> body { background-color:black; }
>>>
>>> The background style is a complex aggregate of color, image, position,
>>> repeat, etc., and may be a bit confusing.
>>>
>>> --
>>> Murray
>>> --------------
>>> MVP FrontPage
>>>
>>>
>>> "David Berry" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> It should be
>>>>
>>>> body {background: #000000;}
>>>>
>>>>
>>>>
>>>> "Mark" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> this should be easy but it doesn't seem to be. I am trying to add a
>>>>> background color to a css page I have created.
>>>>>
>>>>> What exactly should I put in to get it to display. Do I go to the
>>>>> style area and create the name first and then past or type in the
>>>>> code? See below
>>>>>
>>>>> .bg { <body bgcolor="black"> }
>>>>>
>>>>>
>>>>> Whatever it is I am doing the .css page I am putting the color into
>>>>> does not recognize it. I can get fonts etc. to change but not the
>>>>> background color.
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
David Berry
Guest
Posts: n/a
 
      22nd Nov 2006
Interesting. I never knew that. I always use all 6


"Windsun" <wind-(E-Mail Removed)> wrote in message
news:zAW8h.1970$(E-Mail Removed)...
> Shorthand code if pairs of numbers:
>
> #FFF = #FFFFFF, #999 = #999999, #3F7 = #33FF77
>
> Personally I never use it, I prefer to keep all colors consistent in
> coding.
>
> -------------------------------------------------------------------------
> "Andrew Murray" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> why only #000 (three 0's instead of #000000?)
>>
>> "David Berry" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Thanks Murray! typing too fast - forgot the - color part
>>>
>>>
>>> "Murray" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Actually, try -
>>>>
>>>> body { background-color:#000; }
>>>>
>>>> or
>>>>
>>>> body { background-color:black; }
>>>>
>>>> The background style is a complex aggregate of color, image, position,
>>>> repeat, etc., and may be a bit confusing.
>>>>
>>>> --
>>>> Murray
>>>> --------------
>>>> MVP FrontPage
>>>>
>>>>
>>>> "David Berry" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> It should be
>>>>>
>>>>> body {background: #000000;}
>>>>>
>>>>>
>>>>>
>>>>> "Mark" <(E-Mail Removed)> wrote in message
>>>>> news:(E-Mail Removed)...
>>>>>> this should be easy but it doesn't seem to be. I am trying to add a
>>>>>> background color to a css page I have created.
>>>>>>
>>>>>> What exactly should I put in to get it to display. Do I go to the
>>>>>> style area and create the name first and then past or type in the
>>>>>> code? See below
>>>>>>
>>>>>> .bg { <body bgcolor="black"> }
>>>>>>
>>>>>>
>>>>>> Whatever it is I am doing the .css page I am putting the color into
>>>>>> does not recognize it. I can get fonts etc. to change but not the
>>>>>> background color.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom color for font color and or background shading color Ben Microsoft Excel Programming 2 5th May 2010 02:32 PM
Checkbox to change background color, font color and remove/ add bo Sara Microsoft Excel Misc 1 11th Nov 2008 08:17 PM
Cell background color (interior color) setting not working Martin E. Microsoft Excel Programming 1 21st May 2006 07:00 PM
Default Border, Font Color, and Cell Background Color Elijah Microsoft Excel Misc 1 28th Oct 2005 04:10 PM
The BACKGROUND COLOR OF THE COMMAND BUTTON FACES RESET TO THE DEFAULT COLOR Alva Dean Microsoft Excel Programming 2 8th Mar 2004 08:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:50 AM.