I'm playing around with the ArsWare design to learn some more CSS design and to generally improve the layout. I've stumbled onto some problems I just can't seem to get around.
I'm trying to create a CSS roll over for the software links, so people get a short description of the application when they hover their mouse over the it. I've managed to get it working to some extent, that is, I can display the popup correctly. The problem is the positioning of it. I can only make it work when I use absolute positioning.
The page I'm working on is here (hover over the CoolMon link), this is the CSS code I'm using to display it:
In this case, the block breaks out of its parent element, and is correctly overlayed over the other windows (using a z-index).
The problem is that using absolute positioning is unhandy in a long list of links, because the popup is always displayed in the same place. So I want to have it offset just to the right of the link it is associated with. To do this, I used this code:
But now the element stays part of the parent element, pushing the border of the left column out of the way, like you can see
here.
Is there any way I can get around this witout having to resort to some Java script?
BTW, this doesn't work in Opera, but as it doesn't break anything I can live with that.
I'm trying to create a CSS roll over for the software links, so people get a short description of the application when they hover their mouse over the it. I've managed to get it working to some extent, that is, I can display the popup correctly. The problem is the positioning of it. I can only make it work when I use absolute positioning.
The page I'm working on is here (hover over the CoolMon link), this is the CSS code I'm using to display it:
code:<HR>Code:DIV#bodyLeftColumn a span { display: none; } DIV#bodyLeftColumn a:hover span{ display: block; position: absolute; top: 35px; left: 100px; width: 125px; padding: 5px; margin: 10px; color: #000; background-color: #f4f4f4; border: 1px solid #ff9400; font: 10px Verdana, Arial, Helvetica, sans-serif; text-decoration: none; text-align: center; }
In this case, the block breaks out of its parent element, and is correctly overlayed over the other windows (using a z-index).
The problem is that using absolute positioning is unhandy in a long list of links, because the popup is always displayed in the same place. So I want to have it offset just to the right of the link it is associated with. To do this, I used this code:
code:<HR>Code:DIV#bodyLeftColumn a span { display: none; } DIV#bodyLeftColumn a:hover span{ display: block; position: relative; top: 0px; left: 100px; width: 125px; padding: 5px; margin: 10px; color: #000; background-color: #f4f4f4; border: 1px solid #ff9400; font: 10px Verdana, Arial, Helvetica, sans-serif; text-decoration: none; text-align: center; }
But now the element stays part of the parent element, pushing the border of the left column out of the way, like you can see
here.
Is there any way I can get around this witout having to resort to some Java script?
BTW, this doesn't work in Opera, but as it doesn't break anything I can live with that.