-
AuthorPosts
-
February 17, 2014 at 3:50 pm #194869
Hi Guys,
I Have a question , is to possible to make the header_bg.gif Responsive ?
I made the header_bg.gif on a 23 inch monitor, but when i try to look at it on a smaller screen i lose allot of my image.
So is it possible to make it responsive ??Kind regards
synapsis Friendsynapsis
- Join date:
- April 2007
- Posts:
- 234
- Downloads:
- 18
- Uploads:
- 28
- Thanks:
- 58
- Thanked:
- 19 times in 1 posts
February 17, 2014 at 11:41 pm #523069I would also be interested in a solution to this.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 18, 2014 at 4:35 am #523105Right now its difficult to suggest the solution to you. It would be awesome if you can possibly include URL of your site. I am happy to help you out.
February 18, 2014 at 7:59 am #523150Thank you very much Ninja Lead, i have yust send you a PM
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 19, 2014 at 4:28 am #523336<em>@crystalprint 411872 wrote:</em><blockquote>Thank you very much Ninja Lead, i have yust send you a PM</blockquote>
You can follow workaround below:
Open the templates/ja_onepage/css/custom.css file and add this css rule:
@media (max-width: 767px) {
.hero-unit {
width: 100%;
background-size: cover;
}
}
Or:
You can add small image with mobile layout as follows:Open the templates/ja_onepage/css/custom.css file and insert background-image
@media (max-width: 767px) {
.hero-unit {
width: 100%;
background-size: cover;
background-image: url(../../../templates/ja_onepage/images/themes/metro/header_bg_mobile.gif);
}
}
The mobile image path should be: templates/ja_onepage/images/themes/metro/header_bg_mobile.gif
Hope it helps.
February 20, 2014 at 2:25 pm #523626Hi Ninja Lead,
No it doesn’t Work ..
The image is still the same width and lose quart of the image if i view it on a smaller screen.
Do you maybe have another solution?kind regards.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 23, 2014 at 5:13 pm #523971I see the image templates/ja_onepage/images/themes/metro/header_bg_mobile.gif has very large size, why don’t use small one for better result on mobile layout.
February 24, 2014 at 1:40 pm #524116Hi Ninja Lead,
I made the image smaller but that doesnt make it better.
It only makes it worse , i see allot of pixels on my mobile or tablet.kind regards
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 25, 2014 at 7:27 am #524233Please try additional steps below:
Open the templates/ja_onepage/css/custom.css file
Change
@media (max-width: 767px) {
.hero-unit {
width: 100%;
background-size: cover;
background-image: url(../../../templates/ja_onepage/images/themes/metro/header_bg_mobile.gif);
}
}
To
@media (max-width: 767px) {
.hero-unit {
background-image: url(../../../templates/ja_onepage/images/themes/metro/header_bg_mobile.gif);
}
}With image path: templates/ja_onepage/images/themes/metro/header_bg_mobile.gif and size: 289px x 395px
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 9 replies, has 3 voices, and was last updated by Ninja Lead 10 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum