swarndeep Posted September 9, 2012 Share Posted September 9, 2012 How can show 3 divs next to each other ? I have 3 divs. I want to show all next to each other. Link to comment Share on other sites More sharing options...
niche Posted September 9, 2012 Share Posted September 9, 2012 (edited) Float them all left (or right). http://www.w3schools.com/css/css_float.asp Edited September 9, 2012 by niche Link to comment Share on other sites More sharing options...
Don E Posted September 9, 2012 Share Posted September 9, 2012 and make sure you give them a width. If not, they will expand to fit the available space. So if you give them a width of say 200px and float them left, they should display next to each other. Link to comment Share on other sites More sharing options...
worrall Posted September 10, 2012 Share Posted September 10, 2012 I think CSS float and a margin will solve the problem. first div goes here....float: left; width: 200px; second div....float: left; margin-right: 200px; third div....float: left; margin-right: 200px; Link to comment Share on other sites More sharing options...
niche Posted September 10, 2012 Share Posted September 10, 2012 Zehr gut. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now