how to use png image in ie6 ?

Category: Articles, CSS    |    1,839 views    |    3 Comments  |   

Solution

Create a container to store your image. In this case I use a <div>.
Create your <div> inside your <body>, just like this.

<body> <div class=”flower”></div> </body>

Next, create a <style> if you dont have one. Make sure they are between your <head> </head>. Put the following css inside.

<style>
body {background-color:#000}
div.
flower {background:url(flower-transparent.png) no-repeat; height:100px; width:100px}
</style>

The CSS codes above displays your PNG image in a <div>. Works fine for Mozilla Firefox, but not for Internet Explorer. To get it working cross browser, create another set of css just for Internet Explorer right below your <style> </style>. Insert the following codes.

<!–[if gte IE 5]>
<style type=”text/css”>
div.flower {
background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’flower.png’ ,sizingMethod=’crop’);
}
</style>
<![endif]–>

 

CSS3 and jQuery Examples

Category: CSS, Showcase, jquery    |    2,628 views    |    1 Comment  |   

CSS Tab-Based Interfaces Examples

Category: CSS, Showcase    |    2,523 views    |    2 Comments  |   

1) Easy Tabs 1.2 with autochange- You can now set the autochange mode to one of your tab menus.

T1 in 37+ Great Ajax, CSS Tab-Based Interfaces


2) Rotating jQuery tabs

T6 in 37+ Great Ajax, CSS Tab-Based Interfaces


3) Slideshow Tab Content Script-”- Supports “slideshow” mode, in which script automatically cycles through and selects each tab periodically until a tab is explicitly selected.

T5 in 37+ Great Ajax, CSS Tab-Based Interfaces


Sliding Tabs

4) Sliding Tabs- Sliding Tabs is a mootools plugin which adds a pretty neat effect. It’s a clone of something seen on Panic Software’s Coda site, which in turn is very heavily inspired by a widget used in the iTunes Music Store.

T2 in 37+ Great Ajax, CSS Tab-Based Interfaces


5) Coda-Slider- Amazing jQuery Coda-Slider can be used for Nice, slick content presentation.

T12 in 37+ Great Ajax, CSS Tab-Based Interfaces


6) Perspective tabs- Formerly Sliding Tabs uses mootools that allows for a lagre number of tabs to fit into a small space.

T13 in 37+ Great Ajax, CSS Tab-Based Interfaces


Ajax Tab Content

7) Ajax Tabs Content Script- This is a versatile Ajax Tabs Content script that lets you display content pulled from external files inside a DIV and organized via CSS tabs.

T3 in 37+ Great Ajax, CSS Tab-Based Interfaces


Closeable Tabs

8 ) Tab Panes- Two Versions with close and add panes.

T23 in 37+ Great Ajax, CSS Tab-Based Interfaces


9) Closeable Tabs Module- The Closeable Tab widget allows tabs to be removed.

T24 in 37+ Great Ajax, CSS Tab-Based Interfaces Read more…