Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-08-2012, 12:17 AM   PM User | #1
dazd
Regular Coder

 
Join Date: Apr 2011
Posts: 139
Thanks: 2
Thanked 1 Time in 1 Post
dazd is an unknown quantity at this point
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
dazd is offline   Reply With Quote
Old 09-08-2012, 01:08 AM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
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 01:12 AM..
Sammy12 is offline   Reply With Quote
Old 09-08-2012, 05:16 AM   PM User | #3
dazd
Regular Coder

 
Join Date: Apr 2011
Posts: 139
Thanks: 2
Thanked 1 Time in 1 Post
dazd is an unknown quantity at this point
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;
}
dazd is offline   Reply With Quote
Old 09-08-2012, 06:06 AM   PM User | #4
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
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 06:09 AM..
Sammy12 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 12:54 PM.


Advertisement
Log in to turn off these ads.