Author Topic: Saratoga Template Enlarge on hover question  (Read 774 times)

0 Members and 1 Guest are viewing this topic.

Offline jaltman

  • Contributor
  • ***
  • Posts: 118
    • Stanley Rapids Weather
Saratoga Template Enlarge on hover question
« on: June 01, 2025, 06:35:23 AM »
I have added enlarge on hover to the images on my home page on my site.  It works fine except that the XML portion of the Navigation menu stays on top of the enlarged image. Of course we want the flyout portions of the Navigation menu to stay on top and they do.  I added class="enlarge on hover" to the img src line in USA-regional-maps-inc.php and
Quote
   .enlarge-on-hover {
      transition: transform 0.3s ease; /* Optional: for a smooth transition */
    }
    .enlarge-on-hover:hover {
      transform: scale(1.7); /* Scale to 170% of original size */
    }
to weather-screen-blue-narrow.css.
 [ You are not allowed to view attachments ]
The enlarged image does cover up the other portions of the page as it should.
How do i make the enlarged image stay on top of the Nav menu?
Thanks!

Jim
« Last Edit: June 01, 2025, 06:42:33 AM by jaltman »

Offline jaltman

  • Contributor
  • ***
  • Posts: 118
    • Stanley Rapids Weather
Re: Saratoga Template Enlarge on hover question
« Reply #1 on: June 02, 2025, 11:56:20 AM »
I did not figure out how to stay on top, but i figured out how to move them to avoid the problem. Added a fancy rotation to the enlargement as well.

Jim

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9722
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Template Enlarge on hover question
« Reply #2 on: June 02, 2025, 04:36:22 PM »
Try
Quote
.enlarge-on-hover:hover {
      transform: scale(1.7); /* Scale to 170% of original size */
      z-index: 9999 !important;
    }
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jaltman

  • Contributor
  • ***
  • Posts: 118
    • Stanley Rapids Weather
Re: Saratoga Template Enlarge on hover question
« Reply #3 on: June 02, 2025, 05:44:24 PM »
AH! Thank you.  I had read about z-index but the error of my ways was that I thought a lower number made it higher in ranking. 

I appreciate your time and knowledge.

Jim

 

anything