473,378 Members | 1,360 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,378 software developers and data experts.

Problem with table width?

Take a look at this page:

http://www.webinnovation.no/test/test.htm

Why is the left table with the text "Menu" not 160 pixels as stated in the
HTML code?

Olav
Jul 20 '05 #1
5 2017
Els
Olav Tollefsen wrote:
Take a look at this page:

http://www.webinnovation.no/test/test.htm

Why is the left table with the text "Menu" not 160 pixels
as stated in the HTML code?


The whole table is 785, and 160 is 1/4.906 of that, roughly 1
fifth. What I see in my browser is your 'menu' being 1 fifth of
the width of the whole table. Can't be bothered to count pixels
though. Too small.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #2
In article <40********@news.broadpark.no>, "Olav Tollefsen" <x@y.com>
wrote:
http://www.webinnovation.no/test/test.htm

Why is the left table
Tablecell.
with the text "Menu" not 160 pixels as stated in the
HTML code?


Here it is, using Safari. Why do you use tables for layout when CSS can
do a better job?

--
Kris
<kr*******@xs4all.netherlands> (nl)
Jul 20 '05 #3
"Els" <el*********@tiscali.nl> wrote in message
news:Xn****************@130.133.1.4...
Olav Tollefsen wrote:
Take a look at this page:

http://www.webinnovation.no/test/test.htm

Why is the left table with the text "Menu" not 160 pixels
as stated in the HTML code?


The whole table is 785, and 160 is 1/4.906 of that, roughly 1
fifth. What I see in my browser is your 'menu' being 1 fifth of
the width of the whole table. Can't be bothered to count pixels
though. Too small.


Which browser did you test with? It doesn't look OK in IE 6.0. It looks OK
in Mozilla 1.7.1.

Why the big difference for this simple code?

Olav
Jul 20 '05 #4
Els
Olav Tollefsen wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:Xn****************@130.133.1.4...
Olav Tollefsen wrote:
> Take a look at this page:
>
> http://www.webinnovation.no/test/test.htm
>
> Why is the left table with the text "Menu" not 160
> pixels as stated in the HTML code?
The whole table is 785, and 160 is 1/4.906 of that,
roughly 1 fifth. What I see in my browser is your 'menu'
being 1 fifth of the width of the whole table. Can't be
bothered to count pixels though. Too small.


Which browser did you test with? It doesn't look OK in IE
6.0. It looks OK in Mozilla 1.7.1.


Firebird. I see the difference now, yes.
Why the big difference for this simple code?


Maybe it's because you used XHTML doctype, which according to
the Specs and the Validator doesn't support the html width
attribute.

http://tinyurl.com/4yu8l

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #5
On Mon, 19 Jul 2004, Olav Tollefsen wrote:
Why the big difference for this simple code?


Looks like an old-fashioned problem for old-fashioned design
techniques. IE has historically done strange things when one mixes
HTML and CSS sizing and units (pixels, percent, implicit).

Why are you declaring this to be XHTML/1.1, when it isn't? - the HTML
validator reports errors, and the CSS validator refuses to even look
at the CSS because of the XHTML errors. It's generally considered a
courtesy on this group to fix syntax errors for oneself before asking
the group for advice on problems.

I would recommend taking away HTML sizing (leave non-CSS-capable
client agents to do their own table sizing - it usually comes out well
enough), and do any CSS sizing in consistent units (usually I'd
recommend percent, unless you have specifically pixel-sized objects to
accommodate).

Even better, don't use tables for layout.

Jul 20 '05 #6

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

Similar topics

4
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
3
by: Robert Dell | last post by:
I have a problem comparing strings in an order form i'm writing. I want to give a running total at the bottom of the page and it appears to be working except it doesn't compare correctly (it...
0
by: Thomas Scheiderich | last post by:
I have a table that has 3 image slices. The middle slice changes size based on size of browser window. This works great. My client wants the date to show over the image on the right. So what I...
20
by: Development - multi.art.studio | last post by:
Hello everyone, i just upgraded my old postgres-database from version 7.1 to 7.4.2. i dumped out my 7.1 database (with pg_dump from 7.1) as an sql-file with copy-commands and to one file using...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
1
by: Trev | last post by:
Hi, I'm hoping that someone in this group can shed some light on an issue I'm having with a Formview. I have a Web User Control (.ascx) with a Formview. The Formview contains 2 Multiviews,...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
1
by: kchaitanya | last post by:
I have created a master page. When I am adding this master page to .aspx files which are in the root directory, it is working fine. When , I am adding master page to .aspx files which are in sub...
3
omerbutt
by: omerbutt | last post by:
hi there i have downloaded a prototype tooltip from http://www.nickstakenburg.com/projects/prototip/ the logic it uses is to call the script after creating the <div> for example i am using the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.