Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Dropmenu Problems  (Read 3070 times)

0 Members and 1 Guest are viewing this topic.

St. Anger

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 107
Dropmenu Problems
« on: May 20, 2013, 07:03:20 pm »

I'm having trouble modifying a theme.  I can't seem to get the dropmenu to work correctly.  The menu looks like it should, except if you hover over one of the dropmenu links the menu pushes the page content down, creating a large blank space, instead of opening on top of the content.  Also, the menu is a little too wide and when the link is hovered over it becomes center aligned with space on either side.

My gallery link is: http://www.metcoverart.com/gallery/

I've attached a screenshot showing the problems.  Any help would be highly appreciated.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Dropmenu Problems
« Reply #1 on: May 21, 2013, 07:49:04 pm »

Open style.css and around line 593 change this

Code: [Select]
.dropmenu li ul {
    background: url("images/menu_gfx.png") no-repeat scroll 0 -100px transparent;
    border-bottom: 1px solid #999999;
    display: none;
    font-weight: normal;
    padding: 7px 0 0;
    width: 19.2em;
    z-index: 90;
}

to

Code: [Select]
.dropmenu li ul {
    background: url("images/menu_gfx.png") no-repeat scroll 0 -100px transparent;
    border-bottom: 1px solid #999999;
    display: none;
    font-weight: normal;
    padding: 7px 0 0;
    position: absolute;
    width: 10em;
    z-index: 90;
    overflow: hidden;
}

That will adjust the dropdown to display correctly and reduce the width. Note the 2 lines added and the adjustment to the width from 19.2em to 10em (you can adjust that figure to your needs).
Logged
It is a mistake to think you can solve any major problems just with potatoes.

St. Anger

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 107
Re: Dropmenu Problems
« Reply #2 on: May 21, 2013, 09:21:31 pm »

That fixed it! Thank you very much for your help. :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.