473,756 Members | 8,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Layout: Full-screen table w/ scrollable content? Cross-browser problems...

This is a typical layout, but I have specific requirements. I'm trying to
figure out a) if it's possible to meet the requirements and b) if so, how.

+---------------+
| header |
+---------------+
| body |
| (scrollable) |
+---------------+
| footer |
+---------------+

I want a static header, static footer, and scrollable content inbetween.
Requirements:
* Content must be scrollable in IE6/Win. That is, a valid solution
_must_ include static header/footer and scrollable content for IE6.
* For any other browsers, the content should either be scrollable as
with IE6, or the entire table should expand and the whole page should be
scrollable (including back to NN4). Either way, whatever works.
* Must not cause any display problems in IE5.5/Mac

If IE6 support wasn't required, I could use overflow:auto on a tbody or even
on the content td itself. Most solutions I come up with work in almost all
browsers, but fail in one or two. Specifically, this version fails in NN6:
http://www.mattkruse.com/temp/scroll_content.html

Can anyone suggest a technique which will meet all the requirements? Or say
that it is absolutely not possible to meet all the requirements?

(Using pure CSS layout doesn't degrade nicely enough to look correctly in
older browsers... unless some of you who know more about css can do it that
way, then feel free to show me ;)

Thanks

--
Matt Kruse
Javascript Toolbox: http://www.JavascriptToolbox.com/
Jul 20 '05 #1
7 11652
Matt Kruse wrote:
I want a static header, static footer, and scrollable content
inbetween. Requirements:
* Content must be scrollable in IE6/Win. That is, a valid solution
_must_ include static header/footer and scrollable content for IE6.
That's almost a non-starter. IE/Win does not support position: fixed.
You can work around it, but the kludge is ugly.

More importantly, this is not usually desirable in a context where you
don't know the display resolutions. To remove space at the top *and*
bottom of the viewport can leave very little space for scrollable
content. The obvious answer is to "stop wanting that." Why is this
particular presentation required?
* For any other browsers, the content should either be scrollable
as with IE6, or the entire table should expand and the whole page
should be scrollable (including back to NN4). Either way, whatever
works.
NN4's css support is very broken. But it is a capable HTML browser in
many circumstances. If you have no unusual demands (e.g., non-western
character repertoire), then be nice and hide that which it cannot
handle, i.e., css. Plain HTML may be a bit ugly, but it does "work"
and will be scrollable as necessary.
* Must not cause any display problems in IE5.5/Mac
IE/Mac was quite good for its time, but it's been overshadowed by
newcomers like Safari. It has its own problems with fixed positioning.
Fortunately, it is trivial to hide only those rules it cannot handle
via @media rules.
If IE6 support wasn't required, I could use overflow:auto on a
tbody or even on the content td itself.
This is only for <table>? Or are you using <table> for layout?
Most solutions I come up with work in almost all browsers, but fail
in one or two. Specifically, this version fails in NN6:
NN6 was quite impressive, but, in retrospect, it was released too
soon. There were some bugs that should have been released. What
problems are you having?
http://www.mattkruse.com/temp/scroll_content.html

Can anyone suggest a technique which will meet all the
requirements? Or say that it is absolutely not possible to meet all
the requirements?


It is probably not possible to meet your requirements. You need to let
go a little, and be willing to accept that browsers have different
abilities, and thus will render your documents differently.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
Brian wrote:
* Content must be scrollable in IE6/Win. That is, a valid solution
_must_ include static header/footer and scrollable content for IE6. That's almost a non-starter. IE/Win does not support position: fixed.
You can work around it, but the kludge is ugly.


My example URL works fine in IE6, though.
I'm using tables for layout, not pure CSS (because I couldn't find a pure
css solution which met the requirements)
More importantly, this is not usually desirable in a context where you
don't know the display resolutions. To remove space at the top *and*
bottom of the viewport can leave very little space for scrollable
content. The obvious answer is to "stop wanting that." Why is this
particular presentation required?
Since the top and bottom will be relatively small in size, it won't be much
of an issue. And in the context where this will be used, it won't be an
issue anyway. Just trust me on that one. ;)
This is only for <table>? Or are you using <table> for layout?
I'm using one big table for the layout, because I couldn't come close to
meeting the requirements with pure css.
NN6 was quite impressive, but, in retrospect, it was released too
soon. There were some bugs that should have been released. What
problems are you having?
http://www.mattkruse.com/temp/scroll_content.html

