473,804 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Vertical stretching of box(es)

http://www.northwestallentrails.org/testing.shtml
http://www.northwestallentrails.org/newstyles.css

Is there a simple way to make the nav and content boxes stretch down and
touch the footer? I have seen it done by repeat-y on a gif the same
color, but I wondered if CSS had some feature that was actually intended
for this.

The other thing that would be nice to do would be to stretch the whole
box to the window height minus just a little (except if content is
longer in which case you want to show it all with scrollbars).

--
Wes Groleau

A pessimist says the glass is half empty.

An optimist says the glass is half full.

An engineer says somebody made the glass
twice as big as it needed to be.
Jul 7 '06 #1
9 2511
Wes Groleau <gr**********@f reeshell.orgwro te:
>http://www.northwestallentrails.org/testing.shtml
http://www.northwestallentrails.org/newstyles.css

Is there a simple way to make the nav and content boxes stretch down and
touch the footer? I have seen it done by repeat-y on a gif the same
color, but I wondered if CSS had some feature that was actually intended
for this.
http://homepage.ntlworld.com/spartanicus/css_layout.htm
>The other thing that would be nice to do would be to stretch the whole
box to the window height minus just a little (except if content is
longer in which case you want to show it all with scrollbars).
No that's not nice at all, footers should be directly below the content,
not stuck to the viewport's bottom.

--
Spartanicus
Jul 8 '06 #2
Spartanicus wrote:
Wes Groleau <gr**********@f reeshell.orgwro te:
>Is there a simple way to make the nav and content boxes stretch down and
touch the footer? I have seen it done by repeat-y on a gif the same
color, but I wondered if CSS had some feature that was actually intended
for this.

http://homepage.ntlworld.com/spartanicus/css_layout.htm
Thanks, I'm giving it a try.
>The other thing that would be nice to do would be to stretch the whole
box to the window height minus just a little (except if content is
longer in which case you want to show it all with scrollbars).

No that's not nice at all, footers should be directly below the content,
not stuck to the viewport's bottom.
Well, I don't know. This page sure looks funny to me, stuck to the
viewport's top with all that empty space underneath. Of course,
I could just stick more gadgets in the nav bar to make it longer. :-)

--
Wes Groleau
http://freepages.rootsweb.com/~wgroleau/Wes
Jul 8 '06 #3


Spartanicus wrote:
Wes Groleau <gr**********@f reeshell.orgwro te:
>http://www.northwestallentrails.org/testing.shtml
http://www.northwestallentrails.org/newstyles.css

Is there a simple way to make the nav and content boxes stretch down and
touch the footer? I have seen it done by repeat-y on a gif the same
color, but I wondered if CSS had some feature that was actually intended
for this.

http://homepage.ntlworld.com/spartanicus/css_layout.htm
I copied selected CSS from there, but I must not have copied enough.

Mine didn't change on Opera, Safari, OmniWeb, Firefox,
and Camino.

Too late at night--I'll study it closer in the morning.

(BTW, Opera 9 screws up the header pictures--makes the box bigger
and repeats a little of the image. Are they trying to imitate
the ancient IE 5 ?)
--
Wes Groleau

Ostracism: A practice of sticking your head in the sand.
Jul 8 '06 #4
Wes Groleau <gr**********@f reeshell.orgwro te:
>>Is there a simple way to make the nav and content boxes stretch down and
touch the footer? I have seen it done by repeat-y on a gif the same
color, but I wondered if CSS had some feature that was actually intended
for this.

http://homepage.ntlworld.com/spartanicus/css_layout.htm

Thanks, I'm giving it a try.
The demo means to demonstrate that there is a feature in CSS to do this,
I do not recommend using this for a web site unless you know exactly
what your are doing, you know the drawbacks and how the thing works.
>>The other thing that would be nice to do would be to stretch the whole
box to the window height minus just a little (except if content is
longer in which case you want to show it all with scrollbars).

No that's not nice at all, footers should be directly below the content,
not stuck to the viewport's bottom.

Well, I don't know. This page sure looks funny to me, stuck to the
viewport's top with all that empty space underneath. Of course,
I could just stick more gadgets in the nav bar to make it longer. :-)
If you have that little content, does it warrant being on a page of it's
own?

