|
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ää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
[Back to original message]
|