1. tinwistle
  2. Commercial Templates
  3. Thursday, 14 November 2013
  4.  Subscribe via email
Is it possible to push the logo (image) further to the left but only in mobile portrait mode?

Logo in question is at http://WebmasterNotRequired.com

When viewed in portrait the right side of the logo disappears.

When I shrink the browser widow on my desktop computer it pushes it all the way to the left?

Thank you
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

You can try adding the following to the Responsive Custom CSS fields in the 'Responsive Options' tab of your templates parameters, editing the top and left of each to suit your logo..


h1.logo a {
top: 0px;
left: 0px
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for your quick response.

I tried your solution but it failed to work, even after noticing the missing semi-colon at the end of left: 0px

But it did get me thinking of a possible different approach, believe my logo was being cropped somehow. Maybe larger than the maximum area allotted to it. So I made a smaller logo and tried the following in the Responsive CSS (this is a great feature, BTW).

h1.logo a {
display:block;
position:relative;
z-index:0;
width:100%;
background: url(../images/logosmall.png) 0 0 no-repeat; z-index:10;
}

At first it didn't work either, I tried it originally in phone portrait. Then in tablet portrait thinking that maybe my larger smart phone (Samsung AtivS Windows 8). I was just about to give up when I added the CSS style to the phone landscape mode.

And viola it worked .

Thanks for your help in pointing me to the solution.

Fred
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Nice work Fred and thank you for posting your solution!

The following article might interest you regarding logo sizes across different screen sizes.. http://www.joomla51.com/tutorials/item/re-sizing-your-logo-for-smaller-screen-devices

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Turns out you must use absolute paths as the relative one I used above does not display on the sub pages.

I also tried the info at the other link you provided.

This works fine in the Custom CSS

@media only screen and ( max-width: 767px ) {
h1.logo a {
display:block;
position:relative;
z-index:0;
width:100%;
background: url(http://webmasternotrequired.com/images/logosmall.png) 0 0 no-repeat; z-index:10;
}}

@media only screen and ( max-width: 440px ) {
h1.logo a {
display:block;
position:relative;
z-index:0;
width:100%;
background: url(http://webmasternotrequired.com/images/logosmall.png) 0 0 no-repeat; z-index:10;
}}

Fred
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok