Language: CSS
CSS for image - should be inline but with width
.smallprogress,.smallprogressright { width: 16px; height: 16px; background-image: url(images/loading_small.gif); background-repeat: no-repeat; display: inline-block; xdisplay: none; } .smallprogressright { float: right } /* Usage: Some text. <span class="smallprogress"></span> */
Tags:
Description:
This works in getting the icon to display inline and sized however it would be nice to have it invisible as well so jQuery(el).show()/hide() still works.
Originally I always used display: none because initially the progress display is hidden and made visible when needed only.
The idea is to avoid having to embed images and making it real clean to have small icon images next to controls.
Originally I always used display: none because initially the progress display is hidden and made visible when needed only.
The idea is to avoid having to embed images and making it real clean to have small icon images next to controls.
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

