Solved

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

Posted on 2014-03-13
2
1,016 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
ID: 39926661
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
ID: 39927359
Thank you so much!  That did the trick.

- yg
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

773 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