You are here: Re: Td - cell not showing correctly in IE « HTML « IT news, forums, messages
Re: Td - cell not showing correctly in IE

Posted by Gιrard Talbot on 05/29/07 22:04

stereotyyppi wrote :
> Hi,
>
> I have problem with my html code. I have written in my css td cells
> height: 20px; but IE doesn t care about about it, instead it adjust
> its height in relation with neighbour td cell.
>
> the pages can be found in:
>
> http://www.helia.fi/~a0500249/paltamo/index.html
>
> (you need Internet explorer to see the bug. Its the green section that
> is cousing problem)
>
> So I want the td - cell with fixed height to 20px.
>
> sincerely Juha


Juha,

1-
You are misusing tables for layout. Please consult

Table-based webpage design versus CSS-based webpage design: resources,
explanations and tutorials
http://www.gtalbot.org/NvuSection/NvuWebDesignTips/TableVsCSSDesign.html

and you can find CSS designs (page templates) at

http://www.gtalbot.org/NvuSection/NvuWebDesignTips/WebDesignResources.html#CSSWebpageTemplates


2- You are abusing and misusing images for pure layout purposes:
<img src="pics/1x1.gif" width="2" height="1" alt="" /> (5 occurences)
This is very bad and deprecated technique. You are bloating unneedlessly
your markup code (and DOM tree) with images that only serve the purpose
of spacing out elements. This technique also slows down download and
rendering of the page. Such "spacer.gif" technique is quite wrong
semantically and accessibility-wise.

3-
Define the natural language (if it is Finnish) of your page like this:

<html lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="fi">
<meta name="author" content="Paltamon Kunta" />
<meta name="keywords" content="Paltamon Kunta, Paltamo" />
<meta name="description" content="Paltamon kunnan kotisivut" />

If I am wrong, then consult
http://www.loc.gov/standards/iso639-2/php/code_list.php

4-
If you define the character set as iso-8859-1, then you do not need to
"escape" Γ€, ΓΆ by using named character entities. So,

<li><b>P&auml;&auml;sivu</b></li>

could be and *_should be_* written instead as

<li><b>PÀÀsivu</b></li>

GΓ©rard
--
Using Web Standards in your Web Pages (Updated Apr. 2007)
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация