![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
I used the methods described in the A List Apart article "In Search of the Holy Grail" (http://www.alistapart.com/articles/holygrail/) |
|
A sample page is at http://www.gavelcade.com/grail-example.html. Click "Employee Rewards", for example. All well and good. But from there, scroll up just a couple of ticks (click the arrow at the top of the scroll bar a couple of times or hit the Up key twice). You can see that the page's banner and navigation didn't scroll up as far as the content of the middle column--it's located right above the top of the viewport. The content above the Employee Rewards section has slid up underneath the banner! |
|
If you jump to the bottom of the page, you can see that there is a lot of blank space at the bottom of the middle column, where there hadn't been originally. |
|
Any comments on why this happens and whether there is any way to fix it? |
#3
| |||
| |||
|
|
Harlan Messinger wrote: I used the methods described in the A List Apart article "In Search of the Holy Grail" (http://www.alistapart.com/articles/holygrail/) FWIW, I don't believe there is a 'holy grail' of columned layouts. I take most things at ALA with a large grain of salt, anyway. A sample page is at http://www.gavelcade.com/grail-example.html. Click "Employee Rewards", for example. All well and good. But from there, scroll up just a couple of ticks (click the arrow at the top of the scroll bar a couple of times or hit the Up key twice). You can see that the page's banner and navigation didn't scroll up as far as the content of the middle column--it's located right above the top of the viewport. The content above the Employee Rewards section has slid up underneath the banner! The first thing I'd look for is overflow:hidden. Get Firebug if you don't already have it. It might not explain why the phenomenon happens, but should at least point to the relevant rules. If you jump to the bottom of the page, you can see that there is a lot of blank space at the bottom of the middle column, where there hadn't been originally. This looks suspicious: padding-bottom: 1000em; margin-bottom: -1000em; Is 1000em magic in some way? |
|
Any comments on why this happens and whether there is any way to fix it? I'd fix it by using a different method for 3 equal columns. I'm partial to the Ruthsarian layouts myself, but much simplified. Example: http://www.bergamotus.ws/samples/3column-stretch-with-borders.html BTW, I am not opposed to hacks, but use them as sparingly as possible. |
#4
| |||
| |||
|
|
I used the methods described in the A List Apart article "In Search of the Holy Grail" (http://www.alistapart.com/articles/holygrail/) on a website, duplicating its few IE6 hacks to cover IE7, and have been pleased with the result until making one odd discovery. A sample page is at http://www.gavelcade.com/grail-example.html. The information on the page is preceded by a set of internal links to each of the informational sections. In Firefox 3 on Windows, clicking one of these links shifts the page down so that the link's destination as at the top of the viewport. Click "Employee Rewards", for example. All well and good. But from there, scroll up just a couple of ticks (click the arrow at the top of the scroll bar a couple of times or hit the Up key twice). You can see that the page's banner and navigation didn't scroll up as far as the content of the middle column--it's located right above the top of the viewport. The content above the Employee Rewards section has slid up underneath the banner! If you jump to the bottom of the page, you can see that there is a lot of blank space at the bottom of the middle column, where there hadn't been originally. So what's really happening is that the *text* is sliding up correctly when the link is clicked, but all the divs that divide up the page slide up only far enough to put the banner and navigation out of view. |
|
Another oddity is that if, after clicking one of the links, you click the Back button, the same thing happens--even that doesn't restore the original state. |
|
If you shift-Tab, *then* the hidden content begins to scroll into view, as you navigate backward through the list of links. |
#5
| |||
| |||
|
|
Bergamot wrote: Harlan Messinger wrote: http://www.gavelcade.com/grail-example.html. This looks suspicious: padding-bottom: 1000em; margin-bottom: -1000em; Is 1000em magic in some way? The purpose of that is to get each column's background color to continue all the way down to the bottom of the div that contains all three columns, without continuing below that div. |
#6
| |||
| |||
|
|
I used the methods described in the A List Apart article "In Search of the Holy Grail" (http://www.alistapart.com/articles/holygrail/) on a website, duplicating its few IE6 hacks to cover IE7, and have been pleased with the result until making one odd discovery. A sample page is at http://www.gavelcade.com/grail-example.html. The information on the page is preceded by a set of internal links to each of the informational sections. In Firefox 3 on Windows, clicking one of these links shifts the page down so that the link's destination as at the top of the viewport. Click "Employee Rewards", for example. All well and good. But from there, scroll up just a couple of ticks (click the arrow at the top of the scroll bar a couple of times or hit the Up key twice). You can see that the page's banner and navigation didn't scroll up as far as the content of the middle column--it's located right above the top of the viewport. The content above the Employee Rewards section has slid up underneath the banner! If you jump to the bottom of the page, you can see that there is a lot of blank space at the bottom of the middle column, where there hadn't been originally. So what's really happening is that the *text* is sliding up correctly when the link is clicked, but all the divs that divide up the page slide up only far enough to put the banner and navigation out of view. Another oddity is that if, after clicking one of the links, you click the Back button, the same thing happens--even that doesn't restore the original state. If you shift-Tab, *then* the hidden content begins to scroll into view, as you navigate backward through the list of links. IE7 also gets this wrong, but in a different way. After you click one of the links, the scrollbar continues to appear scrolled all the way to the top. Hitting the Back button does nothing. If you scroll down, you can see a large chunk of white space that hadn't been there when the page was originally displayed. However, if you hold the mouse button down somewhere in the main text and drag the cursor upward, *then* the page will scroll upward and the content will come into view. Any comments on why this happens and whether there is any way to fix it? |
#7
| |||
| |||
|
|
I used the methods described in the A List Apart article "In Search of the Holy Grail" (http://www.alistapart.com/articles/holygrail/) on a website, duplicating its few IE6 hacks to cover IE7, and have been pleased with the result until making one odd discovery. A sample page is at http://www.gavelcade.com/grail-example.html. The information on the page is preceded by a set of internal links to each |
#8
| |||
| |||
|
|
In article <6t3eo5F8vu9dU1 (AT) mid (DOT) individual.net>, Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote: I used the methods described in the A List Apart article "In Search of the Holy Grail" (http://www.alistapart.com/articles/holygrail/) on a website, duplicating its few IE6 hacks to cover IE7, and have been pleased with the result until making one odd discovery. A sample page is at http://www.gavelcade.com/grail-example.html. The information on the page is preceded by a set of internal links to each The phenomenon you are seeing does not happen when following the template more exactly. If you substitute your middle content for the author's at http://www.alistapart.com/d/holygrail/example_1.html and get to the subsequent: http://www.alistapart.com/d/holygrail/example_1.html#plan529 [latter is no functioning URL till you put in your content...] you will see it functions as expected. (btw, I thought the idea of a holy grail included full length cols (but the side cols are content dependent in terms of background colour). I make this reply to you in case it helps stops you throwing away the whole idea in disgust. You might need to carefully start from it again and test at each stage of your build for the irregularity you have seen. (btw, is it the case that your pages on this site invariably have longer content columns? If so we might be better off forgetting holy grails and go for numerous practical grails...) |
#9
| |||
| |||
|
|
Harlan Messinger wrote: I used the methods described in the A List Apart article "In Search of the Holy Grail" (http://www.alistapart.com/articles/holygrail/) on a website, duplicating its few IE6 hacks to cover IE7, and have been pleased with the result until making one odd discovery. A sample page is at http://www.gavelcade.com/grail-example.html. The information on the page is preceded by a set of internal links to each of the informational sections. In Firefox 3 on Windows, clicking one of these links shifts the page down so that the link's destination as at the top of the viewport. Click "Employee Rewards", for example. All well and good. But from there, scroll up just a couple of ticks (click the arrow at the top of the scroll bar a couple of times or hit the Up key twice). You can see that the page's banner and navigation didn't scroll up as far as the content of the middle column--it's located right above the top of the viewport. The content above the Employee Rewards section has slid up underneath the banner! If you jump to the bottom of the page, you can see that there is a lot of blank space at the bottom of the middle column, where there hadn't been originally. So what's really happening is that the *text* is sliding up correctly when the link is clicked, but all the divs that divide up the page slide up only far enough to put the banner and navigation out of view. Another oddity is that if, after clicking one of the links, you click the Back button, the same thing happens--even that doesn't restore the original state. If you shift-Tab, *then* the hidden content begins to scroll into view, as you navigate backward through the list of links. IE7 also gets this wrong, but in a different way. After you click one of the links, the scrollbar continues to appear scrolled all the way to the top. Hitting the Back button does nothing. If you scroll down, you can see a large chunk of white space that hadn't been there when the page was originally displayed. However, if you hold the mouse button down somewhere in the main text and drag the cursor upward, *then* the page will scroll upward and the content will come into view. Any comments on why this happens and whether there is any way to fix it? Have you looked at: http://matthewjamestaylor.com/ It's what i'm using now. |
#10
| |||
| |||
|
|
Ah, thanks. Evidently he's been tinkering with it, and he's produced this updated arrangement with pixel-width left and right columns and unspecified-width center column: http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-ems.htm |
![]() |
| Thread Tools | |
| Display Modes | |
| |