You are here: Re: Margins versus padding « HTML « IT news, forums, messages
Re: Margins versus padding

Posted by dorayme on 05/05/06 07:12

In article <9Vw6g.17814$W6.7781@edtnps89>,
"Michael Laplante" <nowhereman@twilightzone.net> wrote:

> I've got a graphic in a DIV. Best way to provide some space on the left (of
> the page)?
>
> Margins, padding or somehow locate the div itself?
>
> Any browser specific issues you're aware of? I don't have Safari or Opera.
>
> The idea is to maintain a 250 px wide gutter down the left side of the page.
>
> M

A good way to make a block like a div sit 250 pixels away from
the left of its container is this:

div {margin-left; 250px}

This is very abstract advice because when you apply it, you need
to avoid buggering things up by careless or naive use of
container specs (the box that holds the div and anything you have
on the left).

--
dorayme

 

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

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