1. salinger
  2. Sherlock Holmes
  3. Commercial Templates
  4. Tuesday, 30 September 2014
  5.  Subscribe via email
Hi,I like to have a smaller logo version on the phone portrait size. I found several postings and put this in the responsive phone portrait custom css:

/*This section scales the logo container to 310px on screens less than 440px to solve the horizontal scrolling problem */
@media only screen and ( max-width: 440px ) {
.logo_container, h1.logo, h1.logo a, #logo {
width: 310px !important;
}}

and this:

.logo span {
background-image: url("http://www.magenta.or.at/images/slogan-klein.png";);
background-repeat: no-repeat;
height: 76px;
width: 310px;
}
}

With the first version there was no change at all. with the second version the big logo disappeared but the small one didn't show up. Of course I checked the the path to the picture on the server, it is correct.

Do you have in idea? thank you, Marion
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Marion

Could you try adding the 'http' to your URL.

Like so....


@media only screen and ( max-width: 440px ) {
.logo span {
background-image: url("http://www.magenta.or.at/images/slogan-klein.png");
background-repeat: no-repeat;
height: 76px;
width: 310px;
}
}


Failing that could you try simply adding the following instead...


@media only screen and (max-width: 767px) {
.logo img {
max-width: 100% !important;
}
}


CiarĂ¡n
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Ciaran, the 2nd version works perfectly!

Kind regards, Marion
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • 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