473,387 Members | 1,779 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,387 software developers and data experts.

Frames emulation

Hi all
I've seen a lot of posts about frames emulation.
I would like to emulate a: header, left-side menu, content, footer layout.

I need to be cross browser compatible...but I'm get crazy!!!
My code is above: it displays right on Firefox 1.0 but it doesn't on IE6.
What should I change?!

thanx
--
ShadowMan

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Cb_start_korr1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--

html, body {
margin: 0; padding: 0; border:none;
overflow: hidden;
}

#FrameTop {
position: absolute;
top: 0;
left: 0;
background: Green;
width: 100%;
height: 100px;
/*bottom: 80%;*/
right: 0;
}

#FrameLeft {
position: absolute;
top: 100px;
left: 0;
width: 20%;
/*height: 100%;*/
/*bottom: 80;*/
bottom: 50px;
right: 80%;
background: Maroon;
}

#FrameContent {
position: absolute;
top: 100px;
left: 20%;
width: 80%;
bottom: 0;
right: 0;
overflow: auto;
background: #F2F2F2;
}

#FrameBottom {
position: absolute;
bottom: 0;
left: 0;
background: Green;
width: 20%;
height: 50px;
/*bottom: 80%;*/
right: 80%;
}

-->
</style>
<!-- End Styles -->
</head>
<body>
<!-- Divs simulieren Frames -->
<div id="FrameTop">Top Frame</div>
<div>
<div id="FrameLeft">
Left Frame<BR>assasa
</div>
<div id="FrameContent">Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut laoreet congue nihil
imperdiet doming id quod mazim placerat facer possim assum.
[more text]
</div>
</div>
<div id="FrameBottom">Bottom frame</div>
</body>
</html>
Jul 21 '05 #1
3 4331
On Wed, 17 Nov 2004 17:03:13 +0100, ShadowMan <sh*****@despammed.com>
wrote:
Hi all
I've seen a lot of posts about frames emulation.
I would like to emulate a: header, left-side menu, content, footer
layout.

I need to be cross browser compatible...but I'm get crazy!!!
My code is above: it displays right on Firefox 1.0 but it doesn't on IE6.
What should I change?!

thanx


I'm not going to tweek code in a post. Why not put a page on line so we
can all see what is happening?

Know what, tweak it yourself with this input. I've various pages on line
that emulate frames. Text is in Dutch, but markup and style should be
clear enough:

-
<http://home.wanadoo.nl/b.de.zoete/voorbeelden/voorbeeld_fixeren-kop.html>
with header, left sidebar and footer fixed;
-
<http://home.wanadoo.nl/b.de.zoete/voorbeelden/voorbeeld_verticaal-centreren-content.html>
with all but centered content fixed in the viewport of the browser.

Important thing: normal position:fixed does not work in IE. You have to
hack your way around that by keeping your page in quirksmode and add a
small stylesheet for IE, giving all position:fixed a value :absolute.

--
Webontwerp <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
Zweefvliegen <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>
Blog <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html>
DTD <http://home.wanadoo.nl/b.de.zoete/dtd/not_so_strict.dtd>
Jul 21 '05 #2
Hi,
My code is above: it displays right on Firefox 1.0 but it doesn't on IE6.
What should I change?!

Use dean.edwards.name/ie7 and position:fixed.
It's a bit of JS, but only for IE-Users who have usually turned JS on.
For any other user the JS-Code is ignored.

Chris
Jul 21 '05 #3
"Barbara de Zoete" <b_********@hotmail.com> ha scritto nel messaggio
news:opshmfv8nhx5vgts@dunnet-q4wppud9
On Wed, 17 Nov 2004 17:03:13 +0100, ShadowMan <sh*****@despammed.com>
wrote:
I'm not going to tweek code in a post. Why not put a page on line so
we can all see what is happening?

Here it is:
http://jugbari.altervista.org/cssframes.htm
--
ShadowMan
Jul 21 '05 #4

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

Similar topics

16
by: Chris | last post by:
Is there any way to make the class Z behave the same way as class Y? Chris class Y: value = 42 def __hasattr__(self, name): if name == '__int__': return True def __getattr__(self, name):
3
by: Gilles Cadorel | last post by:
I'd like to add in a HTML page a button, that open a Unix Emulation on a new Windows, when I clik on it. I'm using WRQ Reflection to connect to Unix hosts. The problem is that I don't want the...
12
by: tomasio | last post by:
Dear Group, I managed to simulate framelike behaviour in mozilla-based browsers by now, but it doesn't work out with Internet Explorer 6. Could someone glance through the code on the...
5
by: grakat | last post by:
The "frames are evil" mantra is often heard - I've said it myself -, but can someone tell me how a framed site works in an aural browser or for that matter, any browser other than the normal GUI...
7
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...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
25
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...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...

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.