This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > December 2003 > horizontal spacing between 2 divs





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author horizontal spacing between 2 divs
Poonam

2003-12-24, 12:28 pm

Hi there.
How can i maintain the spacing between to divs if palced side by side with
10px spacing between them..

Not using any tables. And atleast making one of the div relative
positioning.

Tks poonam.



Spartanicus

2003-12-24, 12:28 pm

Poonam wrote:
quote:

>How can i maintain the spacing between to divs if palced side by side with
>10px spacing between them..



An url showing what you are actually trying to do would help.

--
Spartanicus
David Dorward

2003-12-24, 3:28 pm

Poonam wrote:
quote:

> How can i maintain the spacing between to divs if palced side by side with
> 10px spacing between them..



Depends how you are placing them side by side.
quote:

> Not using any tables.



Good (unless you have some tabular data somewhere)
quote:

> And atleast making one of the div relative positioning.



Why?

--
David Dorward <http://dorward.me.uk/>
Unregistered

2003-12-24, 3:41 pm

can't you just use margin settings

i.e. margin-right:10px;

for your left DIV?
David Dorward

2003-12-24, 5:28 pm

Unregistered wrote:
quote:

> can't you just use margin settings
>
> i.e. margin-right:10px;
>
> for your left DIV?



How should I know?

Tips:
(1) Quote the material you are responding to
(2) Respond to the post you are responding to, not someone elses response to
same.

--
David Dorward <http://dorward.me.uk/>
Eric Bohlman

2003-12-24, 9:28 pm

"Poonam" <poonam@brainvisa.com> wrote in
news:36a7e599a9cf2c348860504b3acc4988@news.teranews.com:
quote:

> Hi there.
> How can i maintain the spacing between to divs if palced side by side
> with 10px spacing between them..
>
> Not using any tables. And atleast making one of the div relative
> positioning.



Make sure you understand what relative positioning really means. It
doesn't mean "positioning an element relative to another element" (which
usually requires *absolute* positioning). It means "positioning an element
relative to the place where it would have appeared if it hadn't been
positioned." In other words, it means "lay out the page as if the element
hadn't been positioned, and then move the element without moving anything
else." In particular, that means "do *not* close up the space that the
element would have occupied if it hadn't been positioned."


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews