Tagged: image, mobile, responsive
-
AuthorPosts
-
April 7, 2014 at 4:30 pm #248265
Hi,
I am using a logo which is 340×88 in the enfold theme, and it gets cut off in the mobile view (iPhone). Is there some CSS I can use to scale this properly in mobile view, while not having to reduce the size of the logo in the desktop view ? A photo showing desktop and iPhone screenshots is below:
The test site is here.
Thanks,
Colin Goldberg
Everbeta LLCApril 7, 2014 at 4:34 pm #248267Hey colingoldberg!
Please add following code to Quick CSS in Enfold theme options under Styling tab
@media only screen and (max-width: 480px) { .responsive .logo a, .responsive .logo img { max-width: 80%; height: auto !important; }}
Regards,
YigitApril 7, 2014 at 4:43 pm #248273Awesome, thanks for the quick response Yigit! That fixed it
(I added a little padding to the top to vertically center the logo for mobile..)Another quick question… I have the slider control arrows hidden in the slideshow (desktop view), but they still show at the bottom of the page on the mobile view – can I hide them there as well (as well as the text indicating ‘slide 1’) ?
Thanks!
ColinApril 7, 2014 at 9:46 pm #248487Hi!
Please add following code to Quick CSS as well
@media only screen and (max-width: 767px) { #top .avia-smallarrow-slider .avia-slideshow-arrows, .avia-content-slider .slide-entry-title { display: none; }}
Cheers!
YigitApril 17, 2014 at 12:59 am #252345Hi Yigit,
A few more responsive-related questions :
1) in portrait view on my iPad, the mobile navigation kicks in and works great, but in landscape view, the logo cuts off – is there a way I can specify a percentage size for this size as well to prevent the logo for getting clipped ? I wasn’t sure of the exact @media query I should use.
Image:
2) I also noticed that when the browser on a desktop is below a certain width, the navigation “jumps” to the left, which brings it right to the edge of the logo as well:
Is there a way to define scaling for this size as well to make the logo a bit smaller in this view ? If the browser is opened wider, there is plenty of room:
Site URL:
http://everbeta.com/lexobgynnyc/3) does the additional CSS need to be added to the Quick CSS box in a certain order to maintain the current scaling for phone view ?
Current CSS for logo scaling on phone (from your advice above in this thread):
@media only screen and (max-width: 480px) {
.responsive .logo a, .responsive .logo img {
max-width: 80%;padding-top:10px;
height: auto !important; }}Thanks so much for all of your assistance !
ColinApril 17, 2014 at 12:52 pm #252646 -
AuthorPosts
- You must be logged in to reply to this topic.