473,890 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3823
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*********@ho tmail.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...@ho tmail.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*********@ho tmail.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">co ntent</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*********@ho tmail.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">co ntent</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*********@ho tmail.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
2702
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. Is there some way to specify a transparent background on a frame? Then I could overlay a (tranparent) canvas window over the photoimage on the basic canvas but leave a frame widget (in the window) for position, placement, etc.
3
4628
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 of work in some situations. I'm quite prepared to implement a number of solutions simultaneously and browser-distinguish to select the right one, but it's hard even to find the criteria that decide what works in which browser. I'd be grateful...
2
2666
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 background, the pages at 'www.externalsite.com' have a white background. Can I change the background of 'www.externalsite.com' to mach the background of the inline frame page upon loading?
1
3072
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 wait while a reservation is being placed. During that time that the process is running on the server, they frequently show some sort of graphic that implies "don't touch anything - we're working." The problem: If I post a page with the graphic,...
3
3253
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 question: www.sayatnova.com (I'm sure many of you have seen this before as I've often asked for help). I've come a long way since I first created the site many moons ago and I'm trying to convert it to a (1) Table-less, (2) Frame-less and (3) Validated...
1
2450
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 to go to another page, I want it so that when the user puts their mouse over the black and white image, the image will swap to the same image in color AND the background of the frame will change to a specific color. I am using Front Page 2003 on XP....
1
3916
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 it gets tricky: In the middle area which is not touched by the border should be an image that I have created that is excessively
2
5837
by: Hans Mull | last post by:
Hi! How can I change the background color of a wxWidgets frame? Thanks
0
2054
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 text, how to do it? wx.FULL_REPAINT_ON_RESIZE style on MDI parent frame would help a little, but I would also need to call self.Layout() (and I still can erase the text moving child frame over the text...) #!/usr/bin/env python # -*- coding:...
0
9812
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10799
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10446
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6032
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4255
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3263
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.