473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Changing background color of a frameset

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.

Jul 24 '05 #1
6 56568
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
Jul 24 '05 #2
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.

"David Dorward" <do*****@yahoo.com> wrote in message
news:d8******************@news.demon.co.uk...
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

Jul 24 '05 #3
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
Jul 24 '05 #4
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.
"David Dorward" <do*****@yahoo.com> wrote in message
news:d8*******************@news.demon.co.uk...
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

Jul 24 '05 #5
On Fri, 17 Jun 2005 16:29:16 -0400, "Nancy Carter"
<nc*****@spamfree.com> wrote:
If it's non-standard but still viable, then how do I make it work?


Just make up some random attributes and use them.
Or sacrifice a chicken to it. Do whatever you want - if you aren't
interested in doing it right, then your new random rubbish is as good as
old legacy random rubbish.

Jul 24 '05 #6


Nancy Carter wrote:
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.

How is seeing a neutral color prior to the page loading disconcerting,
considering that this is normal behavior for web browsers?

I think you may be using 'disconcerting' to mean 'offends my personal
sense of aesthetics' or 'fails to fill my obsessive need to control
every aspect of the user's brower's presentation of my page'. Have any
*users* of the page reported that they find the momentary appearance of
a white or grey field 'disconcerting'? Or do they recognize it for a
normal step in the loading of a webpage, which is what I would expect
from any user who had used a web browser regularly.

A problem that causes no one any problems, is no problem at all.

Andrew

Jul 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JP | last post by:
Hi, How can I create a dynamic frameset whose content changes based on user inputs? Specifically, how do I toggle a frame within a frameset? How can I allow a user to "close" or "dock" a...
1
by: Andy Levy | last post by:
Hi ya Do you know if its possible to change frameset details for the current frameset by javascript inside one of the frames. Thanks AL
0
by: gogram | last post by:
Hi, I am looking to change a frames based webite (3 rows no columns)(top - Nav, middle - Content, bottom - information) to be a tables based site possibly using css. I hav got the frame setting...
24
by: Charles Crume | last post by:
Hello; My "index.htm" page has 3 frames (content, navigation bar, and logo). I set the "SRC" of the "logo" frame to a blank gif image and then want to change it's contents after the other two...
1
by: Julius Mong | last post by:
Dear all, I have the following: <html> <head> .... </head> <frameset ...> <frame .../> <frameset name="page" rows="60,*" ...> <frame src='top.html' .../>
1
by: P.Singh | last post by:
hi all i am designing a website for a charity origanisation. they cater towards the senior crowd. i would like to have choice by which the user can change the background as required (like...
12
by: GaryDean | last post by:
In the original post I failed so indicate that I am using framework 1.1....... I need to be able to change the background color of a page from code. I found an answer to this question in...
8
by: Veerle | last post by:
Suppose having a frameset consisting of two frames, both with dark background colors. One of the frames is a sort of menu and the other one contains the content. When someone clicks a menu item in...
2
by: ponie | last post by:
i have to make a website about me for school and i cant get the frameset background right: <html> <head> </head> <frameset="10%,*" bgcolor="000000"> <base target = "main" /> <a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.