You are here: Re: margin for multi-line span? « HTML « IT news, forums, messages
Re: margin for multi-line span?

Posted by Jonathan N. Little on 07/11/06 21:52

wolfing1@gmail.com wrote:
> Jonathan N. Little wrote:
>> wolfing1@gmail.com wrote:
>>> I have a <span> block with text that wraps for several lines. I want it
>>> with a margin of 20px so I did a...
>>> <span style="margin-left:20px">.......</span>
>>> But only the first line showed the margin. How can I have it so all
>>> the lines resulting from the <span> are shifted 20px to the right? (or
>>> should I use tables for this?)
>>>
>> No, you want a block not inline element.
>>
>> <div style="margin-left:20px">.......</div>
>>
> eh?
> thought <div> ignored left and right margins
>


Says who? Not if you style them to have margins. Margins are for block
elements anyway, DIV is a block element, SPAN is not.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация