473,398 Members | 2,404 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,398 software developers and data experts.

Is the Holy Grail legend true ?

Hi

Spent the past week looking at CSS renderings of "liquid" 3-column
pages (with both Header and Footer that can also grow).

On testing, none of them seem fully cross-browser campatible.

In almost all of them, the left column seems fixed.
Page doesn't grow when content added to header. When it does, the
header overlaps the top of the columns.

Does anyone have the secret ?
cheers


May 7 '07 #1
18 2406
BobTheBowler wrote:
Hi
Does anyone have the secret ?
The legend is true if you don't learn and apply the rules to the quest.
cheers
With which brand of beer?

--
Gus
May 7 '07 #2
Gus Richter <gu********@netscape.netwrites:
BobTheBowler wrote:
>cheers

With which brand of beer?
Guinness of course! What else is there???

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
May 7 '07 #3
On 2007-05-07, BobTheBowler <bo******@ntlworld.comwrote:
Hi

Spent the past week looking at CSS renderings of "liquid" 3-column
pages (with both Header and Footer that can also grow).

On testing, none of them seem fully cross-browser campatible.

In almost all of them, the left column seems fixed.
Page doesn't grow when content added to header. When it does, the
header overlaps the top of the columns.

Does anyone have the secret ?
I hate to be the one to piss on the bonfire, but use a table.
May 7 '07 #4
On Mon, 07 May 2007 03:22:52 -0500, Ben C <sp******@spam.eggswrote:
>I hate to be the one to piss on the bonfire, but use a table.
That's "piss on the grail-shaped beacon", surely?

Yes, use a <table>. This is how you cause HTML / CSS to render in a
grid-like manner, where the size of one element is related dynamically
to its sibing elements, not merely its content.
May 7 '07 #5
BobTheBowler wrote:
>
Spent the past week looking at CSS renderings of "liquid" 3-column
pages (with both Header and Footer that can also grow).

In almost all of them, the left column seems fixed.
Just because a template comes that way doesn't mean you can't change it
to be flexible. Switch those px units to em and see what happens.
Page doesn't grow when content added to header. When it does, the
header overlaps the top of the columns.
That can be a result of absolute positioning, not clearing floats or
other less than ideal design decisions.
Does anyone have the secret ?
Why don't you show us what you've got first? Post a URL.

--
Berg
May 7 '07 #6
On Mon, 07 May 2007 06:50:47 -0500, Bergamot <be******@visi.com>
wrote:
>Why don't you show us what you've got first? Post a URL.
Ok
original ...
http://www.probowluk.co.uk/3-Column,...S%20Layout.htm
my mod (using external .css file) ...
http://www.probowluk.co.uk/3-Column_Liquid_Layout.htm

Can anyone check out my website with browsers other than IE ?
http://www.ProBowlUK.co.uk
with FireFox, the homepage appears WITHOUT the top (CoolMenus)
layout. Subsequent pages show the Menu.
This is why I was trying out .css, rather than tables, to get
cross-browser compatibility.

May 7 '07 #7
BobTheBowler wrote:
Bergamot <be******@visi.comwrote:
>>Why don't you show us what you've got first? Post a URL.

Ok
original ...
http://www.probowluk.co.uk/3-Column,...S%20Layout.htm
my mod (using external .css file) ...
http://www.probowluk.co.uk/3-Column_Liquid_Layout.htm
Look here:
<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.probowluk.co. uk%2F3-Column%2C%2520Liquid%2C%2520CSS%2520Layout.htm>

With so many errors, it is pointless to try to solve your currect
perceived problems.

First, switch your doctype to Strict. You are not "transitioning" from
anything.
Second, remove all the extraneous JavaScript and IE conditional
statements. Start with a bare page. With no errors in either the HTML or
the CSS.

Then we can discuss the Grail.

--
-bts
-Motorcycles defy gravity; cars just suck
May 7 '07 #8
>
First, switch your doctype to Strict. You are not "transitioning" from
anything.
Second, remove all the extraneous JavaScript and IE conditional
statements. Start with a bare page. With no errors in either the HTML or
the CSS.

Then we can discuss the Grail.

ok
here's another attempt I made ...
http://www.ProBowlUK.co.uk/HolyGrail.htm
looks ok at first, but Header does not move the columns down when
content added ...
http://www.ProBowlUK.co.uk/HolyGrail-2.htm
and this displays differently in IE and FireFox
May 7 '07 #9
BobTheBowler wrote:
>>First, switch your doctype to Strict. You are not "transitioning" from
anything.
Second, remove all the extraneous JavaScript and IE conditional
statements. Start with a bare page. With no errors in either the HTML or
the CSS.

Then we can discuss the Grail.

