Giter VIP home page Giter VIP logo

Comments (9)

poi33 avatar poi33 commented on July 18, 2024

I created this example: https://jsfiddle.net/w1o7kzow/2/
And there does not seem to be anything wrong with the code.
Maybe there is some css that affects the "honeycomb" id?

from responsive-grid-of-hexagons.

web-tiki avatar web-tiki commented on July 18, 2024

@MinThaMie the behaviour you see is the normal behaviour. If you stretch width of the result window in the codepen, you will see that the grid adjusts to 2-3 hexagons per row. As you only have 4, and the fifth one is missing, it looks like the grid isn't centered.

I suppose (you haven't explained what you want) that you want the grid to always display 1-2 hexagons per row. For this, you just need to modify the CSS:

  • move the content of the second media query out of it (@media (max-width: 1200px) { /* <- 4-3 hexagons per row */)
  • delete the second media query with all it's content (@media (min-width:1201px) { /* <- 2-3 hexagons per row */)

from responsive-grid-of-hexagons.

MinThaMie avatar MinThaMie commented on July 18, 2024

Thanks for the answers, for some reason the extra div broke the height of the <ul>. Thanks for the quick response :) I love this repo!

from responsive-grid-of-hexagons.

web-tiki avatar web-tiki commented on July 18, 2024

On a side note, you should use the CSS from the repo rather than the one on Codepen as it isn't maintained there.

from responsive-grid-of-hexagons.

MinThaMie avatar MinThaMie commented on July 18, 2024

The repo CSS results in this:
screen shot 2017-08-10 at 11 31 16

In safari and firefox

from responsive-grid-of-hexagons.

poi33 avatar poi33 commented on July 18, 2024

@web-tiki did we ever test the grid in safari?
Are there some -prefixes we are missing?

from responsive-grid-of-hexagons.

web-tiki avatar web-tiki commented on July 18, 2024

@poi33 the grid has been successfully tested on safari and firefox and no prefixes are missing.
@MinThaMie have you tested the repo demo here? And what versions on firefox and safari have you seen that result on?

from responsive-grid-of-hexagons.

MinThaMie avatar MinThaMie commented on July 18, 2024

I'm really sorry. I managed to forget one crucial class :(

from responsive-grid-of-hexagons.

web-tiki avatar web-tiki commented on July 18, 2024

No problem.

from responsive-grid-of-hexagons.

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.