Jump to content

span won't float right


Imaulle

Recommended Posts

Hello,

 

I'm messing around with jQuery UI 'sortable' and I'm not able to get a specific span to float right

 

Here is my code so far

 

<style>
#SlideshowOne { list-style-type: none; margin: 0; padding: 0; width: 80%; }
#SlideshowOne li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
#SlideshowOne li span { position: absolute; margin-left: -1.3em; }
#SlideshowOne span ui-icon-closethick { float:right; margin-right:3px; }
</style>

...

<ul id="SlideshowOne"> 
  <li class="ui-state-default">
    <span class="ui-icon ui-icon-arrowthick-2-n-s"></span><a href="#"><span class="ui-icon ui-icon-closethick"></span></a>
</li>

 

 

The span ui-icon ui-icon-arrowthick-2-n-s needs to float left, but I need the ui-icon ui-icon-closethick to float right as it's a 'delete' button...

 

 

any ideas? Also, what class IDs etc can I remove? for example I"m not sure if class="ui-state-default" is needed?

Link to comment
https://forums.phpfreaks.com/topic/236064-span-wont-float-right/
Share on other sites

give them different ID's?

 

er uh..

 

#SlideshowOne span.ui-icon-closethick {float:right;}

 

cept the class name has space in it.. ui-icon ui-icon-arrowthick-2-n-s not sure if that canwork or not

 

 

i guess i would try #SlideshowOne span.ui-icon ui-icon-closethick {float:right;}

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.