ok
here's another attempt I made ...
http://www.ProBowlUK.co.uk/HolyGrail.htm
You didn't do any of the stuff I suggested above.
looks ok at first, but Header does not move the columns down when
content added ...
...because you have explicitly set the height of the header to 75px. Use
px only for things like borders. Use em units for everything else.
http://www.ProBowlUK.co.uk/HolyGrail-2.htm
These new samples are still Transitional. Not Strict. Use this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

You can then get rid of all those extraneous slashes at the end of
certain elements. <img ... />

There are errors in your CSS. For example:

Value Error : margin-left Parse Error -
document.all.centercolumn.offsetWidth * -1 +
parseFloat(document.all.centercolumn.currentStyle. paddingLeft) +
parseFloat(document.all.leftcolumn.currentStyle.pa ddingLeft) +
parseFloat(document.all.leftcolumn.currentStyle.pa ddingRight))

Where did you get that?
and this displays differently in IE and FireFox
If you would remove all of the IE conditional comments (I see no need
for them at all for this simple layout), perhaps they will be more
similar. You are designing for the World Wide Web, not a particular
browser. There is also no need to concern yourself if different browsers
display slightly different. None of your visitors are going to be
checking your site with multiple browsers... 'cept us.

Study this template:
http://www.benmeadowcroft.com/webdev.../3-column.html

Hopefully, that steel plate background is just a test...

--
-bts
-Motorcycles defy gravity; cars just suck
May 7 '07 #10
Beauregard T. Shagnasty wrote:
>
you have explicitly set the height of the header to 75px. Use
px only for things like borders.
.... and images and any other element that actually is pixel-based.
Use em units for everything else.
Even better - don't set an explicit height at all unless it's really
necessary.

--
Berg
May 7 '07 #11
BobTheBowler wrote:
>
http://www.ProBowlUK.co.uk/HolyGrail.htm
looks ok at first, but Header does not move the columns down when
content added ...
Mr Shagnasty already mentioned why this is so I won't repeat it.

I just want to comment on calling this "Holy Grail". Anything that uses
so many conditional comments and inline styles does not deserve that
title. I'm not sure where you got the original template, but you should
probably throw it back.
http://www.ProBowlUK.co.uk/HolyGrail-2.htm
and this displays differently in IE and FireFox
I haven't look in IE7, but IE6 is broken where overflow is concerned, so
it's not surprising that it displays differently.

You really should learn how CSS positioning methods work if you expect
to use them effectively. Hacking away at something without understanding
it will only lead to frustration and broken layouts. Have a read at:
http://brainjar.com/css/positioning/
http://www.htmldog.com/

BTW, if you're looking for 3 columns where the column background colors
all stretch the length of the document regardless of which column is
longest, an alternative method is demonstrated at
http://www.bergamotus.ws/samples/3co...ull-width.html

--
Berg
May 7 '07 #12
On Mon, 07 May 2007 14:48:02 -0500, Bergamot <be******@visi.com>
wrote:
>You really should learn how CSS positioning methods work if you expect
to use them effectively. Hacking away at something without understanding
it will only lead to frustration and broken layouts. Have a read at:
http://brainjar.com/css/positioning/
http://www.htmldog.com/

BTW, if you're looking for 3 columns where the column background colors
all stretch the length of the document regardless of which column is
longest, an alternative method is demonstrated at
http://www.bergamotus.ws/samples/3co...ull-width.html


thanks for those pointers.

The last example (your own ?) is what I have been looking for.
couple of questions ...
In the columns, would percentages work for the widths ?

How cross-browser friendly is it ? (Seems ok in Firefox)
cheers


--
Posted via a free Usenet account from http://www.teranews.com

May 8 '07 #13
BobTheBowler wrote:
On Mon, 07 May 2007 14:48:02 -0500, Bergamot <be******@visi.com>
wrote:
>>
http://www.bergamotus.ws/samples/3co...ull-width.html

The last example (your own ?) is what I have been looking for.
I didn't come up with the idea, but that sample is my own.
couple of questions ...
In the columns, would percentages work for the widths ?
It is limited to whatever values are valid for border properties, which
excludes %.
How cross-browser friendly is it ? (Seems ok in Firefox)
You should get yourself some other browsers so you can test
compatibility yourself.

--
Berg
May 8 '07 #14
BobTheBowler wrote:
On Mon, 07 May 2007 14:48:02 -0500, Bergamot <be******@visi.com>
wrote:
>>http://www.bergamotus.ws/samples/3co...ull-width.html

How cross-browser friendly is it ? (Seems ok in Firefox)
Actually, I put those demo pages together some time ago and couldn't
remember how well they had been tested, so did that this morning. IE had
some issues which are now corrected.

--
Berg
May 8 '07 #15
On Tue, 08 May 2007 11:14:52 -0500, Bergamot <be******@visi.com>
wrote:
>BobTheBowler wrote:
>On Mon, 07 May 2007 14:48:02 -0500, Bergamot <be******@visi.com>
wrote:
>>>http://www.bergamotus.ws/samples/3co...ull-width.html

How cross-browser friendly is it ? (Seems ok in Firefox)

Actually, I put those demo pages together some time ago and couldn't
remember how well they had been tested, so did that this morning. IE had
some issues which are now corrected.


A friend wanted to show more of his background image on his pages, so
I did an experiment with your layout ...

.wrapper {
position: relative;
float: left;
padding-left: 5%;
width: 90%;
}

This does exactly what he wants.
However, there seems to be a margin/padding on the left edge
of the navigation (left) column that shows up against the left
edges of the Header and Footer. Looks to be 0.5em or 1% ?

Is there a way of all the left edges to line up ?

--
Posted via a free Usenet account from http://www.teranews.com

May 8 '07 #16
BobTheBowler wrote:
On Tue, 08 May 2007 11:14:52 -0500, Bergamot <be******@visi.com>
wrote:
>>>>http://www.bergamotus.ws/samples/3co...ull-width.html

I did an experiment with your layout ...

.wrapper {
position: relative;
float: left;
padding-left: 5%;
width: 90%;
}
Why are you floating it? What benefit do you get from that? BTW, if you
don't want to use the full browser width, you might want to look at one
of the other samples I put up. That demo page links to them.
there seems to be a margin/padding on the left edge
Is there a way of all the left edges to line up ?
Adjust margins and/or padding as you see fit. Sorry, I'm not going to
spoon feed you answers to all your questions. Experiment with the sample
pages to learn how all that stuff works. Go to the Ruthsarian pages for
more detailed information.

Learn to help yourself. You'll be better for it.

--
Berg
May 8 '07 #17
On Tue, 08 May 2007 18:44:26 -0500, Bergamot <be******@visi.com>
wrote:

>
Adjust margins and/or padding as you see fit. Sorry, I'm not going to
spoon feed you answers to all your questions. Experiment with the sample
pages to learn how all that stuff works. Go to the Ruthsarian pages for
more detailed information.

Learn to help yourself. You'll be better for it.
Sure, if I knew exactly what I was doing

Did a small experiment .... gave each box (div) a contrasting
background-colour (red, green, teal, royalblue, etc.).
This show some gaps between them.
It also shows that the Content-column does not match the height of the
Left and Right areas.

Might be why the layout I was working on before was so complicated.


--
Posted via a free Usenet account from http://www.teranews.com

May 9 '07 #18
BobTheBowler wrote:
>
Did a small experiment .... gave each box (div) a contrasting
background-colour (red, green, teal, royalblue, etc.).

It also shows that the Content-column does not match the height of the
Left and Right areas.
And there is no reason why the individual columns need to be all the
same height, since it's the *container* element, the one with the wide
borders, that actually sets the background colors.

--
Berg
May 9 '07 #19

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

Similar topics

1
by: teak | last post by:
where can somone download a Grail browser for linux? Does anyone have a link? Thanks Tino
1
by: Jorl Shefner | last post by:
I've only been able to plot data with both symbols and lines by issuing two plot commands, one for markers and one for lines. That's perfectly fine, but it creates a problem when I try to create a...
1
by: Jorl Shefner | last post by:
I have a problem that I run into a lot with the 'legend' command's default behavior. I've found a work-around but I wonder if there's a better way. For a simple example, take the following:...
0
by: Anne van Kesteren | last post by:
Ok, here it goes. Originally I submitted this proposal to www-style. Since I don't get feedback there, I think I missed a few (maybe a lot) of points. Proposal:...
5
by: Dustan | last post by:
Does anybody know anything about Grail? I've been unable to get at it, and I've tried on both Windows and Macintosh machines. http://grail.sourceforge.net/
7
by: booktwo | last post by:
Back from Africa, where I was a secular missionary in the Kayon Ghozi's leprosary (Burundi) because of health reasons, I wrote these lucky Flashes of mine, which got a resounding success ,on...
4
Subsciber123
by: Subsciber123 | last post by:
Does anybody know where I can download a WORKING version of the Grail web browser? The one at http://grail.sourceforge.com/ has so many errors and exceptions in it that I cannot possibly fix them all...
5
by: dubing | last post by:
Hi, We have some html source like this: <div class="survey"> <form action="students/cbe-graduate-students/survey.html" method="post" id="frmPbSurvey"> <fieldset class="survey_item">...
4
by: TamusJRoyce | last post by:
Looking at various Holy Grail techniques for html layouts, I came across Faux Positioning Layout. What I'm curious about is the differences between the two. I have no understanding of the Holy...
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
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,...
0
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...
0
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,...
0
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...

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.