|
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]
|