getkirby-v2 / starterkit

This is the deprecated starterkit for Kirby v2.
http://getkirby.com
Other
301 stars 94 forks source link

Projects, more than three are not floating #44

Closed HDValentin closed 9 years ago

HDValentin commented 9 years ago

When I change in the snippet site/snippets/projects.php the project to show to more than '3' at the line <?php foreach(page('projects')->children()->visible()->limit(6) as $project): ?> the projects are not floating in the right manner.

See: http://vbachem.de/kirby/projects

puleddu commented 9 years ago

I wouldn't say this is a Starterkit issue. You just need to adapt the CSS to work with the new layout. Find the following definition in your main.css file:

.teaser li:first-child {
    margin-left: 0;
  }

and substitute the code with this:

.teaser li:nth-child(3n+1) {
  margin-left: 0;
}

Please note that this solution will work on all "modern" browser. Check this link for more details: http://caniuse.com/#search=nth-child

HDValentin commented 9 years ago

Thank you. It worked. "You just need to adapt the CSS to work with the new layout." Should ever usery user to this for himself? Where can I read more about adapting the CSS with the new layout?

puleddu commented 9 years ago

You are welcome.

My understanding is that Starterkit is just a starting point – well refined to be honest, but just an example. If you want to change the look and feel or the structure (adding rows to the list of projects, for example) then you either rely on some other people's expertise or try to learn yourself.

I guess that you can search the docs (http://getkirby.com/docs) or ask for support in the forum (http://forum.getkirby.com/) if your question is related to Kirby itself.

If your request is more generic (like this one) you can rely on HTML/CSS documentation: a good resource is https://developer.mozilla.org/de/docs/Web/CSS

Enjoy!

HDValentin commented 9 years ago

Thank you for the advice. I think I have to learn some things :-). Maybe I was expecting something different from kirby. Something between Wordpress and kirby.

puleddu commented 9 years ago

No worries! Learning is great. Plus, you will always find help here. I hope you'll enjoy your Kirby journey. :) On Apr 5, 2015 11:14 AM, "Valentin" notifications@github.com wrote:

Thank you for the advice. I think I have to learn some things :-). Maybe I was expecting something different from kirby. Something between Wordpress and kirby.

— Reply to this email directly or view it on GitHub https://github.com/getkirby/starterkit/issues/44#issuecomment-89738436.