HighDots Forums  

margin-left

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss margin-left in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wilhelm Kutting
 
Posts: n/a

Default margin-left - 05-18-2006 , 09:57 AM






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?




Reply With Quote
  #2  
Old   
Spartanicus
 
Posts: n/a

Default Re: margin-left - 05-18-2006 , 10:20 AM






Wilhelm Kutting <wkutting (AT) arcor (DOT) de> wrote:

Quote:
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


Reply With Quote
  #3  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: margin-left - 05-18-2006 , 10:39 AM



Spartanicus wrote:
Quote:
Wilhelm Kutting <wkutting (AT) arcor (DOT) 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).


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.