Alt-Web Design & Publishing
Pure CSS Disjointed Image Gallery
(with opacity)
Description:
Mouse over the browser icons below to reveal absolutely positioned span tags. The thumbnail images have opacity set to 50%. On hover, the opacity switches to 100%.
This disjointed rollover method relies on pure CSS without need for JavaScript behaviors. Therefore, it will work even when JavaScript is disabled. Also works with the tab key for people who may be unable to use a mouse. Tested and works in FF3.6, IE6+, Opera 10, Safari 4 and Chrome.
Gallery Example:
![]()

Firefox Browser
![]()

Internet Explorer
![]()

Safari Browser
![]()

Firefox Browser
![]()

Internet Explorer
![]()

Safari Web Browser
![]()

Firefox Web Browser
![]()

Internet Explorer Browser
![]()

Safari Browser
![]()

Firefox Browser
![]()

Internet Explorer Browser
![]()

Safari Web Browser
CSS Code
#wrapper {position:relative}
#rollover a {
border:none;
text-decoration:none;
/**space between icons**/
padding: 0 0.5em 0 0.5em;
/**Opacity of icons**/
filter:alpha(opacity=50);
opacity:0.5;
}
#rollover a span {
visibility:hidden;
background-color: #FFF;
display:block;
position: absolute;
/**adjust position of full size images**/
left: 250px;
top: 425px;
/**optional full size image captions**/
font-size: 12px;
line-height: 1.2;
color:#666;
text-align: center;
/**optional full size image borders, padding**/
border: 5px solid orange;
padding: 5px;
}
#rollover a:hover span, #rollover a:active span, #rollover a:focus span {visibility:visible;}
#rollover a:hover, #rollover a:focus
{visibility:visible;
/**Opacity**/
filter:alpha(opacity=100);
opacity:10;}
Earn money from your website with
Lunarpages Affiliate Program.
HTML Code
<!--begin disjointed rollovers -->
<div id="wrapper">
<div
id="rollover">
<p>
<a href="#"><img src="SmallIcons/image.png" alt="" /><span><img
src="FullSize/image.jpg" alt=" " /><br
/>optional caption #1</span></a>
<a href="#"><img
src="SmallIcons/image.png" alt="" /><span><img
src="FullSize/image.jpg" alt=" " /><br />optional
caption #2</span></a>
<a href="#"><img src="SmallIcons/image.png" alt="" /><span><img
src="FullSize/image.jpg" alt=" " /><br />optional
caption #3</span></a>
</p>
</div>
</div>
<!--end disjointed rollovers -->
Demos:
- Photoshop Tutorial - Box with Contoured Edges
- Bringing Image Slices into a CSS Layout
- CSS Disjointed Text Rollovers
- CSS Disjointed Menu Rollover
- Floats & Margins, 3 CSS Boxes
- CSS Menus
- CSS Sprites Demo I
- CSS Sprites Demo II
- CSS2 Captions on Floated Images
- CSS2 Sticky Text
- CSS3 Multi-Backgrounds
- Fixed Background Image
- Liquid Header
- Multi-Scrollbars
CSS Templates:
- Centered, Fixed-Width page with floats
- Centered, Liquid-Width page with floats
- I-Page, Liquid Header & Footer
- 1 Column, Fixed-Width Centered
- Faux Column, Fixed-Width Centered
- Right Column, Fixed-Width Centered
- 3 Column, Fixed-Width Centered
- 3 Column, Liquid Layout
- User Adjustable Page
- Horizontal & Vertical Centered
