When I hover over a grade, the normal text is covered by the box (it overlaps the text), but the other grades aren't. I suppose that is happening because the grades have "position: relative"
You can see the problem here, and my CSS file here
| |
|
Welcome to AstaHost - Dear Guest | |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted 29 November 2006 - 07:22 PM
Posted 29 November 2006 - 10:02 PM
Basically I use IE 6 and Firefox 1.5x, when i view it with IE nothing happens as i said and right now i just view it with FF and works fine.What browser are you using? I am sure the pop-up box works in Firefox and customizing it for other browsers will be sorted out later on.
Posted 29 November 2006 - 10:11 PM
Right. Well, the problem here is not related to the position but rather to the z-index.When I hover over a grade, the normal text is covered by the box (it overlaps the text), but the other grades aren't. I suppose that is happening because the grades have "position: relative"
And that's what I need help about. How to alter my CSS so the box overlaps everything?
Edited by TaMeR, 29 November 2006 - 10:17 PM.
Posted 29 November 2006 - 10:26 PM
Posted 29 November 2006 - 10:35 PM
html {
height: 100%;
}
body {
background: #ffffff url(images/bg.png) repeat-x top left;
margin: 0;
padding: 0;
font-family: Verdana, Tahoma, Arial, "sans serif";
font-size: 12px;
text-align: center;
}
a {
text-decoration: none;
color: #2780f9;
}
a:hover {
color: #000000;
}
td {
font-size: 12px;
}
#wrapper {
margin: 30px auto 0px auto;
background-color: #ffffff;
width: 788px;
border: 1px solid #ffffff;
text-align: left;
}
#header {
width: 100%;
background: #8d9299 url(images/logo.jpg) no-repeat top left;
height: 100px;
}
#ocene a {
text-decoration: none;
margin-left: 5px;
margin-right: 5px;
color: #0000ff;
font-weight: bold;
position: relative;
}
#ocene a:hover {
border: none;
}
#ocene a span {
display: none;
}
#ocene a.imp {
color: #ff0000;
z-index: 1;
}
#ocene a:hover span {
display: block;
background-color: #e5e5e5;
border: 1px solid #000000;
width: 300px;
position: absolute;
top: 30px;
left: 15px;
padding: 2px;
font-weight: normal;
color: #000000;
z-index: 2;
}
#ocene td {
line-height: 20px;
text-align: center;
padding: 2px;
width: 125px;
}
#ocene #top1 {
border-right: 1px solid #dedede;
border-bottom: 1px solid #dedede;
}
#ocene #top2 {
border-top: 1px solid #dedede;
border-right: 1px solid #dedede;
border-bottom: 1px solid #dedede;
background-color: #f0f0f0;
height: 30px;
line-height: 30px;
}
#ocene #top3 {
border-top: 1px solid #dedede;
border-right: 1px solid #dedede;
border-bottom: 1px solid #dedede;
background-color: #f0f0f0;
height: 30px;
line-height: 30px;
}
#ocene .subject {
border-right: 1px solid #dedede;
border-left: 1px solid #dedede;
border-bottom: 1px solid #dedede;
background-color: #f0f0f0;
}
#ocene .empty {
border-right: 1px solid #dedede;
border-bottom: 1px solid #dedede;
}
#ocene .avg {
border-bottom: 1px solid #dedede;
border-right: 1px solid #dedede;
}
#ocene .avgempty {
border-bottom: 1px solid #dedede;
}
#ocene .main {
border-right: 1px solid #dedede;
border-bottom: 1px solid #dedede;
}
#ocene .allavg {
border-right: 1px solid #dedede;
border-left: 1px solid #dedede;
border-bottom: 1px solid #dedede;
width: 400px;
}
input {
background-color: #ffffff;
border: 1px solid #000000;
padding: 1px;
}
#sidebar {
width: 200px;
}
.module {
width: 200px;
background: #ffffff url(images/module.png) repeat-x top left;
margin-bottom: 20px;
font-size: 12px;
}
.module h3 {
height: 40px;
line-height: 40px;
padding: 0 10px 0 10px;
margin: 0;
font-size: 20px;
text-transform: lowercase;
font-weight: normal;
border-bottom: 1px solid #ffffff;
}
.module a {
display: block;
width: 180px !important;
width: 200px;
margin: 0 auto 0 auto;
padding: 0 10px 0 10px;
line-height: 22px;
text-decoration: none;
color: #000000;
border-bottom: 1px solid #ffffff;
}
.module a:hover {
color: #ffffff;
background-color: #8d9299;
}
#active {
color: #ffffff;
background-color: #8d9299;
}
#footer {
height: 30px;
text-align: center;
line-height: 30px;
background-color: #8d9299;
color: #46494d;
}
#footer a {
color: #46494d;
}
#footer a:hover {
color: #ffffff;
}Edited by TaMeR, 29 November 2006 - 10:42 PM.
Posted 29 November 2006 - 10:46 PM
Posted 30 November 2006 - 04:30 PM
#ocene a:hover span {
display: block;
background-color: #e5e5e5;
................
z-index: 100;
}Posted 30 November 2006 - 11:09 PM
Posted 01 December 2006 - 12:54 PM
Posted 01 December 2006 - 07:00 PM
Edited by jlhaslip, 30 August 2007 - 03:53 AM.
Posted 01 December 2006 - 07:13 PM
Oddly in Opera 9, you have to click the link to see the first line.Does this page help you at all?
http://jlhaslip.trap...mples/tooltips/
Posted 01 December 2006 - 07:38 PM
Does this page help you at all?
http://jlhaslip.trap...mples/tooltips/
Posted 01 December 2006 - 07:53 PM
Javascript can be used to accomplish this, I know because I've done it before. But it is extremely messy, and ugly. If we can't think of anything else, I'll take a crack at coming up with some JS code for you. All of my samples use Javascript's UOOP so they probably aren't what's best suited and I'd need to convert.What about JavaScript? I'm not a JS fan, but if it can solve this problem, I'll have to use it sad.gif
Posted 01 December 2006 - 08:20 PM
Posted 01 December 2006 - 09:47 PM
Also have you thought about what mac Ie 5 would look like and netscape as well?
what about the transparency effect in IE7 you have on the 2+? All them except for the last one are transparent.
Posted 02 December 2006 - 10:34 PM
0 members, 0 guests, 0 anonymous users