CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2012, 11:04 PM
campnonet campnonet is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 2 campnonet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 28 sec
Reputation Power: 0
Learning Css

Hello I'm new to css i am try to do some rollover pictures But i'm haveing a problem centering the image on the mouse hover

here is a link to the site
http://bob.lickmy9.com/css2/

and a copy of the css code
Code:
@charset "utf-8"; /* CSS Document for Nebraska Marine Service */ body { margin: 0; padding: 0; background:url(../images/site-bg.jpg) left top repeat-x #e8e8e8; font-family: Arial, Georgia, Geneva, Verdana, sans-serif; } .logo { font-weight: bold; font-size: 38px; color: #3297CA; text-shadow: #858585 2px 2px 1px; padding: 10px; } .main{ width: 825px; background-color: white; margin: 10px auto; position: middle; padding-top: 20px; padding-bottom: 20px; border-radius: 50px; -moz-border-radius: 50px; -webkit-border-radius: 50px; -o-border-radius: 50px; -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); box-shadow: 0px 1px 3px rgba(0,0,0,0.5); } .service-box { float: left; width: 375px; background-color:#CCCCFF; margin-left:9px; margin-top:9px; margin-bottom:9px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); box-shadow: 0px 1px 3px rgba(0,0,0,0.5); } .service-text{ padding-left:1em; padding-top:1em; padding-bottom:1em; } .contact-box { float: left; width: 275px; background-color:#e8e8e8; margin-left:9px; margin-top:9px; margin-bottom:9px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); box-shadow: 0px 1px 3px rgba(0,0,0,0.5); } .footer-text { text-align: center; Font-size: 10px; } .gallery-box { float: left; width: 775px; background-color:#240A66; margin-left:9px; margin-top:9px; margin-bottom:9px; color: white; text-align: center; font-weight: bold; font-size: 12px; color: white; text-shadow: #858585 2px 2px 1px; padding: 10px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); box-shadow: 0px 1px 3px rgba(0,0,0,0.5); } .gallery-images img { margin: 5px 5px 5px 5px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.5); box-shadow: 0px 1px 3px rgba(0,0,0,0.5); } /* Set general thumbnail styles */ #col-1 /*{ position: absolute; top: 0; left: 0; } /*place the column on the page*/ li { margin: 10px; list-style-type:none; } /*remove bullets from the list elements*/ img { border: none; } /*set images to have no borders*/ /* MouseOut state (default) - create and position a space for the larger images and hide them*/ #col-1 a img.hid { width: 700px; height:470px; position: absolute; top: 10px; left: 282px; text-align:center; visibility: hidden; } /* MouseOver state (hover)- reveal larger picture */ #col-1 a:hover { background: black; } #col-1 a:hover img.hid { visibility:visible; }


Thank you for any help

Reply With Quote
  #2  
Old October 17th, 2012, 11:06 PM
campnonet campnonet is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 2 campnonet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 28 sec
Reputation Power: 0
css code

.gallery-images img {
margin: 5px 5px 5px 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-o-border-radius: 5px;
-moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.5);
box-shadow: 0px 1px 3px rgba(0,0,0,0.5);
}



/* Set general thumbnail styles */
#col-1 /*{ position: absolute; top: 0; left: 0; } /*place the column on the page*/
li { margin: 10px; list-style-type:none; } /*remove bullets from the list elements*/
img { border: none; } /*set images to have no borders*/

/* MouseOut state (default) - create and position a space for the larger images and hide them*/
#col-1 a img.hid { width: 700px; height:470px;
position: absolute; top: 10px; left: 282px;
text-align:center;
visibility: hidden;
}

/* MouseOver state (hover)- reveal larger picture */
#col-1 a:hover { background: black; }
#col-1 a:hover img.hid { visibility:visible; }

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Learning Css

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap