-
AuthorPosts
-
regin Friend
regin
- Join date:
- March 2007
- Posts:
- 117
- Downloads:
- 2
- Uploads:
- 60
- Thanks:
- 28
- Thanked:
- 1 times in 1 posts
June 5, 2014 at 12:11 pm #198504Hi
Stole some CSS from another joomlart tempalte – I think it was Purity III, and wanted to present the staff properly:
http://devtantec.nioba.dk/index.php/tantec/tantec-profilesIt looks great, exept from when I resize the browser. The images they scale down. Id like them to Behave like here:
http://www.joomlart.com/demo/#purity_iiiBut just how do I do that?…
Help appreciated!
Regards
Reginswissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
June 5, 2014 at 12:27 pm #537881It is responsive – that’s why it scales down. 🙂
Try adding the following rule to your custom.css file and see if it helps
@media (min-width: 768px){ .col-sm-6 {
width: 50%;
float: left;
}
}regin Friendregin
- Join date:
- March 2007
- Posts:
- 117
- Downloads:
- 2
- Uploads:
- 60
- Thanks:
- 28
- Thanked:
- 1 times in 1 posts
June 5, 2014 at 12:58 pm #537884Ah… 🙂
I added the code, but it only affects the images when they are supposed to be full size. So now they are on a line when scaling down, but not when seen in full site width..
swissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
June 5, 2014 at 1:05 pm #537886Two things…
1. Can you set optimise css to OFF so that one can see the css files please
2. I don’t see the code I gave you in the compressed filecan you do a screenshot of what you see because I see just the normal scaling
regin Friendregin
- Join date:
- March 2007
- Posts:
- 117
- Downloads:
- 2
- Uploads:
- 60
- Thanks:
- 28
- Thanked:
- 1 times in 1 posts
June 5, 2014 at 1:43 pm #537888Hi
1. Done – set to OFF
2. Should be in custom.css – put it in line 178Screenshot of full size + custom.css:
Regards
regin-
swissa Friend
swissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
June 5, 2014 at 1:57 pm #537891That’s better. I can see what I’m doing now!
OK. You have a couple of problems in your custom.css file. You call .col-sm-6 and .col-md-3 @ lines 137 and 140 so delete those
.col-sm-6 { width: 50%;
}
.col-md-3 {
width: 25%;
}Then at the end of the file add this additional code after the one I already gave you
@media (min-width: 992px){.col-md-3 {
width: 25%;
}
}That should set it how you want.
1 user says Thank You to swissa for this useful post
regin Friendregin
- Join date:
- March 2007
- Posts:
- 117
- Downloads:
- 2
- Uploads:
- 60
- Thanks:
- 28
- Thanked:
- 1 times in 1 posts
June 5, 2014 at 2:51 pm #537898Ah, your are right, it works!!
Thanks a bunch. I just learned a bit about @media queries there too!
Just one last question.. The first image is proportionally bigger than the other images when I resize the browser – got any idea why? It is the same image I use below, and there it has the right size.
Regards
Regin———-
UPdate: Wait – I got it. Actually it is not the same image, but a much larger one. That must be the reason why it is larger too when resizing the browser. All under control. THANKS! 😀 -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by swissa 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum