473,662 Members | 2,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I will return to tables

http://dardel.info/Eau.html

What I wanted to achieve was not really complicated: essentially a left
hand column with a 75% width, and a right hand column containing
occasional right-flush picts, plus some stuff filling the whole horiz
space.

I developed that very nicely, it was exactly what I wanted under Safari
or Firefox (Mac), but when I opened it under MSIE it was all over the
place, none of the widths was OK, and the Mac and PC versions were also
different.

What you will see if you click the above is something that is more or
less acceptable in all browsers I have tested, but none is exactly what
I aimed at, and I had to resort to some hack about widths so it renders
acceptably under IE as well as the more compliant browsers.

If anybody has a way to make it better, I'd be immensely grateful.
However, I am seriously considering to return to the table layouts that
I used a few years ago. There are less surprises to expect.

--
François de Dardel
http://dardel.info/
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail

Feb 5 '07 #1
24 2115
François de Dardel wrote:
http://dardel.info/Eau.html

What I wanted to achieve was not really complicated: essentially a
left hand column with a 75% width, and a right hand column containing
occasional right-flush picts, plus some stuff filling the whole horiz
space.

I developed that very nicely, it was exactly what I wanted under
Safari or Firefox (Mac), but when I opened it under MSIE it was all
over the place, none of the widths was OK, and the Mac and PC
versions were also different.

What you will see if you click the above is something that is more or
less acceptable in all browsers I have tested, but none is exactly
what I aimed at, and I had to resort to some hack about widths so it
renders acceptably under IE as well as the more compliant browsers.

If anybody has a way to make it better, I'd be immensely grateful.
However, I am seriously considering to return to the table layouts
that I used a few years ago. There are less surprises to expect.
You can use display: table, display: table-row and display: table-cell to
make Html elements behave like a table. Unfortunately IE doesn't support
this part of the Css standard, but you can hack around it with conditional
comments. See:

http://nrkn.com/displayTable/
Feb 5 '07 #2
"Nik Coughlin" <nr******@gmail .comwrote:
>However, I am seriously considering to return to the table layouts
that I used a few years ago. There are less surprises to expect.

You can use display: table, display: table-row and display: table-cell to
make Html elements behave like a table.
CSS tables used to create a layout grid share all of the nasty drawbacks
of HTML tables used to create a layout grid minus the false semantics
(arguably the least important problem).

--
Spartanicus
Feb 5 '07 #3
On 2007-02-05 23:36:23 +0100, "Nik Coughlin" <nr******@gmail .comsaid:
François de Dardel wrote:
>http://dardel.info/Eau.html

What I wanted to achieve was not really complicated: essentially a
left hand column with a 75% width, and a right hand column containing
occasional right-flush picts, plus some stuff filling the whole horiz
space.

You can use display: table, display: table-row and display: table-cell
to make Html elements behave like a table. Unfortunately IE doesn't
support this part of the Css standard, but you can hack around it with
conditional comments. See:

http://nrkn.com/displayTable/
Thanks but if there were no IE life would be easier. I precisely would
like to avoid conditional comments. I found a hack that helps with
widths, I would prefer to avoid a hack. If I wanted to do tables I
would do HTML tables, not mimic their behaviour with CSS.

I have put a version of this page with borders so it is more obvious:
http://dardel.info/test.html

--
François de Dardel
http://dardel.info/
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail

Feb 5 '07 #4
Spartanicus wrote:
"Nik Coughlin" <nr******@gmail .comwrote:
>>However, I am seriously considering to return to the table layouts
that I used a few years ago. There are less surprises to expect.

You can use display: table, display: table-row and display:
table-cell to make Html elements behave like a table.

CSS tables used to create a layout grid share all of the nasty
drawbacks of HTML tables used to create a layout grid minus the false
semantics (arguably the least important problem).
Would you happen to have any links to resources that explain this in more
detail? Sounds like something I should look into. I don't use display:
table generally, so I've not come across this before.
Feb 6 '07 #5
François de Dardel wrote:
On 2007-02-05 23:36:23 +0100, "Nik Coughlin" <nr******@gmail .com>
said:
>François de Dardel wrote:
>>http://dardel.info/Eau.html

What I wanted to achieve was not really complicated: essentially a
left hand column with a 75% width, and a right hand column
containing occasional right-flush picts, plus some stuff filling
the whole horiz space.

You can use display: table, display: table-row and display:
table-cell to make Html elements behave like a table. Unfortunately
IE doesn't support this part of the Css standard, but you can hack
around it with conditional comments. See:

http://nrkn.com/displayTable/

Thanks but if there were no IE life would be easier. I precisely would
like to avoid conditional comments. I found a hack that helps with
widths, I would prefer to avoid a hack. If I wanted to do tables I
would do HTML tables, not mimic their behaviour with CSS.

I have put a version of this page with borders so it is more obvious:
http://dardel.info/test.html
Sorry, I wasn't looking at the bigger picture. Your real problem is that
you're trying to enforce 75% width on the left, in order to leave room for
images on the right, when sometimes 25% of the screen won't be enough for
your widest image (250px).

Instead you should let go of the 75% idea, float the images to the right and
then leave a margin on the left content that's slightly bigger than the
widest image. Example:

http://nrkn.com/floatWidths/
Feb 6 '07 #6
"Nik Coughlin" <nr******@gmail .comwrote:
>CSS tables used to create a layout grid share all of the nasty
drawbacks of HTML tables used to create a layout grid minus the false
semantics (arguably the least important problem).

Would you happen to have any links to resources that explain this in more
detail? Sounds like something I should look into. I don't use display:
table generally, so I've not come across this before.
The issues with table layouts (HTML and CSS) that affect most people:
http://groups.google.com/group/comp....4398e2dac1f5cd

