473,804 Members | 3,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cross browser CSS layout with fixed regions

I've been working at this web company for a while now (mainly on PHP stuff)
who are developing a website. The big problem with this site is that it's
all in Flash and uses some really dumb design. So I'm trying to lobby for
the scrapping of the Flash design in favour of a cleaner layout that is
based on HTML and entirely standards compliant. The problem is that in
order to stand even a remote chance of convincing them (I've already used
the bandwidth argument, the need to have the player argument, the
inaccessible for visually impaired people argument and the Google wont be
able to index argument but so far no luck), it has to look like the Flash
site

I want to go one better and have something that resembles the Flash site, is
standards compliant and that automatically sizes to fit the browser window,
leaving no ugly white margins down the sides. I thought of doing this with
tables but I understand that tables are now considered to be a Bad thing,
and besides I'm not sure if what I want to do can be accomplished with them
anyway.

The design I want goes as follows: A header section with the page title and
nav tabs for the major sections of the site which runs along the top of the
page and is always anchored there (my experiments suggested a div with
position:fixed but this wouldn't work in IE). Next comes a box down the left
hand side with navigation relevant to the section of the site the viewer is
on. To the right of this is a box that contains the page contents with a
scrollbar as needed (div with overflow:scroll set maybe?) and finally, along
the bottom should be a strip with the copyright and maybe some other stuff
like a quick log-in form. This should be anchored to the bottom of the
window.

Here is a quick ASCII diagram of the kid of thing I want:

------------------------------------
Page title and main navigation
------------------------------------
Subsection | Page content A
navigation | "
| "
| "
| "
| "
| V
------------------------------------
Page copyright
------------------------------------

So, with CSS layout, I am thinking that I need a div along the top of the
screen (top: 0px; left: 0px; width: 100%; height: auto) and another one on
the bottom (left: 0px; bottom: 100%; width: 100%; height: auto;) with a
third div between that expands to a height equivalent to 100% minus header
height - footer height.

I've been playing around with CSS but am quite frankly at a loss, I can get
things that sort of resemble what I want but that don't work the way I
envisioned. If any of you have some insights I would appreciate hearing
them. Is what I want even possible without resorting to JavaScript trickery?
Jul 21 '05 #1
1 2060

"Gordon McVey" <pr*******@whit ehouse.gov> wrote in message
news:0Z******** *******@newsfe4-win.ntli.net...
Here is a quick ASCII diagram of the kid of thing I want:

------------------------------------
Page title and main navigation
------------------------------------
Subsection | Page content A
navigation | "
| "
| "
| "
| "
| V
------------------------------------
Page copyright
------------------------------------


After playing around for an evening with Dreamweaver, this is what I came up
with to demonstrate the layout I want. The colours and content are purely
for demonstration purposes, of course.

http://www.foxholeproductions.com/temp/layouttest.htm

It validates as XHTML 1.0 strict with no errors and displays near-perfectly
in FireFox, but Internet Exploder makes something of a Horliks of it. The
only Firefox problem I had was that I got scrollbars along the right and
bottom edges of my content div, when I only want one along the right edge.
Still, not bad for a first attempt, even if I do say so myself

So, how do I get it to do that in Internet Exploder too?
Jul 21 '05 #2

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

Similar topics

9
32064
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. However, there are images that I used absolute positioning in order to place them in the appropriate location on my page. When I do a browser resize, these images do not move (obviously). However, the rest of my content is auto centered as...
2
2606
by: CJM | last post by:
I'm developing a site for a charity which I am aiming to make standards-compliant, accessible and cross-browser compatible. I'm doing OK so far and have the workings of a respectable site, but I still have a few little niggly problems: Site: http://www.aif-advocacy.org.uk/index.asp CSS: http://www.aif-advocacy.org.uk/aif.css
4
7953
by: metalseb | last post by:
Hi folks I built up a small website which is designed for 800x600 display. Runs just fine in this resolution but if you have a system in 1024 or 1280 pixels wide, the site just "sticks" in the upper-left corner of the browser window. So I'm trying to keep it horizontally centered whatever screen resolution you are set in. I do not want to deal with table cells, just CSS. I think that I must have a three column DIV layout with the...
34
2679
by: Marian Aldenhövel | last post by:
Hi, I am in the process of embarking on building a large web application. I wanted to seize that opportunity to learn how to use CSS and get rid of my ad-hoc approach to HTML-coding (i.e.: add tables until either the result is OK or I decide to start over). However I do not seem to be able to get it right. Experimentation is beginning to wear me out...
27
2113
by: Curtis Morrison | last post by:
Please help! I've been trying to figure this out for days now, with no luck. the following web page loads fine in MSIE, but NN 7 breaks it. I would really appreciate any suggestions that anyone might have. I tried setting the positioning to relative, as well as added broders, to the elements that break in NN7, with no luck. Here's the site: http://www.dataaxiom.com/Default.htm Also, I'm wondering if I'm even doing the CSS...
7
11654
by: Matt Kruse | last post by:
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 |
1
1856
by: Beau Hayes | last post by:
Greetings, Thanks again for the kind answers to my last question. I'll confess up front this post is part "vent"; I'm just plain frustrated. I have been out of the business for almost three years. Three years ago CSS support was such that I wouldn't sink any more time in it than the time it took to pick one of the 8 core styles served up by the w3 stylebot. Currently, I've got all this free time and thought it would be great to try...
246
6486
by: Chris F.A. Johnson | last post by:
I have posted a quick survey at <http://cfaj.freeshell.org/testing/width.shtml>. There's only one question: select the widest line that fits in your normal browser window. Your assistance is appreciated. -- Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
1
3814
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture . place of the pictures is saved in the database(my database is with mysql) and in home page i fetch properties of the product and address of place that pictures is located output of the code in the...
0
10558
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
10318
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
10302
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
10069
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
9130
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...
1
7608
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...
1
4277
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
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
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.