The example URL, in NN6, doesn't display the content at all.
I hate NN6. It's horrible. All NN6 users should have their computers die!
It is probably not possible to meet your requirements.
That might be true, but I'll wait to see what others might say... Since my
example solution only fails in NN6 (of the browsers I've tested) it seems
like it's awfully close.
You need to let go a little, and be willing to accept that browsers have different abilities, and thus will render your documents differently.


I've been working with HTML for over 10 years, so I'm quite familiar with
the general concepts of web design :)

I just get frustrated with CSS sometimes... so good in theory, but in
practice in often presents many compatability issues!

--
Matt Kruse
Javascript Toolbox: http://www.JavascriptToolbox.com/
Jul 20 '05 #3
Matt Kruse wrote:
Brian wrote:
* Content must be scrollable in IE6/Win. That is, a valid
solution _must_ include static header/footer and scrollable
content for IE6.
That's almost a non-starter. IE/Win does not support position:
fixed. You can work around it, but the kludge is ugly.

My example URL works fine in IE6, though.


It does not work in Firefox 0.8/WinXP. There's no fixed section of page.
I'm using tables for layout
Which is more important, your content, or its presentation?
not pure CSS (because I couldn't find a pure css solution which met
the requirements)
The point is, why do those requirements exist?
http://www.mattkruse.com/temp/scroll_content.html


Have a look here: http://validator.w3.org/

You have no doc type declared, and your server does not send a charset
header.
The example URL, in NN6, doesn't display the content at all. I hate
NN6. It's horrible. All NN6 users should have their computers die!


On balance, it's better than any version of IE/Win. For one thing, it
respects the http protocol; for another, it does not screw up caching.
(See ciwa.site-design for a new thread on IE/Win and caching.)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4
Brian wrote:
My example URL works fine in IE6, though. It does not work in Firefox 0.8/WinXP. There's no fixed section of
page.


It works fine for me in that it displays the entire content as one big
table, with the entire body scrollable. Which meets the requirements.
Since 94% of the users will be using IE6 on Windows, having Firefox users
(if there are any) see the whole body as scrollable is no problem at all.
I'm using tables for layout

Which is more important, your content, or its presentation?


That's irrelevant.
not pure CSS (because I couldn't find a pure css solution which met
the requirements)

The point is, why do those requirements exist?


Again, irrelevant. I wasn't asking for a discussion on whether the
requirements were valid.
I asked a purely technical question.
Have a look here: http://validator.w3.org/
You have no doc type declared, and your server does not send a charset
header.


This was a simple _example_. Must you be so anal?
I know about doctypes, I know what they do and why to use them, and I know
how they affect browsers' display of html and css.
If adding a specific doctype would affect the presentation of the example
page, I would have added one.
The example URL, in NN6, doesn't display the content at all. I hate
NN6. It's horrible. All NN6 users should have their computers die!

On balance, it's better than any version of IE/Win. For one thing, it
respects the http protocol; for another, it does not screw up caching.
(See ciwa.site-design for a new thread on IE/Win and caching.)


No browser is perfect. And having a browser war would completely take this
thread off-topic from the original question.
Personally, I like IE but I prefer Firefox. And I despise NN6. *shrugs*

--
Matt Kruse
Javascript Toolbox: http://www.JavascriptToolbox.com/
Jul 20 '05 #5
Matt Kruse wrote:
Brian wrote:

Since 94% of the users will be using IE6 on Windows,
94% precisely? You know that how?
Which is more important, your content, or its presentation?


That's irrelevant.


A telling response.
Again, irrelevant. I wasn't asking for a discussion on whether the
requirements were valid. I asked a purely technical question.
This is not your personal help desk.
You have no doc type declared, and your server does not send a
charset header.


This was a simple _example_. Must you be so anal?


Must you be so difficult? If you want help, the least you can do is
present a valid document.
*shrugs*


*shrugs* back.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #6
Brian wrote:
That's irrelevant.

A telling response.


I was just informing you that your questions are irrelevant, because I
already understand the background issues very well, and I'm not concerned
about addressing them here. With over a decade of web experience, I'm not
new to this. I'm smart enough to know what my real question is. You're being
obtuse by assuming I'm stupid and don't understand what I want or what I'm
doing.

Any issues such as browser share (for you to question the % of IE users
without even knowing the context of the application is being purely
argumentative on your part) or whether or not it's a valid way to do layout
have already been addressed by me. All too often, people without answers or
enough knowledge to address the real question instead direct their focus
towards picking apart the original question, trying to find something wrong
with it to invalidate it. To me, that's annoying and unproductive, so I
won't continue addressing your irrelevant nitpicking of the original
question.

