-
AuthorPosts
-
dayman Friend
dayman
- Join date:
- May 2011
- Posts:
- 21
- Downloads:
- 1
- Uploads:
- 6
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
September 2, 2013 at 10:53 am #190220I’ve tried about every setting, but can’t seem to change the width of the large image on the attached screenshot.
When you click on one of the thumbnails on the home page this large image appears.
It’s normally about 720 pixels wide, but I want to reduce it to a width of 640 pixels.
Help would be sincerly appreciated!
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 3, 2013 at 6:03 am #504315Hi dayman,
In this case, you will need to adjust the max-width full article image in two files:
– Put below codes into the end of templates/ja_lens/css/template.css file:
.itemImageBlock .itemImage img {
max-width: 640px !important;
}– Open /templates/ja_lens/css/layout-tablet.css file, find change:
/* MISC.
--------------------------------------------------------- */
.BlogView .itemImageBlock span.itemImage img {
width: 100% !important;
max-width: 100% !important;
}to
/* MISC.
--------------------------------------------------------- */
.BlogView .itemImageBlock span.itemImage img {
width: 100% !important;
max-width: 640px !important;
}Then clear System cache.
dayman Frienddayman
- Join date:
- May 2011
- Posts:
- 21
- Downloads:
- 1
- Uploads:
- 6
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
September 4, 2013 at 7:44 am #504497Hi Leo,
Thanks for your answer!
I found the line in layout-tablet.css but not in template.css
Are you sure I need to look in template.css ?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 4, 2013 at 8:38 am #504508Hi dayman,
Yes. That is the additional css styles to display the fixed-width images on the desktop and wide device solutions, these need to be added into template.css file.
dayman Frienddayman
- Join date:
- May 2011
- Posts:
- 21
- Downloads:
- 1
- Uploads:
- 6
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
September 4, 2013 at 10:39 am #504542I’ve added the code below into the end of “templates/ja_lens/css/template.css” and the photos are now smaller, so that’s good!
.itemImageBlock .itemImage img {max-width: 640px !important;}
.BlogView .itemImageBlock span.itemImage img {
width: 100% !important;
max-width: 640px !important;
}But the white background stays the original width instead of automatically taking the width of the photos (see attached screenshot).
How can I make the the white background have exactly the same width as the photos?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 4, 2013 at 11:07 am #504551Hi dayman,
If possible, can put put the website’s url or send me PM ?
dayman Frienddayman
- Join date:
- May 2011
- Posts:
- 21
- Downloads:
- 1
- Uploads:
- 6
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
September 4, 2013 at 11:43 am #504559<em>@Leo Burnetts 387888 wrote:</em><blockquote>Hi dayman,
If possible, can put put the website’s url or send me PM ?</blockquote>
I’ve sent you a private message!
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 5, 2013 at 5:44 am #504644Hi Thomas,
In order to make the content width to be fitted with the image, you can try to put below css styles into the end of template.css file too:
div.item.masonry-brick.clicked.item-popup-view.grid-trible {
width: 550px !important;
}Adjust the width until you get perfect, then clear System cache.
1 user says Thank You to phong nam for this useful post
dayman Frienddayman
- Join date:
- May 2011
- Posts:
- 21
- Downloads:
- 1
- Uploads:
- 6
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
September 5, 2013 at 9:13 pm #504770<em>@Leo Burnetts 388012 wrote:</em><blockquote>Hi Thomas,
In order to make the content width to be fitted with the image, you can try to put below css styles into the end of template.css file too:
div.item.masonry-brick.clicked.item-popup-view.grid-trible {
width: 550px !important;
}Adjust the width until you get perfect, then clear System cache.</blockquote>
Thanks, you’re a real lifesaver! 🙂
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by dayman 11 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum