Youjoomla Support Forums (https://www.youjoomla.com/joomla_support/index.php)
-   General questions (https://www.youjoomla.com/joomla_support/forumdisplay.php?f=17)
-   -   Responsive logo in header (https://www.youjoomla.com/joomla_support/showthread.php?t=13786)

winnetouch 06-14-2015 09:03 AM

Responsive logo in header
 
Hello.

I have a question regarding the logo at the top if my website. I want it to be bigger for desktop screens since I want it to stand out. But on mobile screens it's too big (too wide) to fit on to most screens. Is there a way to make it responsive or to assign a different image for smaller screens?

Thank you.

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: N/A

PHP version: N/A

Link to installation: www.viki.si

Have you edited any files? If yes tell us which ones.: No

Is this personal or client website?: Personal

arefund 06-15-2015 05:39 AM

Hello winnetouch.
You can add this to make the logo fit on mobile view.
@media screen and (max-width: 980px) {
#logoholder {
width:100%;
height: auto;
}
#logo{
width:100%;
background-position:center center;
background-size:contain;
}
}

For desktop view add this:
#logoholder {
margin: 0 auto;
float: none;
display: table;
}

winnetouch 06-26-2015 01:58 PM

But where do I add this to?

arefund 06-29-2015 12:06 PM

You can add this into your custom.css file
http://www.yjsimplegrid.com/document...-css-file.html

winnetouch 06-30-2015 04:51 PM

Quote:

Originally Posted by arefund (Post 62762)
You can add this into your custom.css file
http://www.yjsimplegrid.com/document...-css-file.html

Well... All that did was center my logo... I copied your code in to the custom CSS file but it didn't work.

I set the float from none to left but the logo doesn't resize when I open the website on my phone.

arefund 07-02-2015 05:28 AM

Please notice that you have to clear cash and save inside template manager because your are using bootstrap3 and the old files are generated. After you hit clear cash and save it will generate new file with the changes.


All times are GMT -4. The time now is 06:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.