Spartanicus wrote:
Wilhelm Kutting <wk******@arcor.de> wrote:
i am searching for the right way to put out the following text with css2:
Fon: number1
number2
number3
Fax: number1
number2
number3
<-50px->
This is tabular data.
http://homepage.ntlworld.ie/spartanicus/temp.htm
Containers with text should normally not be given a px width, they need
to be able to expand with the text size. In this specific case you could
set a width of 50px provided that you leave the 'table-layout' property
at (it's default) 'automatic' value.
Something like 5em or 6em might make more sense than 50px, though I
suspect that with the use of a table there isn't any reason to set a
width at all. I think that the only motivation for specifying the size
of the indent in the first place was to assure that the numbers would
all begin to the left of the labels. With a table, they will do so
inherently, without any need to specify a width for the first column
(though padding-right might be useful for the cells in the first column).