Community Forums › Forums › Archived Forums › Design Tips and Tricks › Enterprise Pro – Mobile Header (Phone)
Tagged: Enterprise Pro, header, mobile responsive
- This topic has 6 replies, 3 voices, and was last updated 9 years, 4 months ago by
paulag01.
-
AuthorPosts
-
November 4, 2015 at 9:18 am #170141
paulag01
MemberHi there,
I've followed advice in a previous thread on Enterprise Pro Mobile header which is working fine for tablets... phone I am still running into an issue where the header image gets made really tiny (vs filling up the space).
You can see the site here: http://navaxxes.wwwss20.a2hosted.com/
I have made changes to the min-height of
.header-image .site-title a
.site-headerBut once we get to small (phone portrait and to a lesser extent phone landscape) there is a tiny header image and big white space.
What am I missing?
http://navaxxes.wwwss20.a2hosted.com/November 4, 2015 at 5:26 pm #170184Porter
ParticipantI found two culprits:
You're setting a padding here:
@media only screen and (max-width: 1023px) .site-header .wrap { padding: 20px 5%; }
The other is that you have a minimum-height property that's throwing things off. I'm not sure of an ideal route to fix the current setup, but changing it to 60px for this view seemed to work much better than the current 100px.
@media only screen and (max-width: 568px) .header-image .site-title a { min-height: 100px; }
November 5, 2015 at 7:36 am #170207paulag01
MemberThank you Porter. That seems to help (a little). I wish the header image rendered larger (seems the theme renders it small) but so it is for now.
I find it so frustrating because Google Developer Tools doesn't match what my physical device does rendering this whole mobile testing a crapshoot (for me). I swear I have to be missing something!
I appreciate you taking time to help. If you have any mobile testing tools that you love I'm open to suggestions (always wanting to learn how to fish, so to speak).
November 5, 2015 at 9:19 am #170222Porter
ParticipantI personally just re-size the browser - it's not ideal, but it works. Simply dragging the window to be as small as it can (width) generally reflects smaller phones, and making it a bit bigger moves up in devices (you'll see the media queries kick in and adjust the layout as you stretch the window size).
I just spent a good 20 minutes digging around, and I just don't get what's causing the image to render at 43.2px. If you remove all of the min-height, or anything to do with height, it always goes back to 43.2, setting height-auto, background-size contain, etc, nothing changes it - perplexing.
I'll keep looking into it when I get time, and let me know if you find anything!
November 5, 2015 at 12:47 pm #170249carasmo
ParticipantNovember 5, 2015 at 1:28 pm #170256paulag01
MemberThank you Porter! And I appreciate that you are confirming my sanity here 😉
Appreciate the tip on the browser test. I thought it was just me that couldn't get the developer tool to work the way I would expect it to.
Hope you enjoy a good craft beer on me 🙂
P
November 9, 2015 at 9:39 am #170567paulag01
MemberPorter- if you think you might be able to find a solution that would make header full width on phone without that padding .. let me know. I need to hire someone to solve this already for client launch and my solutions would be too invasive (don't want to break other mobile responsive pieces).
(You can contact me here: http://www.thepaulagcompany.com/contact-paula-g
and let me know estimate/timing and we can discuss via email.)
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.