CSS image effects

Source: Internet
Author: User

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 strict // en" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml" XML: lang = "en">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; gb2312"/>
<Title> A simple CSS photo-album </title>

 

<Style type = "text/CSS">
/* Default link style-needed to make the: active work correctly in IE */
A, A: visited, A: hover, A: active {
Color: #000;
}
/* Style the outer cntaining Div to fit the landscape, portrait and buttons */
# Album {
Width: 320px;
Height: 360px;
Background: # Eee;
Border: 1px solid # AAA;
Margin: 0 auto;
}
/* Remove the padding margin and bullets from the list. Add a top margin and width to fit the images and a position relative */
. Gallery {
Padding: 0;
Margin: 320px 0 0 0;
List-style-type: none;
Position: relative;
Width: 320px;
}
/* Remove the default image border */
. Gallery IMG {
Border: 0;
}
/* Make the list horizontal */
. Gallery Li {
Float: left;
}
/* Style the link text to be central in a surrounding box */
. Gallery Li a,. Gallery Li A: visited {
Font-size: 11px;
Float: left;
Text-Decoration: none;
Color: #000;
Background: # FFF;
Text-align: center;
Width: 26px;
Height: 26px;
Line-Height: 24px;
Border: 1px solid #444;
Margin: 2px;
}
/* Position the images using an absolute position and hide them from view */
. Gallery Li a IMG {
Position: absolute;
Top:-320px;
Left: 0;
Visibility: hidden;
Border: 0;
}
/* Fix the top position for the landscape images */
. Gallery Li a IMG. Landscape {
Top:-280px;
}
/* Fix the left position for the portrait images */
. Gallery Li a IMG. Portrait {
Left: 40px;
}
/* Style the hover background color for the text boxes */
. Gallery Li A: hover {
Background: # DDD;
}
/* Style the active/focus colors for the text boxes (required for IE )*/
. Gallery Li A: active,. Gallery Li A: Focus {
Background: #444;
Color: # FFF;
}
/* Make the images visible on active/focus */
. Gallery Li A: active IMG,. Gallery Li A: Focus IMG {
Visibility: visible;
}
</Style>

</Head>

<Body>

<Div id = "info">

<Div id = "album">
<Ul class = "Gallery">
<Li> <a href = "# Nogo"> 01 </a> </LI>
<Li> <a href = "# Nogo"> 02 </a> </LI>
<Li> <a href = "# Nogo"> 03 </a> </LI>
<Li> <a href = "# Nogo"> 04 </a> </LI>
<Li> <a href = "# Nogo"> 05 </a> </LI>
<Li> <a href = "# Nogo"> 06 </a> </LI>
<Li> <a href = "# Nogo"> 07 </a> </LI>
<Li> <a href = "# Nogo"> 08 </a> </LI>
<Li> <a href = "# Nogo"> 09 </a> </LI>
<Li> <a href = "# Nogo"> 10 </a> </LI>
</Ul>
</Div>

</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.