Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Mouse over buttons - Changing text on mouse-overMouse over buttons - Changing text on mouse-over
Previous
 
Next
New Post
1/7/2014 8:57 AM
 

Our development box is running DNN v7.2.0.

 I'm trying to update some static JavaScript buttons we have; using mouse-over pictures.  I'm trying to update this to use CSS, HTML, etc.  I have something working properly, but I can't adjust the line-heights for the mouse-over text.

Anyone have any suggestions to get this working properly?  Thanks..

CSS:
#topbuttons {width:100%;}
    #buttons {width:150px; height:40px; text-align:center; display:table-cell; vertical-align:middle;}

    #homeButton {}
    #homeButton:hover {}

    #civilButton {}
    #topButtons #civilButton span#a {display:inline; }
    #topButtons #civilButton:hover span#a {display:none; }
    #topButtons #civilButton span#b {display:none; line-height:12px;}
    #topButtons #civilButton:hover span#b {display:inline; font-size:10px; line-height:12px;}

    #communicationsButton {}
    #topButtons #communicationsButton span#a {display:inline;}
    #topButtons #communicationsButton:hover span#a {display:none;}
    #topButtons #communicationsButton span#b {display:none;}
    #topButtons #communicationsButton:hover span#b {display:inline; font-size:10px;}
    
    #correctionsButton {}
    #topButtons #correctionsButton span#a {display:inline;}
    #topButtons #correctionsButton:hover span#a {display:none;}
    #topButtons #correctionsButton span#b {display:none;}
    #topButtons #correctionsButton:hover span#b {display:inline; font-size:10px;}
    
    #lawenforcementButton {}
    #topButtons #lawenforcementButton span#a {display:inline;}
    #topButtons #lawenforcementButton:hover span#a {display:none;}
    #topButtons #lawenforcementButton span#b {display:none;}
    #topButtons #lawenforcementButton:hover span#b {display:inline; font-size:6px;}

HTML Code:
<div id="topButtons">
    <div id="buttons">
        <a href="http://&lt;%=PortalSettings.PortalAlias.HTTPAlias%&gt;">
            <div id="homeButton">Home</div>
        </a>
    </div>
    <div id="buttons">
        <a href="http://&lt;%=PortalSettings.PortalAlias.HTTPAlias%&gt;">
            <div id="civilButton"><span id="a">Civil / Records / PIO</span><span id="b">Auxillary &amp; Volunteering / Sheriff's Land Sale/Forms</span></div>
        </a>
    </div>
    <div id="buttons">
        <a href="http://&lt;%=PortalSettings.PortalAlias.HTTPAlias%&gt;">
            <div id="communicationsButton"><span id="a">Communications</span><span id="b">Dispatch / 800 System / 9-1-1 / Radio Traffic</span></div>
        </a>
    </div>
    <div id="buttons">
        <a href="http://&lt;%=PortalSettings.PortalAlias.HTTPAlias%&gt;">
            <div id="correctionsButton"><span id="a">Corrections</span><span id="b">Jail / Chaplain Program / Medical Services / Kitchen</span></div>
        </a>
    </div>
    <div id="buttons">
        <a href="http://&lt;%=PortalSettings.PortalAlias.HTTPAlias%&gt;">
            <div id="lawenforcementButton"><span id="a">Law Enforcement</span><span id="b">Concealed Weapons / D.A.R.E. / Litering Complaints / Detective / Victim &amp; Court Services / K-9</span></div>
        </a>
    </div>
</div>

 
New Post
1/7/2014 9:08 AM
 

If anyone wants to try and use this code, I was able to get this working. UGH.

Added the following Line-height to the actual button (and the other buttons) and it began working fine.

Thanks..

 CSS:

#civilButton {line-height:2px;}

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Mouse over buttons - Changing text on mouse-overMouse over buttons - Changing text on mouse-over


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out