Jump to content

need help floating this elements


co.ador

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.