View Full Version : problem with positioning

Oct 22nd, 2009, 12:04 PM
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


Oct 22nd, 2009, 12:16 PM
Can you post a link to your website?

Oct 22nd, 2009, 03: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