Click here to get back home

Changing background color of a frameset

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Changing background color of a frameset Nancy Carter 06-17-2005
Posted by Nancy Carter on June 17, 2005, 2:16 pm
Please log in for more thread options


I'm trying to set the background color of a frameset to black. The
following code doesn't work in either IE 6.0 or Firefox. Any ideas why?

<frameset bgcolor="#000000" frameborder="0" border="0" cols="240,*">

<frame name="links" scrolling="no" noresize target="contents" src="">

<frameset bgcolor="#000000" frameborder="0" border="0" rows="135,*">

<frame name="topbanner" scrolling="no" src="">

<frame name="main" scrolling="auto" src="">

</frameset>

I know some people don't like framesets, but I need them for this particular
page. Thanks for any ideas on why.




Posted by David Dorward on June 17, 2005, 8:05 pm
Please log in for more thread options


Nancy Carter wrote:

> I'm trying to set the background color of a frameset to black. The
> following code doesn't work in either IE 6.0 or Firefox. Any ideas why?
>
> <frameset bgcolor="#000000" frameborder="0" border="0" cols="240,*">

Well:

(a) Your markup is invalid
http://www.w3.org/TR/html4/present/frames.html#h-16.2.1

and:
(b) Frames don't have background colours, they contain documents, elements
of which may have background colours.

> I know some people don't like framesets, but I need them for this
> particular page.

Given that one of your frames is named "topbanner", that seems rather
unlikely (at least from the point of view of the end user).

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Posted by Nancy Carter on June 17, 2005, 4:23 pm
Please log in for more thread options


I have seen the bgcolor attribute used with framesets, as I did; perhaps
this is legacy now. The reason I need the frameset to have its own
background color is because the background color of the pages is set to
black. That means the user sees a disconcerting field of gray (in IE) or
white (in Firefox) before the other pages load. If I can set the background
color of the frameset to black, then the user sees a field of black, rather
than the disconcerting gray or white background.

Any other ideas would be most appreciated.



> Nancy Carter wrote:
>
>> I'm trying to set the background color of a frameset to black. The
>> following code doesn't work in either IE 6.0 or Firefox. Any ideas why?
>>
>> <frameset bgcolor="#000000" frameborder="0" border="0" cols="240,*">
>
> Well:
>
> (a) Your markup is invalid
> http://www.w3.org/TR/html4/present/frames.html#h-16.2.1
>
> and:
> (b) Frames don't have background colours, they contain documents, elements
> of which may have background colours.
>
>> I know some people don't like framesets, but I need them for this
>> particular page.
>
> Given that one of your frames is named "topbanner", that seems rather
> unlikely (at least from the point of view of the end user).
>
> --
> David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
> Home is where the ~/.bashrc is



Posted by David Dorward on June 17, 2005, 10:08 pm
Please log in for more thread options


Nancy Carter wrote:

Please don't top post.
http://www.faqs.org/rfcs/rfc1855.html
http://www.allmyfaqs.com/faq.pl?How_to_post

> I have seen the bgcolor attribute used with framesets, as I did; perhaps
> this is legacy now.

No, just non-standard rubbish.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Posted by Nancy Carter on June 17, 2005, 5:29 pm
Please log in for more thread options


If it's non-standard but still viable, then how do I make it work? My
problem is that I've inherited a very large, very old website with a lot of
framesets, and we don't have the resources right now to replace all of them,
so I'm trying to make do with what I've inherited. If I can set the frame
background to black, then it will help while we transition all the pages to
CSS.

Thanks again for any help.


> Nancy Carter wrote:
>
> Please don't top post.
> http://www.faqs.org/rfcs/rfc1855.html
> http://www.allmyfaqs.com/faq.pl?How_to_post
>
>> I have seen the bgcolor attribute used with framesets, as I did; perhaps
>> this is legacy now.
>
> No, just non-standard rubbish.
>
> --
> David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
> Home is where the ~/.bashrc is



Similar ThreadsPosted
IE bug/issue with changing the frameset properties through DHTML April 28, 2008, 10:17 am
Need help changing anchor text color in this style declaration April 19, 2006, 11:28 am
Cannot set background color (XML+CSS) July 6, 2005, 12:16 am
cell background color February 15, 2005, 1:23 pm
background color of a frame May 26, 2006, 12:03 pm
background-color: #777777 not working in CSS August 3, 2004, 4:20 pm
Cannot print table background color May 30, 2005, 4:27 am
how can i change all disabled inputs background color ? February 28, 2006, 10:58 pm
Google tool bar changes text input background color November 14, 2007, 2:50 pm
URGENT: Making rows with background color seemless June 5, 2008, 10:10 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap