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> 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. 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
Archived
This topic is now archived and is closed to further replies.