Giter Club home page Giter Club logo

Comments (3)

pvgn avatar pvgn commented on June 9, 2024 1

Hey,
I had the same behaviour, but fixed it.
My HTML looked like that :

<section>
  <h1>Projects</h1>
  <div class="project">
    <h2>Project 1</h2>
  </div>
  <div class="project">
    <h2>Project 2</h2>
  </div>
  <div class="project">
    <h2>Project 3</h2>
  </div>
  <div class="project">
    <h2>Project 4</h2>
  </div>
</section>

However, @include column() eventually uses nth-child, like below :

div.project:nth-child(n) {
  margin-right: 3%;
  float: left;
  clear: none;
}

div.project:nth-child(3n) {
  margin-right: 0%;
  float: right;
}

div.project:nth-child(3n + 1) {
  clear: both;
}

In my case, the first div.project was actually the 2nd child of the container.
I'm pretty sure your "Project 1" is also 2nd child of its container.
Maybe the first child is your top bar.

I did something like that :

<section>
  <h1>Projects</h1>
  <ul class="projects">
    <li><h2>Project 1</h2></li>
    <li><h2>Project 2</h2></li>
    <li><h2>Project 3</h2></li>
    <li><h2>Project 4</h2></li>
  </ul>
</section>

Also more semantically correct.

from jeet.

ziolkowskiux avatar ziolkowskiux commented on June 9, 2024 1

Hey,
Thanks for the suggestion. My gallery looks ok right now with HTML code written as follows:

<ul> <li class='projectGalleryElement' ng-repeat='project in projectsList | filter: projectTypeFilter'> <a href='#projectTemplate/{{project.id}}'> <div class='pictureMockup'> <img src="" alt=""> </div> <div> {{project.name}}<br> {{project.location}} </div> </a> </li> </ul>

SCSS class definition is the same as before.

from jeet.

corysimmons avatar corysimmons commented on June 9, 2024 1

Thanks for the help @Philoozushi 👍

from jeet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.