This is a cool site which help you to generate a progress spinner only the fly:
http://cssload.net/
Friday, 23 November 2012
Wednesday, 21 November 2012
JQuery offset returns null value
This could be due to the "$(this)" call. Instead, calling "$('#your_control_id')" will resolve the problem.
Sunday, 18 November 2012
Multi-line items using UL & LI
You want to show the item list in a frame and each item has it's own frame as well. The end result looks like this:
The CSS to achieve the above:
<style type="text/css">
.item_box
{
border: 1px solid blue;
width: 400px;
vertical-align: middle;
overflow: hidden;
}
.item
{
list-style-type: none;
min-height: 30px;
}
.item li
{
float: left;
padding: 2px;
}
.item li span
{
border: 1px solid gray;
display: inline-block;
padding: 2px;
}
</style>
The CSS to achieve the above:
- item_box - this is the class for the DIV. If the "overflow" setting is missing, the blue color DIV frame might not work in Firefox.
- item - this is the class for the UL.
- item li - this is the class for the LI.
- item span - this is the class for the SPAN (to control the text/content effect). If you are displaying the text with spaces, the spaces have to be replaced by " " so that it won't fall apart!
<style type="text/css">
.item_box
{
border: 1px solid blue;
width: 400px;
vertical-align: middle;
overflow: hidden;
}
.item
{
list-style-type: none;
min-height: 30px;
}
.item li
{
float: left;
padding: 2px;
}
.item li span
{
border: 1px solid gray;
display: inline-block;
padding: 2px;
}
</style>
Subscribe to:
Comments (Atom)
We are moving
We are moving this blog to our new blog site: https://ciysys.com/blog/nodejs.htm
-
Overview Usually, we start developing a new system with designing database and then writing codes. If you are not a fan of ORM, you will h...
-
Below is the sample HTML which will hide the URL at the page header when printing with Javascript. <html moznomarginboxes > ...
-
You can draw a simple pie chart & doughnut chart with SVG + CSS. This is quite simple and straight forward. But the limitation is that i...
