473,503 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Emulating frames

Hi there,

Since you've all told me that frames ar evil, I'm planning to disguard
frames in favour of CSS "pseudo-frames" for my personal website.

While trying to "emulate frames" (that is I want a 2 column layout,
with the menu in the left column) I came up with this:

http://home-1.tiscali.nl/~knmg0017/css_frames_1.htm

I had some trouble getting the heigth of the "div#content" to be at
least the height of the viewport, so I used the

html, body{
height: 100%;
}

div#content{
height: 100%; /* IE: height = viewport */
...

and

body>div#content{
/* Non IE: height = viewport */
min-height: 100%;
...

This seems to work in both IE and FF (click on "drie" in the menu to
see what I mean)

My question is:

- Is this a sound approach ?
(The CSS will be in an external file in the future of course ..)
- I saw lots of different examples using all kinds of "tricks" with
the overflow property of the div#content, do I need tha in this
approach ?
- Can anyone report me how this looks in any other browser (Opera,
Safari etc.), I don't have them to test it.

Thanks in advance.

Bart

--
Bart Broersma
br*********************@tiscali.nl
(ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)
Jul 21 '05 #1
2 2587
On Wed, 26 Jan 2005 21:29:19 +0100, Bart <br*********************@tiscali.nl>
wrote:
Since you've all told me that frames ar evil, I'm planning to disguard
frames in favour of CSS "pseudo-frames" for my personal website.

What function of frames are you most interested in? Is it the fixing of parts in
the viewport of browsers ('I want the menu to alway be visible')? Is it not to
have to repeat elements (like the menu) in every page?
Which features? And why?
While trying to "emulate frames" (that is I want a 2 column layout,
with the menu in the left column) I came up with this:

http://home-1.tiscali.nl/~knmg0017/css_frames_1.htm

In Opera behaves as a simple two column layout. I see nothing special happening
at all.

- Is this a sound approach ?
(The CSS will be in an external file in the future of course ..)
For what? The page doesn't behave as a frames page in that it doesn't fix
anything in the viewport and I don't notice anyting special happening to the
content when clicking on a menu item, either.

Or do you mean the two column layout? There are many way to solve the problem of
the length of the columns. Google for them:
<http://www.google.nl/search?q=two+column+layout> or read back about a week or
so in this newsgroup, as it gets asked a lot. You're bound to stumble upon the
answer.
- I saw lots of different examples using all kinds of "tricks" with
the overflow property of the div#content, do I need tha in this
approach ?
Depends. If you really mean to emulate frames, like I do in several of my
example pages (see
<http://home.wanadoo.nl/b.de.zoete/voorbeelden/voorbeeld_kop-fixeren.html> or
<http://home.wanadoo.nl/b.de.zoete/voorbeelden/voorbeeld_menu-met-hovereffect.html>),
you will have to do something with the overflow, otherwise how are you going to
deal with a page of which the content runs till below the fold?
- Can anyone report me how this looks in any other browser (Opera,
Safari etc.), I don't have them to test it.


Like I said, in Opera I see nothing happening that comes close to emulating
frames. Just a plain two column layout.
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Jul 21 '05 #2
Op Wed, 26 Jan 2005 21:43:15 +0100 schreef "Barbara de Zoete"
<b_********@hotmail.com>:
What function of frames are you most interested in? Is it the fixing of parts in
the viewport of browsers ('I want the menu to alway be visible')? Is it not to
have to repeat elements (like the menu) in every page?
Which features? And why?
I think I used the wrong terms to explain my intention.
What I want is a 2 column layout. The menu left, the content to the
right. The width of the colums depending on the users current
fontsize.

In Opera behaves as a simple two column layout. I see nothing special happening
at all.
Well I'm not looking for anything special ...
If it looks like 2 colums, I'm satisfied for the moment.
For what? The page doesn't behave as a frames page in that it doesn't fix
anything in the viewport and I don't notice anyting special happening to the
content when clicking on a menu item, either.
Fixing the menu in the viewport might be nice. I used position: fixed
on the menu, wich looks nice in FF, but IE doesn't support this (I
think).

[snip]
Depends. If you really mean to emulate frames, like I do in several of my
example pages (see
<http://home.wanadoo.nl/b.de.zoete/voorbeelden/voorbeeld_kop-fixeren.html> or
<http://home.wanadoo.nl/b.de.zoete/voorbeelden/voorbeeld_menu-met-hovereffect.html>),
you will have to do something with the overflow, otherwise how are you going to
deal with a page of which the content runs till below the fold?
For the moment, I think this (emulating frames behaviour like you
explain it) is too complex for me, so I'll let it rest. Maybe I'll
give that a try later on.
- Can anyone report me how this looks in any other browser (Opera,
Safari etc.), I don't have them to test it.


Like I said, in Opera I see nothing happening that comes close to emulating
frames. Just a plain two column layout.


Ok.

Thanks for yout input !

Bart
--
Bart Broersma
br*********************@tiscali.nl
(ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)
Jul 21 '05 #3

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

Similar topics

0
1249
by: Kamilche | last post by:
""" Emulating Python inheritance manually. By loading it from disk at run time, you can create new custom types without programmer intervention, and reload them on demand, without breaking...
28
5530
by: Anthony Williams | last post by:
Good morning, I'm currently designing a site, using CSS, and wish to create a variable width two-column layout, with header and footer, and one fixed-width column on the left. Previously, I...
10
3701
by: Cezar | last post by:
Hello. How can simple emulating in IE this class ? ..example:hover{ border: 1px solid #696969; } Greets, Cezar.
0
1012
by: steve | last post by:
As my other post shows, every once in a while I get MYI corruption (anyone can help with the other post?). Now, how do I emulate MYI corruption on the dev machine. Can I somehow force MYI to...
7
2295
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
25
43186
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
2234
by: Stephan Schaem | last post by:
How does one write an unmanaged function that perform this functionality? In short I want to turn off/on visual style in my app... Thanks, Stephan PS: two people have been looking for...
0
871
by: Peter Lin | last post by:
hey people, I don't know about you guys but I find the .net version of printdocument for printing is a little bit tiresome with much more control than I want. So I have been attempting to write...
7
1350
by: Ray | last post by:
Hello, What do you think about emulating private variables for a class this way? function Something() { var private; Something.prototype.getPrivate = function() { return private; }...
0
7282
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,...
1
6995
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...
0
7463
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...
0
5581
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,...
0
4678
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...
0
3168
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...
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
389
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...

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.