Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > CSS
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Apr 24, 2006, 10:40   #1
LavernGingerich
Coding for Jesus
 
LavernGingerich's Avatar
 
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
LavernGingerich is offline   Reply With Quote
Old Apr 24, 2006, 11:20   #2
Paul O'B
CSS Advisor
silver trophybronze trophy
SitePoint Award Recipient
 
Paul O'B's Avatar
 
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;
 }
It was zero.
Paul O'B is offline   Reply With Quote
Old Apr 24, 2006, 12:16   #3
LavernGingerich
Coding for Jesus
 
LavernGingerich's Avatar
 
Join Date: Jul 2003
Location: Tennessee
Posts: 609
Hey, you have the solution! It works now and I am so happy! Thanks!
LavernGingerich is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

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
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 17:37.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved