473,327 Members | 2,016 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,327 software developers and data experts.

background color of a frame

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 the first
frame, another page is loaded in the second frame. I know it is not a
nice solution, but given this situation, is it possible to set the
background color of the second frame, so that in between loading the
pages with a dark background color, you don't get the white background,
until the page starts loading?

May 26 '06 #1
8 3778
Veerle wrote:
Suppose having a frameset


Stop there. Frames are usually harmful, and solve problems usually better
solved with other technologies.

http://allmyfaqs.net/faq.pl?Problems_with_using_frames

(and switching away from frames should solve your problem)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
May 26 '06 #2
To further the education of mankind, "Veerle" <ve*********@hotmail.com>
vouchsafed:
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 the first
frame, another page is loaded in the second frame. I know it is not a
nice solution, but given this situation, is it possible to set the
background color of the second frame, so that in between loading the
pages with a dark background color, you don't get the white background,
until the page starts loading?


In addition to what David said, it's not possible to get rid of that white
interchange background, anyway.

--
Neredbojias
Infinity has its limits.
May 26 '06 #3
> To further the education of mankind, "Veerle" <veerleve...@hotmail.com>
vouchsafed:
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 the first
frame, another page is loaded in the second frame. I know it is not a
nice solution, but given this situation, is it possible to set the
background color of the second frame, so that in between loading the
pages with a dark background color, you don't get the white background,
until the page starts loading?


In addition to what David said, it's not possible to get rid of that white
interchange background, anyway.

--
Neredbojias
Infinity has its limits.


Ok, I'll get rid of the frames. I did some research on the div-tag and
how to use with it (and css) to achive what I want. Actually there are
three solutions:

(1) I could have used a table construction for layout. Easy, but this
is a very dirty solution, so I didn't want to use it. W3C clearly says
it is not done (in its WAI guidelines).
(2) So, since the frameset exists and seems to be valid html (also by
W3C), I thought I'd use that. Don't know what WAI says about it, but
probably, they will not encourage it as well.
(3) I create a div element for each frame in my frameset and use CSS to
make every page and click behave like it did before with the frameset.
And it looks great.

I should probably be less lazy next time, because eventually, I had to
do everything twice...

May 29 '06 #4
To further the education of mankind, "Veerle" <ve*********@hotmail.com>
vouchsafed:
In addition to what David said, it's not possible to get rid of that
white interchange background, anyway.
Ok, I'll get rid of the frames. I did some research on the div-tag and
how to use with it (and css) to achive what I want. Actually there are
three solutions:

(1) I could have used a table construction for layout. Easy, but this
is a very dirty solution, so I didn't want to use it. W3C clearly says
it is not done (in its WAI guidelines).
(2) So, since the frameset exists and seems to be valid html (also by
W3C), I thought I'd use that. Don't know what WAI says about it, but
probably, they will not encourage it as well.
(3) I create a div element for each frame in my frameset and use CSS
to make every page and click behave like it did before with the
frameset. And it looks great.


3 seems to be the best choice.
I should probably be less lazy next time, because eventually, I had to
do everything twice...


Hehe, I think my pages are pretty good, but how many times do you think I
did (/do) them? Nobody knows 'it' well in the beginning.

--
Neredbojias
Infinity has its limits.
May 29 '06 #5
> Hehe, I think my pages are pretty good, but how many times do you think I
did (/do) them?


I would like to see them. Can you give me your url?

May 30 '06 #6
> (3) I create a div element for each frame in my frameset and use CSS to
make every page and click behave like it did before with the frameset.
And it looks great.


I created 2 div-blocks, gave them a width (35% and 65%) and set them to
float left. Looks great, but I still want it different. I want my div
blocks next to each other, but the first one to have a fixed width
(270px) and the second one to use all the remaing space. Seems like a
very common thing to do, but I can't get it right...

I tried doing it like below, but both internet explorer en firefox take
the 100% width litteraly and make the "content" block the same width as
the browser, and move it to the next line to be able to do that. What
do I have to set for width for the "content" block so that it uses all
the remaing space on the right?

