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

array and image wrong cell height size


I have a very basic table with a fixed height of 40 pixels that contains an
image of 40 pixels height. Works on mozilla, forebird, konkeror, safari. The
problem is that on IE6 PC, WinXP SR1, the cell is too high (around 2 or 3 pixels,
as seen with the color background used to check the size) and is not set to the
40 pixels height.

Thanks

Here is the code :

<HTML>
<HEAD><TITLE>Kahuma</TITLE></head>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 bgcolor='#00FF00'>
<TR>
<TD bgcolor=black height=40 align=center>
<img height=40 border=0 width=465 src="titre.gif">
</TD>
</TR>
</TABLE>
</BODY></HTML>

--
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr

http://forums.club-internet.fr/
Jul 20 '05 #1
2 3247
"chepiok" <ds***@fd.dsf> schrieb im Newsbeitrag
news:20*******************@foorum.com...

I have a very basic table with a fixed height of 40 pixels that contains an image of 40 pixels height. Works on mozilla, forebird, konkeror, safari. The problem is that on IE6 PC, WinXP SR1, the cell is too high (around 2 or 3 pixels, as seen with the color background used to check the size) and is not set to the 40 pixels height.

Thanks

Here is the code :

<HTML>
<HEAD><TITLE>Kahuma</TITLE></head>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 bgcolor='#00FF00'> <TR>
<TD bgcolor=black height=40 align=center>
<img height=40 border=0 width=465 src="titre.gif">
</TD>
</TR>
</TABLE>
</BODY></HTML>

--
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr

http://forums.club-internet.fr/


Try <img height=40 border=0 width=465 src="titre.gif" style="display:block">

As Images are inline objects they are placed on the text baseline which is
away from the bottom of the cell.

HTH
Markus
Jul 20 '05 #2
Am 07 Nov 2003 09:32:56 GMT schrieb chepiok:

Try

<TR><TD bgcolor=black height=40 align=center><img height=40 border=0
width=465 src="titre.gif"></TD></tr>

all in one line without spaces. Sometimes, there is one space too much that
is displayed by IE.

Martin
Jul 20 '05 #3

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

Similar topics

6
by: Kingdom | last post by:
I'm using this script to dynamicaly populate 2 dropdowns and dispaly the results. Choose a component type from the first drop down, lets say 'car' and the second box will list all the car...
7
by: Andrew Poulos | last post by:
I'm using the following code to create a small table with one column and two rows. An image goes into the first cell. //create table var t = document.createElement("TABLE"); t.style.position =...
4
by: no-spam | last post by:
Hello, I have an HTML question that I'm not sure can be solved. I want to restrict the maximum size of an inline image. For example, I can force the image to be 200x200 if I do this: <img...
21
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do...
0
by: Workgroups | last post by:
Not sure the best way to go about making this: I have 3 user defineable values - Width, Height, and Size. These values need to define a "grid" of some kind in the following manner: The Width is...
3
by: =?Utf-8?B?SlIx?= | last post by:
I would like to add text to an image. I have tried to use DrawString and it works on some images but on others it is very very small. I am pretty sure it has something to do with the size of the...
2
by: spinow | last post by:
Hi there, My current project has a div with a table inside it. In this table I have a cell. In this cell images are loaded using a javascript function and the images are resized to fit the cell with...
2
by: jerrygadd | last post by:
Can some body help me vertically center an image using CSS? The customer only uses IE, and so the code is not debugged for other browsers! The image in question is found on line 1075 :...
1
anfetienne
by: anfetienne | last post by:
i have this code below that i made....it loads vars from txt file splits it then puts it into an array....once in an array it the brings the pics in from the array to create thumbnails and a larger...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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
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...

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.