473,804 Members | 2,034 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 3819
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
2701
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
4626
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
2660
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
3070
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
3245
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
2448
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
3914
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
5830
by: Hans Mull | last post by:
Hi! How can I change the background color of a wxWidgets frame? Thanks
0
2053
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
9711
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9591
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
10343
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...
0
10087
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...
1
7631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
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.