Advertisement

06.27.2008 at 11:30PM PDT, ID: 23523574
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Hover images not working in IE

Asked by crankymoo in Cascading Style Sheets (CSS), Internet Explorer Web Browser, Extensible HTML (XHTML)

Tags: , ,

Hi,

I am having problems with hoverbox code made purely of CSS, it seems to work ok in safari, opera, firefox on the mac and even safari on a PC but Internet Explorer doesnt like the hover. Please go to URL http://www.sbhc.org.uk and the hover images are on the index page. I attached all the CSS code related to this index page. There is a CSS fix especially for Internet Explorer.

Hope you can help.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
/* andreas00 - an open source xhtml/css website layout by Andreas Viklund  - http://andreasviklund.com/ . Free to use for any purpose as long as the proper credits are given to the original author.
Version: 2.0 (Jan 29, 2007) */
  /* fix for IE<=6's 3-pixel gap bug */
* html #content #contentwide {
height: 1%; /* triggers hasLayout */
position: relative;
left: -3px; /* move the element left to close the gap */
margin-right: -3px; /* add a negative right margin to fill the 3 pixel space left by moving everything left */
}
body {
	color : #3a3a3a;
	margin : 0 auto;
	padding : 0;
	font-family : Verdana, Tahoma, Arial, sans-serif;
	font-size : 74%;
	background-repeat : repeat-x;
	background-position : left top;
	background-color : #2A6EAB;
	background-image: url(img/homepage01.jpg);
}
#wrap {
	color : #303030;
	width : 955px;
	margin-top : 0;
	margin-right : auto;
	margin-bottom : 0;
	margin-left : auto;
	padding-top : 1px;
	padding-right : 5px;
	padding-bottom : 1px;
	padding-left : 5px;
	height : 630px;
	background-image : url(img/spring-banner.jpg);
	background-repeat : no-repeat;
	background-position : center top;
}
#header {
color : #333333;
height : 140px;
padding : 0;
margin-top : 0;
margin-right : 0;
margin-bottom : 0;
}
#header     h1   {
	font-size:1.8em;
	font-weight:400;
	margin:6px 0;
	padding:0;
	letter-spacing: -1px;
	color: #555555;
	vertical-align: middle;
}
#header h1 a, #header h1 a:hover {
font-weight : 400;
padding : 0;
}
#header p {
font-size : 1.1em;
letter-spacing : -1px;
margin : 0 0 20px 15px;
padding : 0 0 0 3px;
}
#leftside {
	float : right;
	width: 220px;
	margin-top: 80px;
}
#leftside ul.avmenu {
	list-style: none;
}
#leftside ul.avmenu li {
	width : 150px;
}
#leftside ul.avmenu li a {
	font-size : 1em;
	font-weight : 700;
	margin-bottom : 5px;
	text-decoration : none;
	background-repeat : no-repeat;
	background-position : center top;
	color : #303030;
	padding-top : 3px;
	padding-bottom : 5px;
	text-align : left;
	background-image : url(img/lozenge.png);
	padding-left : 35px;
	width: 105px;
	display: block;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
	padding-right: 0px;
}
#leftside ul.avmenu li a:hover, #leftside ul.avmenu li a.current {
color : #ffffff;
}
#leftside ul.avmenu ul {
font-size : 0.9em;
margin : 0 0 0 15px;
padding : 0 0 5px 0;
width : 133px;
}
#leftside ul.avmenu ul a {
padding : 3px 1px 3px 5px;
width : 150px;
}
#leftside ul.avmenu ul ul {
font-size : 1em;
width : 120px;
}
#leftside ul.avmenu ul ul a {
width : 108px;
}
#leftside ul.avmenu .nav sub {
font-weight : 400;
}
#leftside h2 {
	font-size : 1.2em;
	font-weight : 700;
	text-align: center;
	line-height: 1.5em;
	margin-bottom: 4px;
	padding: 0px;
}
#leftside p, .announce p {
	font-size : 0.9em;
	text-align: center;
	line-height: 1.5em;
	padding-right: 10px;
	padding-left: 10px;
	margin: 0px;
	color: #666666;
	padding-top: 2px;
}
#navlist
{
	width: 260px;
	float: left;
	margin-top: 40px;
}
#navlist p {
	padding-left: 40px;
	color: #303030;
	line-height: 1.5em;
}
 
#navlist li
{
	line-height: 2em;
	list-style-image: none;
	list-style-type: none;
}
 
