Irish SEO,  Marketing & Webmaster Discussion

 
Make money - save the planet!

ie6 css :hover display:block; issue

This is a discussion on ie6 css :hover display:block; issue within the Coding Help forums, part of the Webmaster Help category; hey guys, i've built an image gallery and i'm using the hoverbox css technique if any of you know it ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 17-09-2007, 09:05 PM
matt-dublin's Avatar
Coder
 
Join Date: May 2007
Posts: 47
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
matt-dublin will become famous soon enough
Default ie6 css :hover display:block; issue

hey guys,

i've built an image gallery and i'm using the hoverbox css technique if any of you know it

here's mine : Photo Galleries - Dun Laighaire Marina - Power Boats - Yachts - Berths

if you mouseover the images they should expand..

something along the lines of

.class {display:none;}
.class:hover {display:block}

works fine in opera, firefox, ie7 etc but in ie6 the images don't revert to their normal sizes.

any help is much appreciated.

ps here's the hoverbox css
PHP Code:
.hoverbox
{
 
cursor: default;
 list-
stylenone;
 
padding0px;
 
margin0px;
}
.
hoverbox a
{
 
cursorhand;
}
.
hoverbox a .preview
{
 
displaynone;
}
.
hoverbox a:hover .preview
{
 
displayblock;
 
positionabsolute;
 
top: -33px;
 
left: -25px;
 
z-index1;
}
.
hoverbox img
{
 
background#ffffff;
 
border-color#aaa #ccc #ddd #bbb;
 
border-stylesolid;
 
border-width1px;
 
colorinherit;
 
padding2px;
 
vertical-aligntop;
 
width100px;
 
height67px;
}
.
hoverbox li
{
 
displayinline;
 
floatleft;
 
margin1px;
 
padding-left20px;
 
positionrelative;
 
width112px;
 
height94px;
 
text-aligncenter;
 
line-height18px;
}
.
hoverbox .preview
{
 
border-color#3E96FF;
 
width192px;
 
height128px;

and here's my main css
PHP Code:
/* CSS Document */
body{
 
top0px;
 
background-imageurl(../images/waterhead.gif);
 
background-repeatrepeat-x;
 
background-position0px 0px;
 
background-color#00749B;
 
font-familyarial;
 
color:#FFFFFF;
}
{color:#FFFFFF;}
h1 {font-size:13px;
font-weight:bold;
margin2px;
margin-left0px;
}
.
link{
color:#ffffff;
text-decoration:none;
}
.
link:hover{
color:#50A4D1;
text-decoration:none;
}
.
adminlink{
color:#ffffff;
text-decoration:none;
}
.
adminlink:hover{
color:#000066;
text-decoration:none;
}
h2 {font-size:12px;
font-weight:bold;
margin2px;
margin-left0px;
}

#header {
position:absolute;
 
margin-left: -400px;
 
left50%;
 
padding0px;
 
height85px;
 
width800px;
 
top20px;
}
.
toplink {
 list-
style-type:none;
 
font-family:arial;
 
font-size10px;
 
text-decoration:none;
 
color:#ffffff;
}
.
toplink:hover {
 list-
style-type:none;
 
font-size10px;
 
text-decoration:none;
 
color:#6AB5FF;
}
#topnav {
 
width680px;
 
margin-left: -305px;
 
positionabsolute;
 
left50%;
 
height10px;
 
top:65px;
 
text-align:right;
}
#topnav li {
 
list-style-type:none;
 list-
style:none;
 
margin0;
 
display:inline;
 
padding-left15px;
 }
#maincontentborder {
position:absolute;
top120px;
background#2383a3;
width840px;
margin-left: -420px;
left:50%;
height500px;
background-image:url(../images/botgrad.gif);
 
background-repeatrepeat-x;
 
background-positionbottom;
}
#outertopleft {
 
font-size:4px;
 
float:left;
 
width10px;
 
height10px;
 
background-color:#00749B;
 
background-image:url(../images/tl.gif);
 
background-repeat:no-repeat;
 }
 
#outertopright {
 
float:right;
 
font-size:4px;
 
width10px;
 
