|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Coding for Jesus
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2003
Location: Tennessee
Posts: 609
|
Force div to stay inside screen boundaries
I have a hidden div that appears on hover and appears to the right and bottom of the mouse pointer on hover of a thumbnail. The problem is that at times some of it overflows the screen area when the mouse is too close the edge. Can I use a CSS setting to solve that problem?
Here is the page: http://www.kgazebos.com/wooden-gazebos.php |
|
|
|
|
|
#2 |
|
CSS Advisor
![]() ![]() ![]() ![]() Join Date: Jan 2003
Location: Hampshire UK
Posts: 27,436
|
Hi,
No thats a javascript problem. Try altering this parameter: Code:
function showtrail(imagename,title,description,ratingaverage,ratingnumber,showthumb,height){
if (height > 700){
currentimageheight = height;
}
|
|
|
|
|
|
#3 |
|
Coding for Jesus
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2003
Location: Tennessee
Posts: 609
|
Hey, you have the solution! It works now and I am so happy! Thanks!
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 17:37.












Hybrid Mode