html:
<body>
<div id="menu">menu</div>
<div id="content">content</div>
</body>

css:
html {
height: 100%;
}
body {
height: 100%;
margin: 0px;
padding: 0px;
}
#menu {
background-color: #FF0000;
width: 270px;
height: 100%;
float: left;
}
#content {
background-color: #00FF00;
width: 100%;
height: 100%;
float: left;
}

May 30 '06 #7
To further the education of mankind, "Veerle" <ve*********@hotmail.com>
vouchsafed:
(3) I create a div element for each frame in my frameset and use CSS
to make every page and click behave like it did before with the
frameset. And it looks great.
I created 2 div-blocks, gave them a width (35% and 65%) and set them
to float left. Looks great, but I still want it different. I want my
div blocks next to each other, but the first one to have a fixed width
(270px) and the second one to use all the remaing space. Seems like a
very common thing to do, but I can't get it right...

I tried doing it like below, but both internet explorer en firefox
take the 100% width litteraly and make the "content" block the same
width as the browser, and move it to the next line to be able to do
that. What do I have to set for width for the "content" block so that
it uses all the remaing space on the right?


You should probably search the "Googlives" for 2-column layout. One
prob with this example is that 100% + 270px != 100%. Leaving the 100%
off is a step in the right direction, but I'm prett' sure more is
needed.

html:
<body>
<div id="menu">menu</div>
<div id="content">content</div>
</body>

css:
html {
height: 100%;
}
body {
height: 100%;
margin: 0px;
padding: 0px;
}
#menu {
background-color: #FF0000;
width: 270px;
height: 100%;
float: left;
}
#content {
background-color: #00FF00;
width: 100%;
height: 100%;
float: left;
}


--
Neredbojias
Infinity has its limits.
May 30 '06 #8
To further the education of mankind, "Veerle" <ve*********@hotmail.com>
vouchsafed:
Hehe, I think my pages are pretty good, but how many times do you
think I did (/do) them?


I would like to see them. Can you give me your url?


Mais oui! :)

One good example is:

http://www.neredbojias.com/beta/mars.html#p1

I don't use a lot of columns on my site, but the index page (source) can be
informative:

http://www.neredbojias.com/

If you browse around, you'll find little bits of "esoteria" here and there,
too.

--
Neredbojias
Infinity has its limits.
May 30 '06 #9

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

Similar topics

2
by: Howard Lightstone | last post by:
Is there any way to display a photoimage background in a toplevel/frame? I tried replacing my topmost widget with a canvas but the ripple effects on placement and other widgets got too high. ...
3
by: Gil | last post by:
I'm trying to write a page that allows me to change the background midi that's playing. I've been going crazy consulting Google Groups, and coming up with ingenious solutions, some of which kind...
2
by: Martin | last post by:
Dear Experts! I'd be grateful if you can help me with this. I'm having an inline frame which points to 'www.externalsite.com'. The page which contains the inline frame has an orange...
1
by: Mark | last post by:
ASP.NET: Any suggestions on how to display an animated .gif file on a web page while a stored procedure is running in the background? For example, on some of the airline sites, it asks you to...
3
by: Viken Karaguesian | last post by:
Hello all, I need somehelp with background tiling. I have a sneaking suspicion that what I want to do is not possible, but I'll ask anyway. :>) First some background: Here's the site in...
1
by: seaberry | last post by:
I am trying to design a page that is a frames page - horizontally split through the middle. The bottom frame contains the images that will link to completely new page. But before clicking on image...
1
by: alokw | last post by:
Hi everyone, Here's my problem. I'd like to revamp my web site, and I have this idea. I want to create essentially a border around the screen of about 100 pixels of just black. Heres where...
2
by: Hans Mull | last post by:
Hi! How can I change the background color of a wxWidgets frame? Thanks
0
by: dazzler | last post by:
How do I add "background text" into MDI parent frame, the text will be now erased if I move the MDI Parent frame, or I can also erase text with moving MDI Child frame, need to somehow refresh the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.