co.ador Posted January 12, 2010 Share Posted January 12, 2010 I need to float sub1 to the left of sub <div id="restinfo"> <ul> <li class="sub">Name:</li> <li class="sub1">Jordan Maxwell</li> </div> Quote Link to comment https://forums.phpfreaks.com/topic/188156-need-help-floating-this-elements/ Share on other sites More sharing options...
lostprophetpunk Posted January 12, 2010 Share Posted January 12, 2010 I need to float sub1 to the left of sub <div id="restinfo"> <ul> <li class="sub">Name:</li> <li class="sub1">Jordan Maxwell</li> </div> Try this... .sub1 { float: left; } .sub1 { float: right; } <div id="restinfo"> <ul> <li class="sub">Name:</li> <li class="sub1">Jordan Maxwell</li> </ul> </div> Haven't tested it but it should work. You also forgot to close your unordered list tag. Quote Link to comment https://forums.phpfreaks.com/topic/188156-need-help-floating-this-elements/#findComment-993357 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.