height10px;
 
top0px;
 
margin-right0px;
 
padding-right:0px
 
background:url(../images/tr.gif#00749B no-repeat;
 
}
#innertl {
 
float:left;
 
width10px;
 
height15px;
 
top0px;
 
background-color:#2383a3;
 
padding0px;
 
overflow:hidden;
 
background-image:url(../images/tlinner.gif);
 
background-repeat:no-repeat;
}
#innertr {
 
position:absolute;
 
width15px;
 
height15px;
 
top0px;
 
left790px;
 
visibilityvisible;
 
background-color:#2383a3;
 
background-image:url(../images/trinner.gif);
 
background-repeat:no-repeat;
  }

#mainnav {
margin-top:10px;
margin-left:30px;
width:auto;
}
#mainnav ul {
display:inline;
list-
style:none;
list-
style-type:none;
padding:0px;
margin-left:0px;
margin-top:0px;
}
#mainnav li {
display:inline;
list-
style:none;
list-
style-type:none;
padding0px;
}
.
mainnavlinksplit {
font-size:10px;
color:#50A4D1;
padding-left15px;
padding-right15px;
bottom4px;
}
.
mainnavlink{
font-family:Arial;
font-size:14px;
color:#ffffff;
text-decorationnone;
list-
style-type:none;
display:inline;
font-weight:bold;
}
.
mainnavlink:hover{
font-family:Arial;
font-size:14px;
font-weight:bold;
color:#50A4D1;
text-decorationnone;
list-
style-type:none;
display:inline;
}
#maincontent {
position:absolute;
top20px;
background#00749B;
width800px;
margin-left: -400px;
left:50%;
height142%;
margin-bottom:0px
}
#content1 {
heightauto;
}
.
content2 {
float:left;
position:relative;
margin-top:10px;
width450px;
heightauto;
background-color:#2383a3;
}
#sidecontent1 {
heightauto;
background-color:#2383a3;
}
.
sidecontent2 {
margin-top:10px;
heightauto;
background-color:#2383a3;
}
.
conttl {
 
width10px;
 
height10px;
 
font-size4px;
 
margin-top0px;
 
floatleft;
 
background-color:#00749B;
 
padding0px;
 
background-image:url(../images/tl.gif);
 
background-repeat:no-repeat;
}
.
contbl {
 
width10px;
 
height10px;
 
bottom0px;
 
font-size4px;
 
left0px;
 
background-color:#00749B;
 
padding0px;
 
background-image:url(../images/bl.gif);
 
background-repeat:no-repeat;
}
.
conttr {
 
width10px;
 
height10px;
 
font-size4px;
 
margin-top0px;
 
floatright;
 
background-color:#00749B;
 
padding0px;
 
background-image:url(../images/tr.gif);
 
background-repeat:no-repeat;
}
.
contbr {
 
width10px;
 
height10px;
 
float:right;
 
margin-top: -10px;
  
font-size4px;
  
background-color:#00749B;
 
padding0px;
 
background-image:url(../images/br.gif);
 
background-repeat:no-repeat;
}
.
contenttext {
position:relative;
padding10px;
font-size12px;
text-align:justify;
}
#leftcontents {
float:left;
margin-top10px;
margin-left20px;
width450px;
height:auto;
display:inline;}
#rightcontents {
float:left
width290px;
display:inline;
height:auto;
padding-left:20px;
padding-top:10px;
}
#whatnetworks {
clear:both;
font-size:9px;
padding-top:10px;
}
.
smalltext font-size:10px;}
#centrecontents {
float:left
width820px;
display:inline;
height:auto;
padding-left:20px;
padding-top:10px;
}
.
centrecontent {
margin-top:10px;
width760px;
heightauto;
background-color:#2383a3;

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, displayblock, hover, ie6, issue

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
css issue (or more accessibility issue maybe) davidbehan Webmaster Discussion 3 29-04-2007 02:39 PM
CSS issue ph3n0m Coding Help 11 31-01-2007 12:05 AM
CSS Issue for Wordpress Menu.. Cormac Coding Help 4 03-12-2006 03:12 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 05:15 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0