haruncpi Posted October 18, 2012 Share Posted October 18, 2012 What is the html code to make horizontal boxes i need to make some boxes go from left to right but all i can find is on top of each other, you can see example here <a href="http://www.carinsurancequotesinformation.com">car insurance quotes</a> where the boxes are next to each other, and will this affect the page width on my site.Someone told me use DIV tags but how do i put this in HTML code?. Link to comment Share on other sites More sharing options...
DarkxPunk Posted October 18, 2012 Share Posted October 18, 2012 First off they are using tables. Thats very old and would not recommend it. What you should do is learn CSS. What you wanna do can be achieved by using float. http://www.w3schools.com/css/css_float.asp Link to comment Share on other sites More sharing options...
ankur218 Posted October 28, 2012 Share Posted October 28, 2012 Try using tables like DarkxPunk mentioned but yeah CSS gives you a better option using float and positioning methods. You will be more pleased with your result once you learn CSS. Link to comment Share on other sites More sharing options...
Charles @ CodeConquest.com Posted October 29, 2012 Share Posted October 29, 2012 (edited) Floating is the way to go. I've written some code to start you off at http://dabblet.com/gist/3972114. The line of code that's doing all the work is this one: float: left; Edited October 29, 2012 by Charles @ CodeConquest.com 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