Solved

Need help fixing responsive CSS so mobile navigation menu pushes down content instead of overlapping it

Posted on 2014-03-13
2
977 Views
Last Modified: 2014-03-13
I'm currently working on the following responsive html5 homepage template for a Wordpress site:

http://wordpress.silvermanacampora.com/wp-content/themes/silvermanacampora/index-new.html

The problem I'm having is -- when viewing the site on my iPhone -- and when pressing the "Main Menu" button (which toggles the displaying of a very tall navigation menu) --- the navigation menu is overlapping and hiding all of the content that's underneath it -- instead of pushing it down.  

I suspect that there may be a problem with my having specified a height value to the navigation menu:

ul#hp_navigation { float:none; display:block; width:100%; background-color:#00334E !important; text-align:center; margin:0 0 0 0; border-top:1px solid #fff; height:825px; }	

Open in new window


However -- if I don't specify a height value -- then the Main Menu button doesn't move down to underneath the expanded menu like it's supposed to.

What do I need to do / change in my CSS in order to fix this problem?

Thanks,
- Yvan

P.S. I have all of this working correctly elsewhere on the Wordpress site (ie: http://wordpress.silvermanacampora.com/who/ ) -- but I can't seem to figure out what's different about my new homepage that's resulting in this odd behavior.
0
Comment
Question by:egoselfaxis
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
Comment Utility
in #hp_header {} remove
height: 300px;

In #hp_header {} remove
height: 248px;

In #nav-toggle {} remove
display: none;

Might need some more tweaking.
0
 

Author Closing Comment

by:egoselfaxis
Comment Utility
Thank you so much!  That did the trick.

- yg
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now