...

View Full Version : problem with positioning



hno2005
10-22-2009, 11:04 AM
HI
I want to puted three <div>s side by side so I've used float property . two of them have float:right and the other one has float:left . my problem is with that two elements that have float:right properly . . they've sticked together . I want the central div be center of them and don't stick to right or left dev elements .

i used margin-right but it didn't work

TNX

grahamy84
10-22-2009, 11:16 AM
Can you post a link to your website?

Excavator
10-22-2009, 02:12 PM
Hello hno2005,
Here's an example with a float left and right and the center one positioned with margin:0 auto;

Have a look at http://nopeople.com/CSS/3%20equal%20divs/index.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum