GOO Posted November 25, 2006 Share Posted November 25, 2006 If we type:<ul><li>aaa</li><li>kkk</li></ul>we will get a vertical list right?Then,what we can do to get a horizontal list? Link to comment Share on other sites More sharing options...
reportingsjr Posted November 25, 2006 Share Posted November 25, 2006 try this: <style type="text/css">li { float: left; }</style><ul><li>aaa</li><li>kkk</li></ul> That should work! Link to comment Share on other sites More sharing options...
GOO Posted November 25, 2006 Author Share Posted November 25, 2006 Well, it won't work.and it become like this: aaakkkinstead of: aaa kkk Link to comment Share on other sites More sharing options...
jlhaslip Posted November 25, 2006 Share Posted November 25, 2006 <style type="text/css">li { float: left;padding-right:3em; }</style> Link to comment Share on other sites More sharing options...
reportingsjr Posted November 25, 2006 Share Posted November 25, 2006 Oh, yes! I forgot to tell you, thats because you don't have any spaces in between each list element. You could do what jlhaslip, but 3em is a tad large. Thats the size of a tab. So just change that to what you want. You could also use px or pt. Link to comment Share on other sites More sharing options...
GOO Posted November 25, 2006 Author Share Posted November 25, 2006 Well,It WORKS!!!Thanks guys!!!That really helped me a lot!!! 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