Responsive Logo with css

December 2012 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Jun 09, 2014 10:04 am
Reply with quote
Report this post
In use a logo type from css.
But this logo is not responsive. So I can only use a very small logo
for mobile/smartphone. If I use a bigger logo, or more space at
the css, the logo is to long for mobile version.
Have any a solution for my problem?
User avatar
Junior Boarder

GK User
Mon Jun 09, 2014 11:29 am
Reply with quote
Report this post
Media queries and override.css:
Code: Select all
@media (max-width: 320px){
{
#gkLogo {width: 100px;}
}
}
@media (max-width: 640px){
{
#gkLogo {width: 200px;}
}
}

Above code sets different width for devices with screen width up to 320px and up to 640px (from 321 to 640). This way you can control any element.

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Mon Jun 09, 2014 5:10 pm
Reply with quote
Report this post
I write the code (copy) at the oeride.css, and enable "CSS override" in template settings - advanced section.
But, there is no function.
User avatar
Junior Boarder

GK User
Tue Jun 10, 2014 7:25 pm
Reply with quote
Report this post
My code was just a sample - could you please post an url to your site?
User avatar
Moderator

GK User
Tue Jun 10, 2014 7:46 pm
Reply with quote
Report this post
The url is http://www.lauenburger-online-zeitung.de/
The logo at the "Logo-Position" is again the old (small) version for Smartphone.
User avatar
Junior Boarder

GK User
Wed Jun 11, 2014 11:12 am
Reply with quote
Report this post
Responsive imege doesn't work well with css logo type. Use image logo type instead.
User avatar
Moderator

GK User
Wed Jun 11, 2014 1:00 pm
Reply with quote
Report this post
When I used the image logo, I have the same problem.
I have changed the "width" at the template.css under #gkLogo to 400px
With Smartphone, I have a overflow on the right side.
What I need, ist a logo (min. 400px) on PC, and a small logo for smartphone
without overflow.
User avatar
Junior Boarder

GK User
Wed Jun 11, 2014 1:06 pm
Reply with quote
Report this post
I could shortly make available on request the above setting again if this helps in solving problems
User avatar
Junior Boarder

GK User
Wed Jun 11, 2014 5:45 pm
Reply with quote
Report this post
1. Please change the logo type to image.
2. Please create mockups of page header on desktop/tablet/mobile so I know how to set up css'es.
User avatar
Moderator

GK User
Thu Jun 12, 2014 9:54 am
Reply with quote
Report this post
The image is logo type.
What do you need? Scrennshots from desktop/table/mobil?
On Desktop and tablet thw logo is ok, but only on mobile, I have an overflow,
I think, the logo position is not responsive.
User avatar
Junior Boarder

GK User
Thu Jun 12, 2014 2:55 pm
Reply with quote
Report this post
Please edit: /templates/gk_News/css/override.css and add at its end:
Code: Select all
#gkLogo {
height: auto;
margin-right: 10px;
max-width: 471px;
width: 75%;
}

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Thu Jun 12, 2014 5:52 pm
Reply with quote
Report this post
Thanks for your help!
Now everything works.
User avatar
Junior Boarder

GK User
Sat Jun 14, 2014 8:11 am
Reply with quote
Report this post
If you will have any other questions, feel free to post new forum threads.
User avatar
Moderator


cron