--
Spartanicus
Jul 8 '06 #5
Spartanicus wrote:
The demo means to demonstrate that there is a feature in CSS to do this,
I do not recommend using this for a web site unless you know exactly
what your are doing, you know the drawbacks and how the thing works.
I understand how it works (plus I have the CSS2 spec in my bookcase
if needed. My goof was that when I copied your table properties,
I forgot to remove the floats.

With those gone, it looked great in some browsers and terrible in
others. IE 6 on Windows, IE 5 on Mac, Opera 9, and Firefox screw
it up in three different ways. So I'll compromise--trade the four
divs for TD tags and use the CSS as much as portably possible.

I don't have the patience to maintain a whole bunch of browser
hacks in my stylesheet.
If you have that little content, does it warrant being on a page of it's
own?
That is going to be the intro page--kind of like a flash
page only with HTML and a bit of content instead of flash.
Also, for special notices, we temporarily replace it.
(Turns out the actual page does have enough content to
nearly fill the viewport.)

--
Wes Groleau
"To know what you prefer, instead of humbly saying
Amen to what the world tells you you should prefer,
is to have kept your soul alive."
-- Robert Louis Stevenson
Jul 8 '06 #6
Wes Groleau <gr**********@f reeshell.orgwro te:
>The demo means to demonstrate that there is a feature in CSS to do this,
I do not recommend using this for a web site unless you know exactly
what your are doing, you know the drawbacks and how the thing works.

I understand how it works (plus I have the CSS2 spec in my bookcase
if needed. My goof was that when I copied your table properties,
I forgot to remove the floats.
There are no floats used anywhere in the demo.
>With those gone, it looked great in some browsers and terrible in
others. IE 6 on Windows, IE 5 on Mac, Opera 9, and Firefox screw
it up in three different ways.
That suggests that you have not understood how it works, nor even read
the page as it prominently states "This demo shows a layout created with
a CSS-table (not supported by IE)." note the "not supported by IE".

FYI the demo works perfectly in Opera (any 4+ version), any Gecko based
browser, Safari, and Konqueror, so essentially in anything but IE.
>I don't have the patience to maintain a whole bunch of browser
hacks in my stylesheet.
The demo doesn't utilize a single "browser hack".

--
Spartanicus
Jul 8 '06 #7
Spartanicus wrote:
>if needed. My goof was that when I copied your table properties,
I forgot to remove the floats.

There are no floats used anywhere in the demo.
Exactly. The floats I was trying to use are incompatible with
table mode. Therefore it did not work until I removed them.
>With those gone, it looked great in some browsers and terrible in
others. IE 6 on Windows, IE 5 on Mac, Opera 9, and Firefox screw
it up in three different ways.

That suggests that you have not understood how it works, nor even read
the page as it prominently states "This demo shows a layout created with
a CSS-table (not supported by IE)." note the "not supported by IE".
Yes, I read that. But IE 6 _did_ correctly handle the table part.
What it screwed up was the header. Apparently IE 6 did not fix
the height plus padding error of IE 5
FYI the demo works perfectly in Opera (any 4+ version), any Gecko based
browser, Safari, and Konqueror, so essentially in anything but IE.
And so did my adaptation of it. However, other things
did not work. And the table trick did NOT work in one
browser. Perhaps I screwed it up somehow--but since it
worked in all the others (even IE), it must have been
an unusual screwup.
>I don't have the patience to maintain a whole bunch of browser
hacks in my stylesheet.

The demo doesn't utilize a single "browser hack".
And you're accusing me of not reading? I said "in MY stylesheet"

--
Wes Groleau
"Ideas are more powerful than guns,
We would not let our enemies have guns;
why should we let them have ideas?"
-- Jozef Stalin
Jul 9 '06 #8
Wes Groleau <gr**********@f reeshell.orgwro te:
>>With those gone, it looked great in some browsers and terrible in
others. IE 6 on Windows, IE 5 on Mac, Opera 9, and Firefox screw
it up in three different ways.

That suggests that you have not understood how it works, nor even read
the page as it prominently states "This demo shows a layout created with
a CSS-table (not supported by IE)." note the "not supported by IE".

Yes, I read that. But IE 6 _did_ correctly handle the table part.
Impossible. Perhaps you are instead referring to the "CSS-table layout
with IE fallback" demo that is linked from the url I supplied.
>What it screwed up was the header. Apparently IE 6 did not fix
the height plus padding error of IE 5
Screencap of the "CSS-table layout with IE fallback" demo rendered by
IE6: http://homepage.ntlworld.ie/spartanicus/ie.png I'm assuming that
you are referring to an adaptation of your own.
>FYI the demo works perfectly in Opera (any 4+ version), any Gecko based
browser, Safari, and Konqueror, so essentially in anything but IE.

And so did my adaptation of it. However, other things
did not work.
Blame the adaptation.
>>I don't have the patience to maintain a whole bunch of browser
hacks in my stylesheet.

The demo doesn't utilize a single "browser hack".

And you're accusing me of not reading? I said "in MY stylesheet"
I read your comments as relating to this thread and to the url I
provided (not other demos linked from that url). If your stylesheet uses
browser hacks that are not related to my demo code, why are you
complaining about it in this thread?

--
Spartanicus
Jul 9 '06 #9
Spartanicus wrote:
>Yes, I read that. But IE 6 _did_ correctly handle the table part.

Impossible. Perhaps you are instead referring to the "CSS-table layout
with IE fallback" demo that is linked from the url I supplied.
No, I did not bother to click on that. Either I dreamed
the whole thing, or it worked!
I read your comments as relating to this thread and to the url I
provided (not other demos linked from that url). If your stylesheet uses
You provided the URI in response to my query on how to do that.
I tried it, and it worked. However, because of other problems
with IE, I chose to compromise and use an HTML table. The
combination is simple and more maintainable than I would have
gotten had I chosen to shoehorn an acceptable layout for ALL
browsers into my stylesheet.
browser hacks that are not related to my demo code, why are you
complaining about it in this thread?
My stylesheet does not use browser hacks. I am taking a different
approach because I am not willing to put them in. I was not
complaining about them--though if I had used them, I would probably
be complaining about them by now. :-)

I am grateful for your offering the link. It reminded me
of a section of the spec I had obviously gone through too
quickly.

I chose a different approach, but NOT because there was
anything wrong with your CSS. You are defending yourself
against a non-existent enemy.

--
Wes Groleau

Those who make peaceful revolution impossible
will make violent revolution inevitable.
-- John F. Kennedy
Jul 9 '06 #10

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

Similar topics

0
1674
by: Dusan Mihajlovic via .NET 247 | last post by:
Is it posible to set cursor position on the begining of selectedtext of text box. For example, I have text TEST in text box. Iwant to select ES character and cursor position between T and Echaracters. When I use SelectionStart = 1, and SelectionLength =2, ES is selected, but the cursor position is between S and T,and I need it between T and E. Any idea? Thanks.... -------------------------------- From: Dusan Mihajlovic ...
3
4798
by: pepino13 | last post by:
Hello, I have a a form called frmMissyFact, I have copied this form and called it frmMissyFactBackup which reads data from a backup database of the week before. I brought frmMissyFactBackup into frmMissyFact as a subform. What I am trying to do is compare each control value from frmMissyFact to that of frmMissyFactBackup and if the controlvalue is different change the backcolor to Yellow of the control so the user looking at it knows...
3
22167
by: W. Carroll | last post by:
Hi, Here is the problem I am facing. I need to create some sort of message alert that notifies the user upon opening the database that there are records within 30 days of expiration. I'm not sure if this requires a Macro, event procedure, etc. I have a field that gives the expiration date so I could use a formula that calculates 30 days out, or I also have a field that calculates the number of days to expiration. I'm not sure exactly...
1
2619
by: Blaine | last post by:
When I show my Windows Form as a dialog box (ShowDialog(Me)) and click on a button that calls the ShowDialog of either the PageSetupDialog or PrintDialog conrtol, my Windows Form closes After I close the PageSetupDialog or PrintDialog. This doesn't happen if the Windows Form is displayed using the Show method. Does anyone have a solution? I've made my own Print Setup Dialog Box (frmPrint). I've added the PrintDocument, PageSetupDialog...
8
2932
by: johnmmcparland | last post by:
Hi all, my program is trying to add group boxes with radio buttons at run time. While at one point it was able to draw the group boxes without the radio buttons, now it encounters problems just getting the radiobuttons out of the group box. /// area where radio buttons added to groupbox /// this code is wrapped in another loop creating group boxes
7
9613
by: TimC | last post by:
Hello all, A question from someone who dabbles in Access. Is it possible to hide or ghost out a combo box (or set of them) on a Form, and only have them appear as a usable option if a tick box option that is also on the form is ticked or marked as true ??.... I am asking this as I want to prevent people entering the data into these combo boxes unless they have selected this tick box. I have a few queries that primarily look at the Yes/No...
4
2362
by: Dave | last post by:
I wasn't sure how to search for previous posts about this, it felt real specific. Ok so here's the database & problem: I have 4 combo boxes: cboServer, cboPolicy, cboDB, and cboApplication. The idea behind the database is for a user to search/ select desired information in any kind of combination between the 4 combo boxes. Then the user clicks a button (btnSearch) and subsequently a query ("Search Function") is run that shows all 4...
2
4509
by: manilal prajapati | last post by:
Hi, Using mootools I can implement either vertical or horizontal slider bar . But i want to implement both slider bar at once...
5
8370
by: empiresolutions | last post by:
I'm trying to build a box that i can place content in. This box should dynamically change width and height to accommodate the content inside. I have build out a non-working example here http://sb.cesarvillaca.com/demo/box/box.php. It looks like i want it to be, but it doesn't work dynamically. Can someone please help me get this working, or show me an example i can work from online? Thanks. Here is my html with php for height/width...
0
9705
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
10568
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
10323
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
10311
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
10074
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
9138
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
6847
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();...
1
4292
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
3
2988
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.