Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2011
    Posts
    144
    Thanks
    3
    Thanked 1 Time in 1 Post

    One high one low, huuuuh?

    Hey all,

    Quick question.

    Please view both links below examine the first link how the FAQ box is where it should be then look at it in the other link, it's high to high and should be where it is in the support/contact-us.html page.
    How do I fix this?

    1- http://pvtests.com/index.php/support/contact-us.html - both should look like this page does

    2- http://pvtests.com/index.php/contact-us

    Thanks,
    Jon

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Add anywhere in your CSS:

    Code:
    .headermenu {
         float: none !important;
         overflow: hidden;
    }
    When you float something, you need to clear it. If you don't clear it, the parent (.headermenu) will have a height of 0.
    Therefore to everything underneath it, it is not there, so it is pushed up.

    Code:
    /* Line 1663 of styles.css */
    .headermenu {
        width: 100%;
        float: left;
    }
    /* Line 623 of styles.css */
    .nav-container {
        float: left;
        width: 100%;
        padding-top: 10px;
        border-bottom: 1px solid #EFEFEF;
    }
    /* Line 1668 of styles.css */
    .headermenu ul {
        list-style: none;
        width: 100%;
        float: left;
    }
    Last edited by Sammy12; 09-08-2012 at 02:12 AM.

  • #3
    Regular Coder
    Join Date
    Apr 2011
    Posts
    144
    Thanks
    3
    Thanked 1 Time in 1 Post
    Unfortunately if I add

    Code:
    float: none;
    overflow: hidden;
    my submenus don't appear anymore. If you can, try it. Inspect the headermenu element and add those styles and then try to hover over "Support" it should be a submenu you can see the shadow that pops up but the menu doesn't pop up.

    Any ideas?

    Thanks for the help!

    Quote Originally Posted by Sammy12 View Post
    Add anywhere in your CSS:

    Code:
    .headermenu {
         float: none !important;
         overflow: hidden;
    }
    When you float something, you need to clear it. If you don't clear it, the parent (.headermenu) will have a height of 0.
    Therefore to everything underneath it, it is not there, so it is pushed up.

    Code:
    /* Line 1663 of styles.css */
    .headermenu {
        width: 100%;
        float: left;
    }
    /* Line 623 of styles.css */
    .nav-container {
        float: left;
        width: 100%;
        padding-top: 10px;
        border-bottom: 1px solid #EFEFEF;
    }
    /* Line 1668 of styles.css */
    .headermenu ul {
        list-style: none;
        width: 100%;
        float: left;
    }

  • #4
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Add this instead of my previous post:

    Code:
    .headermenu,
    .nav-container,
    #nav {
         float: none !important;
    }
    The only difference between the two sites is that .nav-container and #nav have float: left; on http://pvtests.com/index.php/contact-us.

    I added the .headermenu in the code above since it shouldn't have a float anyway.
    Last edited by Sammy12; 09-08-2012 at 07:09 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •