Background resize

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Tue Jun 18, 2013 7:06 am
Hello,

It may be useful for wide-screen monitors.

File: gk_restaurant/css/typography/typography.style2.css

Line: 1874

Text: background: transparent url('../../images/style2/typography/bg_demo.jpg') no-repeat left bottom / 100%;
User avatar
Fresh Boarder

GK User
Tue Jun 18, 2013 8:19 am
Thanks for sharing that information.
In my opinion it would be a little better to use override.css instead of editing core template files. The change You have showed would then look this way:
Code: Select all
.gkHeader {background: transparent url('../../images/style2/typography/bg_demo.jpg') no-repeat left bottom / 100%;}
User avatar
Moderator

GK User
Wed Jun 19, 2013 9:20 am
Hi there!

Talking about the background I have made a bg image in photoshop 1366*2500px but it appears differently in different screen resolutions. It is moving. How can I fix it? Apart from code I should add would I also change the image width?


thanks in advance

www.mumsbitar.se
User avatar
Senior Boarder

GK User
Wed Jun 19, 2013 2:42 pm
Please edit: /templates/gk_restaurant/css/override.css and add at its end:
Code: Select all
body {background-position: 50% 0;}


this will make background image always centered when browser width is wider than page main column.

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

GK User
Fri Jun 21, 2013 2:20 pm
Cyberek wrote:Thanks for sharing that information.
In my opinion it would be a little better to use override.css instead of editing core template files. The change You have showed would then look this way:
Code: Select all
.gkHeader {background: transparent url('../../images/style2/typography/bg_demo.jpg') no-repeat left bottom / 100%;}


.gkHeader {background: transparent url('../../images/style2/typography/bg_demo.jpg') no-repeat left bottom / 100%;}


correctly:
for override.css
Code: Select all
.gkHeader {

   background: transparent url('../images/style2/typography/bg_demo.jpg') no-repeat left bottom / 100%;

}

:geek:

and set this: Template Manager - %Our template% - Options - Advanced settings - CSS override = Enable :)
User avatar
Fresh Boarder


cron