Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not responsive #38

Closed
mannte opened this issue Jan 1, 2016 · 5 comments
Closed

Not responsive #38

mannte opened this issue Jan 1, 2016 · 5 comments

Comments

@mannte
Copy link

mannte commented Jan 1, 2016

The images only get smaller and smaller.
I fixed this by changing the width of the images to 220px for big screens and 140px for small screens instead of a percentage. Furthermore I centerend everything.

This is the part of the css file I changed:
.gridder {
margin: 0px;
padding: 0px;
list-style-type: none;
text-align: center
}
.gridder-list {
display: inline-block;
vertical-align: top;
width: 220px
}
@media screen and (max-width: 862px) {
.gridder-list {
width: 140px;
}
}
.gridder-show {
display: block;
text-align: left;
float: left;
width: 100%;
position: relative;
background: #EEE url("../images/loading-spin.svg") no-repeat center
}

@orion3dgames
Copy link
Owner

I've not really focused on the css, as they are so many different way's this could be used.

If the image get's smaller and smaller, then you have a width % on the .gridder-list. Make sure your css is not being overwritten by other css, or be more specific: try doing this for example :

.gridder .gridder-list{
width: 220px;
}
@media screen and (max-width: 862px) {
.gridder .gridder-list {
width: 140px;
}
}

else send me a link so I can debug it.

Cheers, Orion

@mannte
Copy link
Author

mannte commented Jan 9, 2016

It was like that in the standard css file, but it's indeed better the way you write it.
I have an other question: is it possible to scroll to and open an specific item, for example with jquery?

@orion3dgames
Copy link
Owner

You can use something like this to trigger an opening :
var id = 7;
$(".gridder .gridder-list:nth-child(id)").trigger("click");

@orion3dgames
Copy link
Owner

I'll close this as it is CSS related. There are many place all over internet explaining how to make HTML responsive. :)

@tparikka
Copy link

tparikka commented May 3, 2016

I used this gridder for my personal portfolio project, and I modified it slightly to be responsive and work with Bootstrap. Would it be worthwhile to clean up the code a bit and submit a pull request? Not sure how this works, I'm just now starting to get into development myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants