468,140 Members | 1,595 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

margin-left

Hi,
i am searching for the right way to put out the following text with css2:

Fon: number1
number2
number3

Fax: number1
number2
number3
<-50px->

Is there a way?

May 18 '06 #1
2 1328
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.

--
Spartanicus
May 18 '06 #2
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).
May 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Brian | last post: by
19 posts views Thread by Thomas Mlynarczyk | last post: by
1 post views Thread by Marek Mänd | last post: by
13 posts views Thread by Cool Guy | last post: by
3 posts views Thread by xen | last post: by
2 posts views Thread by Steve Richter | last post: by
reply views Thread by GTalbot | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.