#navlist li a {
	text-decoration: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #303030;
	font-size: 1em;
	font-weight: 700;
}
#navlist                ul    ul a        {
	text-decoration: none;
	color: #303030;
	font-size: 1em;
	margin-left: -25px;
	font-weight: 400;
}
#navlist li a:hover {
	text-decoration: none;
	color: #0969c4;
}
.nav {
display : block;
font-size : 1.1em;
font-weight : 700;
margin-bottom : 1px;
padding : 2px 2px 2px 10px;
position : relative;
text-decoration : none;
width : 125px;
}
.nav:hover {
color : #ffffff;
padding : 1px 1px 1px 9px;
}
.sub {
font-size : 0.9em;
margin-left : 20px;
padding : 1px 1px 1px 6px;
width : 105px;
}
.sub:hover {
color : #ffffff;
padding : 0 0 0 5px;
}
#extras {
float : left;
width : 160px;
margin-right : 0;
margin-bottom : 5px;
margin-top : 20px;
padding-top : 0;
padding-right : 0;
padding-bottom : 0;
padding-left : 20px;
}
#extras p, #extras ul {
font-size : 1em;
line-height : 1.5em;
margin : 0 0 1.5em;
padding : 0;
}
#extras li {
list-style : none;
margin : 0 0 6px;
padding : 0;
}
#extras li a {
font-size : 1.1em;
font-weight : 400;
text-decoration : none;
color : #303030;
text-align : left;
line-height : 1.6em;
font-family : Verdana, Arial, Helvetica, sans-serif;
}
#extras li a:hover {
color : #0969c4;
}
#extras h2 {
font-size : 1em;
font-weight : 700;
color : #333333;
line-height : 1.5em;
}
#extras h3 {
font-weight : 700;
font-size : 0.9em;
color : #333333;
line-height : 1.5em;
}
#content {
	line-height : 1.5em;
	text-align : left;
	width: 540px;
	clear: none;
	float: right;
	padding-right: 10px;
}
#content   a      {
	color:#0969C4;
	text-decoration:underline;
}
#contentwide {
	line-height : 1.5em;
	text-align : left;
	margin-top : 0;
	margin-right : 0px;
	margin-bottom : 10px;
	margin-left : 0px;
	padding-right: 30px;
	padding-left: 30px;
	overflow: auto;
	height: 450px;
}
#contentwide a {
	text-decoration: none;
	color: #303030;
}
#contentwide a:hover {
	color: #0969c4;
}
#content  h1, #contentwide  h1 {
	font-size : 1.8em;
	font-weight : 400;
	letter-spacing : -1px;
	padding : 0;
	color : #303030;
	margin-top: 8px;
	margin-right: 0;
	margin-bottom: 16px;
	margin-left: 0;
}
#content  h2, #contentwide  h2 {
	font-size : 1.1em;
	font-weight : 700;
	padding : 0;
	color : #0969c4;
	margin-top: 3px;
	margin-right: 0;
	margin-bottom: 3px;
	margin-left: 0;
}
#content img, #contentwide img {
display : inline;
float : left;
margin-right : 5px;
margin-bottom : 5px;
}
#content ul, #content ol, #contentwide ul, #contentwide ol {
margin : 0 0 16px 20px;
padding : 0;
}
#content ul ul, #content ol ol, #contentwide ul ul, #contentwide ol ol {
margin : 2px 0 2px 20px;
}
#content li, #contentwide li {
margin : 0 0 2px 10px;
padding : 0 0 0 4px;
}
#addressInfo {
	text-align: left;
	padding-left: 20px;
}
a img {
border : 0;
}
p {
margin : 0 0 16px;
}
caption {
font-size : 1.5em;
font-weight : 400;
margin : 0;
padding : 6px 0 8px;
text-align : left;
}
input {
width : 200px;
}
textarea {
width : 400px;
}
.announce h2 {
	padding : 0;
	font-size : 1.1em;
}
.announce a {
	padding : 0;
	color: #303030;
	text-decoration: none;
}
.textright {
margin : -10px 0 4px;
text-align : left;
}
.center {
text-align : center;
}
.small {
font-size : 0.8em;
}
.large {
font-size : 1.3em;
}
.blue {
color : #0969c4;
}
.button {
background : #f4f4f4 url(img/menubg.gif) repeat-x bottom left;
border-bottom : 1px solid #d8d8d8;
border-left : 4px solid #ccc;
border-right : 1px solid #d8d8d8;
border-top : 1px solid #d8d8d8;
color : #505050;
font-weight : 700;
margin : 0 0 15px;
padding : 7px 7px 7px 11px;
width : 120px;
}
.left {
float : left;
margin : 10px 10px 5px 0;
}
.right {
float : right;
margin : 10px 0 5px 10px;
}
/* =Hoverbox Code
----------------------------------------------------------------------*/
 
.hoverbox
{
	cursor: default;
	list-style: none;
	margin-left: 0px;
}
 
.hoverbox a
{
	cursor: default;
}
 
.hoverbox a .preview
{
	display: none;
}
 
.hoverbox a:hover .preview
{
	display: block;
	position: absolute;
	top: -33px;
	left: -35px;
	z-index: 1;
}
 
.hoverbox img
{
	background: #fff;
	border-color: #aaa #ccc #ddd #bbb;
	border-style: solid;
	border-width: 1px;
	color: inherit;
	padding: 2px;
	vertical-align: top;
	width: 100px;
	height: 110px;
}
 
.hoverbox li
{
	background: #eee;
	border-color: #ddd #bbb #aaa #ccc;
	border-style: solid;
	border-width: 1px;
	color: inherit;
	display: inline;
	float: left;
	margin: 3px;
	padding: 5px;
	position: relative;
}
 
.hoverbox .preview
{
	border-color: #999999;
	width: 200px;
	height: 243px;
}
/* =Internet Explorer Fixes
----------------------------------------------------------------------*/
 
.hoverbox a
{
	position: relative;
}
 
.hoverbox a:hover
{
	display: block;
	font-size: 100%;
	z-index: 1;
}
 
.hoverbox a:hover .preview
{
	top: -38px;
	left: -40px;
}
 
.hoverbox li
{
	position: static;
}
[+][-]06.28.2008 at 12:14AM PDT, ID: 21889705

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.28.2008 at 12:58AM PDT, ID: 21889806

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.28.2008 at 01:12AM PDT, ID: 21889839

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), Internet Explorer Web Browser, Extensible HTML (XHTML)
Tags: CSS, HTML, internet explorer, http://www.sbhc.org.uk
Sign Up Now!
Solution Provided By: agriesser
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628