By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,866 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,866 IT Pros & Developers. It's quick & easy.

horizontal spacing between 2 divs

P: n/a
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.

Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Poonam wrote:
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
Jul 20 '05 #2

P: n/a
Poonam wrote:
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.
Not using any tables.
Good (unless you have some tabular data somewhere)
And atleast making one of the div relative positioning.


Why?

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #3

P: n/a

can't you just use margin settings

i.e. margin-right:10px;

for your left DIV

Unregistered
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message25371.htm

Jul 20 '05 #4

P: n/a
Unregistered wrote:
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/>
Jul 20 '05 #5

P: n/a
"Poonam" <po****@brainvisa.com> wrote in
news:36******************************@news.teranew s.com:
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."
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.