-
AuthorPosts
-
felix1 Friend
felix1
- Join date:
- February 2015
- Posts:
- 220
- Downloads:
- 36
- Uploads:
- 78
- Thanks:
- 67
- Thanked:
- 20 times in 6 posts
June 19, 2015 at 7:10 pm #207625Hallo!
I have just learnt how to make mastcol image responsive with this code in custom.css:
@media (max-width: 992px) {
.t3-mastcol img {
width: 100%;
}
}But how can I make a right margin in responsive mode? Right now the image spans all the way out to the red background area.
I would like to have a white margin to the right of the image with 20px. Is it possible?
Sincerely//Felix Rimfrost
felix1 Friendfelix1
- Join date:
- February 2015
- Posts:
- 220
- Downloads:
- 36
- Uploads:
- 78
- Thanks:
- 67
- Thanked:
- 20 times in 6 posts
June 19, 2015 at 7:42 pm #574855A supplement only, this applies to my 10-inch tablet. On mobile view it looks good…
Felix Rimfrost
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 23, 2015 at 9:42 am #575223Hi @felix1,
Please open file /templates/purity_iii/css/custom.css then add this code :
img {
max-width: 100%;
}
.t3-sidebar .row {
margin-right: 0;
}
@media (max-width: 768px) {
.t3-sidebar .row {
margin-left: 0;
}
}1 user says Thank You to Adam M for this useful post
felix1 Friendfelix1
- Join date:
- February 2015
- Posts:
- 220
- Downloads:
- 36
- Uploads:
- 78
- Thanks:
- 67
- Thanked:
- 20 times in 6 posts
June 23, 2015 at 9:02 pm #575266Nice, it worked! 🙂
Although, I didn’t have to use the first img code:
img {
max-width: 100%;
}It worked anyway and now the image looks fine on my tablet…
Sincerely//Felix Rimfrost
Felix Rimfrost
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by felix1 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to make right margin mastcol image?
Viewing 4 posts - 1 through 4 (of 4 total)