Community Forums › Forums › Archived Forums › Design Tips and Tricks › Responsive Logo Problems
Tagged: header, Logo, logo size, mobile, mobile responsive, Responsive logo
- This topic has 2 replies, 2 voices, and was last updated 11 years ago by
SamBell.
-
AuthorPosts
-
October 24, 2015 at 5:46 pm #168936
SamBell
MemberHi guys,
I am really struggling with my responsive logo - I thought I had it all sorted but it's just not working on some devices and it's not making sense to me!! I would really appreciate some help!!
All the sizing is working perfectly on my mobile phone which is an iPhone 6 but the logo isn't responsive on the iPhone 5 or some other smartphones. This is the code that's making it work on my iPhone 6 but am I missing something that makes it responsive on the 5 and other slightly smaller screens?
@media only screen and (max-width: 450px) { .header-image .site-title > a { background-size: contain !important; min-height: 20px !important; padding: 0 20px; } .header-image .site-title { background-size: contain !important; min-height: 20px !important; padding: 0 20px; } .header-image .title-area { background-size: contain !important; padding: 0 20px; min-height: 20px !important; } }I have two screenshots:
working on the iPhone 6: http://www.branditgirl.com/wp-content/uploads/2015/10/mobileresponsive_1.png
http://www.branditgirl.com
not working on the iPhone 5: http://www.branditgirl.com/wp-content/uploads/2015/10/mobileresponsive_2.pngOctober 24, 2015 at 6:36 pm #168940Porter
ParticipantI'm not 100% sure what it is without seeing your full style.css file, and even then I'd have to toy with the properties quite a bit to get it working. It may be that you're not covering a certain screen size, as it works at full, it works super small, but you rmiddle size is quite messed up, and not scaling properly. Quick hint, you can simulate any device by simply changing the size of your browser window, it's almost the same as being on a device. Also note, that if you have a phone with a screen of 2560x1400 resolution, that isn't the resolution it will use in the media queries where you set your size, as there's a density and you can look up various devices to see where they actually fall, vs their resolution.
Also worth noting, your css shows an error here:
1169x 204px !importantYou're missing a "p" on the 1169.
That being said, try changing that entire section to "contain", as that's what you're doing in your smallest media query, which works. Lots to try, not my exact area of expertise, but hopefully something I said helps!
October 24, 2015 at 6:44 pm #168942SamBell
MemberThe contain on that line worked a treat! Thanks so much for your help!!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.