If you do have an answer to the question, or wish to discuss issues related
to it, I'd welcome that.

--
Matt Kruse
Javascript Toolbox: http://www.JavascriptToolbox.com/
Jul 20 '05 #7
Matt Kruse wrote:
All too often, people without answers or enough knowledge to
address the real question instead direct their focus towards
picking apart the original question, trying to find something wrong
with it to invalidate it.
All too often, authors want a quick fix, but don't want to meet us
half-way by validating their document.

http://diveintomark.org/archives/200..._wont_help_you
To me, that's annoying and unproductive, so I won't continue
addressing your irrelevant nitpicking of the original question.


That's super. Bye.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #8

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

Similar topics

6
2560
by: Huron | last post by:
Hi, What do you guys recommend in terms of python project layout, especially unit tests layout ? Zope has unit tests per packages, twisted has a big tests directory full of tests ... and the file naming convention are also pretty differents ... I guess there is part of "personnal choices" in those matters ... but there is also good practice advices that can be gathered I think ... - h
0
1667
by: john allsopp | last post by:
Hi all, old timers might remember me from back in the day. I'm one of the founders of the House of Style, writers of The Complete CSS Guide, and developer of Style Master (and usually an ok guy too :-) http://www.westciv.com Just a quick note.
4
2568
by: Spartanicus | last post by:
I've started work on a css layout tutorial. I expect that it will take a minimum of several weeks to get to a complete draft stage. I hope to get better feedback by publishing individual pages. I've uploaded 2 draft pages, an index and a list of definitions: http://www.spartanicus.utvinternet.ie/CssLayout/index.htm.remove http://www.spartanicus.utvinternet.ie/CssLayout/definitions.htm.remove The urls are not valid because of the added...
8
1922
by: G Patel | last post by:
Can people please comment on the layout/style of my problem? The major issue I had was the layout. I ended up having to put a relatively large switch statement, inside an if statement, which is inside a while loop. If someone can tell me how I can rearrange these elements a little to make it cleaner, I would appreciate that. I've tested it on the command line, and it works *well*, but the source code layout is bugging me. I'd also...
1
1312
by: ChrisA | last post by:
I have an asm that implements an interface. Since the asm will be loaded dynamically, where should the interface be defined so that the client and implementation can both use it? It seems like over-kill to define a shared asm that just contains the interface definition. If the inteface is defined in a shared project file, can there be a versioning issue?
0
1042
by: Robert Weatherford | last post by:
My company is looking for several beta testers for a new VS .NET add-in product. It adds FrontPage-compatible features to VS like shared borders (layout), controls (navigation, substitution, hitcount, search, form submission, etc.), hyperlink management, and a GUI navigation editor tool window. You can create an "enhanced" ASP.NET web site from a template, or one based on an existing FrontPage web. A built-in converter can create ASP.NET...
1
7340
by: Aftab Alam | last post by:
Hello All I want to change the keyboard layout dynaically, ie if a use focuses on my application the keyboard layout gets set to Arabic and if on any other application it should be english ?? How can I achieve this Regards Muhammad Aftab Alam
10
5190
by: Volker Lenhardt | last post by:
For a QApplication (PyQt) on the small screen of my Zaurus 5500 PDA I try to layout my data output in a QScrollView as the central widget. I'd prefer to use QGridLayout, but cannot add it to the scroll view. sc=QScrollView(self) layout=QGridLayout(..., sc.viewport()) sc.addChild(layout) results in a TypeError.
6
1368
by: Rob R. Ainscough | last post by:
Ok, I gotta say I now believe in Voodoo & Magic after working with VS 2005 developing web pages. I have a standard ASPX web page, the only two controls on the page are a Label Control (WebControls.Label) and a Button (WebControls.Button). If I place both controls using Layout = Relative they look correct on the web page. But when I run the project they're relocated off screen somewhere. If I go back to design mode and go into "Source"...
0
1284
by: ping235 | last post by:
Recently, i am busying myself on a project that support both the Full ..NET Framework 2.0 and .NET Compact Framework 2.0, with the same set of c# code, but have different project properties and references. The question is how could I achieve this, should i create separate project for each purpose? The most simple approach is creating two separate projects, but i'll must maintain two sets of codes.
0
9117
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
9679
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
9676
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
8542
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
6390
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
4955
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...
0
5156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3651
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 we have to send another system
2
3141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.