-
AuthorPosts
-
bobptz Friend
bobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
December 30, 2016 at 9:03 pm #998651The solution that seems to work for me is this:
I use the img-responsive class for the images. <img src="images/….jpg" class="img-responsive" />
Then in custom.css I wrote this rule: .img-responsive { width: auto!important; }
December 31, 2016 at 10:47 am #998676My hint is to set the max width for the images in the article itself!
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 2, 2017 at 2:16 am #998826Hi
You can replace the above code value to@media screen and (max-width: 992px)
into
@media screen (min-width:468px) and (max-width: 992px)
Now it work when width is between 468 and 992px.
Regardsbobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
January 2, 2017 at 10:03 am #998905Hello
I did try to replace the code with this (in chrome inspect element):
@media screen and (min-width:468px) and (max-width: 992px)
The result was that for screen sizes 468px – 992px, the small images expanded too much (100%). So this did not solve my problem.
However for smaller screen (browser) sizes (<468px), the images were nice and small, as expected.
The best solution I can find is to replace (in file /t3-assets/dev/templates.purity_iii.less.joomla.less.css) this:
width: 100% !important;
with this:
width: auto;
I just don’t know what the implications will be elsewhere.
Maybe the coders/developers could have a look at this issue. From what I read, the "!important" command usually causes problems, like the one I faced.
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
January 2, 2017 at 10:34 am #998913My hint is to set the max width for the images in the article itself!
Hi
This is a great idea. Maybe better than changing the custom.css.
I just want to clear the issue with the ( width: 100% !important; ). I am afraid it will cause trouble in other places too.
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
January 2, 2017 at 11:02 pm #999028@pankaj Sharma
The best solution I can find is to replace (in file /t3-assets/dev/templates.purity_iii.less.joomla.less.css) this:
I need to find the .LESS file to change. This is the .CSS file. When I compiled the less files into css files, that file was overwritten.
So which is the .LESS file that contains the code I need to change?
Is it this file? /templates/purity_iii/less/joomla.less
I do change this file, but when I compile it, /t3-assets/dev/templates.purity_iii.less.joomla.less.css is not affected. Am I doing something wrong?
Do I have to edit the file from joomla template manager? Is it wrong if I edit it with my TXT editor and upload it with FTP, then compile LESS to CSS?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 3, 2017 at 1:22 am #999069Hi
I suggest you to use custom.css file and override the style code.
T3Assets is temp. Folder used to cache the css.bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
January 3, 2017 at 1:32 am #999075Hello
Thank you for your suggestion. However I am trying to follow this guide:
https://www.joomlart.com/documentation/joomla-faqs/embed-font
section: #4: compile LESS to CSSSo the LESS files to change are here:
/templates/purity_iii/lessCould you tell me where compiled CSS files are placed?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 3, 2017 at 1:39 am #999079Hi
Kindly read my last post again and apply the custom override style in custom.css file.
Beside for new topics kindly open new threads.bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
January 4, 2017 at 9:27 pm #999639My hint is to set the max width for the images in the article itself!
If I try to add css code in a joomla article, then I am adding it in the section. However css rules state that these should go to the section. How do you deal with this?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 5, 2017 at 12:34 am #999678Hi
Kindly post your site URL here with a screenshot of the problem so i can suggest you better.bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
January 5, 2017 at 12:48 am #999679No problem. I used the sourcerer joomla extension to place the css code on the article. This is a good alternative to using custom.css, if I only want to change the styling in several articles.
-
AuthorPosts
This topic contains 12 replies, has 3 voices, and was last updated by bobptz 7 years, 4 months ago.
The topic ‘cannot control images in screens under 992px’ is closed to new replies.