473,506 Members | 16,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Site check please: 2 flexible columns, equal height

Hi. I'd appreciate some comments/help with this site:

http://www.moonremovals.co.uk/new

The aim is to use css positioning to recreate something similar to:

<table>
<tr>
<td colspan="2">Header</td>
</tr>
<tr>
<td nowrap>Navigation</td>
<td width="100%">Content</td>
</tr>
</table>

I've gone round in circles a bit by removing the HTML table and adding a CSS
one. Am I correct in assuming that it's okay to layout a page design with
CSS tables?

Anyway, I've tested it as follows:

Works fine in Internet Explorer 6, Netscape 7.1 and Opera 7.23.

Problems:

-Mozilla 1.7 & Firefox 0.8-

The layout works fine on my local copy of the website, but once uploaded to
the server, on the first load of a page the content div overlaps the
navigation div slightly. Refresh the page and it sorts itself out.

I scroll down the page a bit then click a link in the navigation div, the
page sometimes jumps up a bit and the link isn't followed. Once it's jumped
up and I click on the link it works okay. If I scroll back down after it's
jumped up and click the link again it jumps back up.

I tend to have to 'scroll down, click, repeat' several times to get it to
happen, but it does it often enough for it to be a problem. It doesn't seem
to happen with links in the content div.

-Netscape 4-

The first line of the first heading/paragraph in the content div or the
first line of headings/paragraphs in the content div with images aligned to
them display across the whole page (underneath the navigation div and any
images).

I may end up just hiding all styles from Netscape 4 but I'd obviously be
interested if anyone has a workaround or even if someone knows why this
happens.
I'd appreciate it if people would test it on other browsers. I don't have
access to a Mac and I'd be interested to know how it displays in earlier
versions of Internet Explorer, Netscape, Opera etc...

Thanks,

Richard Jenkins
Jul 20 '05 #1
1 2746
Richard Jenkins wrote:
Hi. I'd appreciate some comments/help with this site:
http://www.moonremovals.co.uk/new

The aim is to use css positioning to recreate something similar to:
<table>
<tr>
<td colspan="2">Header</td>
</tr>
<tr>
<td nowrap>Navigation</td>
<td width="100%">Content</td>
</tr>
</table>

I've gone round in circles a bit by removing the HTML table and
adding a CSS one. Am I correct in assuming that it's okay to layout a
page design with CSS tables?

[snip]

If you mean "using { display: table }" or "using { display: table-row }", I
believe those are not supported by IE (even IE 6). I believe your layout works
in IE because IE has a compensating fault that causes it to behave as you
require (but I'm not certain). You may say "good!"

But what you are doing is normally done a different way, that should work
without relying on faults. You may prefer it. You are probably using the above
"display" properties to ensure that you get columns for the navigation &
content, even if one is much longer than the other. The more common way is to
give the navigation a width, and to give the content a margin-left of about
the same amount or a little greater. This will keep the stuff in the content
away from the left hand side, whether or not there is navigation at that
point.

I don't know whether this will cure your problems.

Another problem you have is that you have { width: auto } on the navigation.
If the user doesn't download the images, and so they get replaced with the alt
text, the latter will force the navigation bar to be very wide, and so cause
it to overlap with the content. It is probably better to use an explicit width
of some kind for the navigation, although there are probably other ways too.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #2

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

Similar topics

17
4158
by: Craig Bailey | last post by:
Someone please explain what alternate universe I fell into this afternoon when PHP started telling me that 2 doesn't equal 2. Not sure about you, but when I run this, it tells me 59001.31 doesn't...
0
2206
by: SteveJ | last post by:
All, Can someone help me solve the next step. First of all let me say I'm new to php. I pieced the following code together from samples I found on the net and a book I bought called PHP...
72
4405
by: B McDonald | last post by:
http://www.galtsvalley.com Hi all. I've recently made some major stylistic changes to my site and now it is essentially a new design with some new CSS plumbing. I am hoping that a few hardy...
0
2355
by: Linda Antonsson | last post by:
Hi, I am trying to put together a CSS-based layout consisting of a header, a sidebar and a main content area. Page: http://www.westeros.org/ASoWS/ CSS:...
7
7655
by: Billy Jacobs | last post by:
I am using a datagrid to display some data. I need to create 2 header rows for this grid with columns of varying spans. In html it would be the following. <Table> <tr> <td colspan=8>Official...
7
1683
by: fahdsultan | last post by:
A very small percentage of my visitors have complained that they cannot see the images on my site. This is a fabric site, and the pictures of the swatches are generated with ImageMagik, the rest of...
21
3461
by: MLH | last post by:
A97 procedure to open http://www.arch.com/message/ enter an 800 number, press "Continue", enter a text msg string from a memo field and press "Send" This is a calendaring and appointment A97...
18
3314
by: zzpat | last post by:
I've come to the conclusion that float was never made for designing a page, but is there a good way to float three columns with the following characteristics? leftColumn 20% rightColumn 20%...
6
2690
by: Roderik | last post by:
I was wondering if there is a good way to avoid a table but achieve the following similar behaviour: Two divs of equal height and undefined width next to each other with a total width of 100%....
0
7218
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
7307
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,...
1
7021
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...
1
5035
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...
0
3188
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
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...

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.