Very few people might experience loss of functionality due to the false
semantics resulting from the use of a HTML table for layout purposes.
Only when a AT speaking browser reads a document in a mode where it
announces table elements can the false semantics cause a (minor)
problem. The use of HTML tables for layout is prevalent on the web, so
its no surprise that no AT speaking browser announces table elements by
default. Table reading mode needs to be activated by the user on a per
case basis.

--
Spartanicus
Feb 6 '07 #7
Scripsit Nik Coughlin:
You can use display: table, display: table-row and display:
table-cell to make Html elements behave like a table. Unfortunately
IE doesn't support this part of the Css standard, but you can hack
around it with conditional comments.
The trick that you illustrate on your page is to use "conditiona l comments"
(comments of a special format recognized as directives by IE) to throw in
pieces of HTML markup for a table. I wonder how that is supposed to help
with formatting without tables, which was the original intent, if I am not
mistaken. If you are willing to use table markup, why don't you simply use
it the normal way? Much simpler.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 6 '07 #8
On 5 Feb, 22:36, "Nik Coughlin" <nrkn....@gmail .comwrote:
Unfortunately IE doesn't support
this part of the Css standard, but you can hack around it with conditional
comments. See:
Very clever. If that's ever the answer, I don't want to know what the
question is.

Feb 6 '07 #9
On 5 Feb, 21:05, François de Dardel <dardel...@noos .frwrote:
If anybody has a way to make it better, I'd be immensely grateful.
So you have a layout that works, but IE is broken. This is typical
behaviour for the web.

To start fixing it, do the following.

* Use valid HTML
* Use HTML 4.01 Strict, so as to switch IE into standards rendering,
not quirks
* Avoid 1990's <tablemarkup, pixel-based dimensions, mixes of HTML
3.2 attributes and CSS

If you do all three of these, then you've solved almost every IE
inconsistency. The few remaining ones can generally be ignored as
trivial or avoided by not using particular features. For a very few of
them (IMHO there's only one, that of default font size) then use IE
conditional comments in the CSS.

Don't use "hacks" to work around IE's errors (IMHO). They're unstable
with future versions of IE and people who use IE should learn to
accept that it's broken, we shouldn't pander to them.

However, I am seriously considering to return to the table layouts that
I used a few years ago. There are less surprises to expect.
"I can't make CSS work, therefore <tablemust be better and you
people are all fools for telling me otherwise"
Enjoy.

Feb 6 '07 #10

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

Similar topics

13
2486
by: Adie | last post by:
Hi, is this not possible? public DataSet getDimensions() { } public SqlDataReader getDimensions() { }
2
1426
by: Todd | last post by:
I am desperately trying to figure out the following problem, simplified for discussion. I have a WinForm with a button, textbox, and datagrid. When I click the button, I want to execute the method defined in the textbox, which must return a dataset, and pass this dataset to the datasource of my datagrid. Delegates and/or Reflection seem to be the natural way to accomplish this. My "Data tier" resides in another assembly which is...
3
3707
by: Alpha | last post by:
Hi, I have a window C# application. I update the dataset when user finished entering in a text box. But when I want to update the database when OK is pressed, the if(dsVehicle.HasChanges(DataRowState.Modified)) would return false and update of the dataset would take place. I do notice that if I select other item that the textbox is bind to then the modified indicator would then return true. Is there any code that I can add in the...
4
3838
by: Rob | last post by:
Hi, I've been going at this for a few days and can't see the problem. Does anyone see a problem with this code? I have a call to a function that returns a dataset and when I assign values to session variables, the values are the actual column names and not the database value. I've tried using ordinal values and get the same results. --here's the code
2
2308
by: me | last post by:
I have written a query that joins four or five tables. One table has 30,000 rows. Another table has only 200. I want to only return the 200 or so rows in the smaller table and columns from the other tables where data in the surrogate keys match, without returning the other data. It is an outer join, (for four tables, which one is the left and which one is the right?) and how do you define it in design mode in Msft Access Queries, as...
1
1387
by: prileep | last post by:
I have two tables Users and UserLogin. Here i will use two methods of table design. and which query will return me the result more fast. The table size will be large that it may contain records in lakhs. Method 1: Tables: Users ( UserID varchar(20) primary key, PassWord varchar(20)) UsersLogin(UserID varchar(20),LoginDate DateTime) Query: Select Users.UserID,UsersLogin.LoginDate from Users U inner join UsersLogin UL
2
1582
by: prileep | last post by:
I have two tables Users and UserLogin. Here i will use two methods of table design. and which query will return me the result more fast. The table size will be large that it may contain records in lakhs. Method 1: Tables: Users ( UserID varchar(20) primary key, PassWord varchar(20)) UsersLogin(UserID varchar(20),LoginDate DateTime) Query: Select Users.UserID,UsersLogin.LoginDate from Users U inner join UsersLogin UL
3
4309
by: =?Utf-8?B?SlA=?= | last post by:
Explanation: We have several SP that need to retrieve a single "Default Photo" from one of several Photo tables. The column in question in these tables is defined as an IMAGE data type. I currently have a SP that that return the default photo and other relative information. Several of my developers want to retrieve only the image column from this SP. So I thought Id create a function that would execute code very similar to the SP...
4
2214
by: nanabuch | last post by:
Hello, I am new to this forum, and I am a newbit in Oracle, I do have a background in MS Access, VBA, SQL server development and some Oracle backend development work. I have been giving a task to dynamically create tables through code based on parameters in existing tables. I will try to keep this short and to the point The goal is to extract values from existing tables I will give an example of two tables to keep it simple
0
8432
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
8344
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
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
8764
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
8546
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
7367
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
4180
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1752
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.