Comments (9)
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.
@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.
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.
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.
In safari and firefox
from responsive-grid-of-hexagons.
@web-tiki did we ever test the grid in safari?
Are there some -prefixes we are missing?
from responsive-grid-of-hexagons.
@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.
I'm really sorry. I managed to forget one crucial class :(
from responsive-grid-of-hexagons.
No problem.
from responsive-grid-of-hexagons.
Related Issues (20)
- border HOT 4
- Grid not displaying on Chrome Mac 56.0.2924.87 (64-bit) HOT 2
- How to make hexagons flat-topped HOT 1
- Hexagon area question or so...? HOT 3
- Less hexagons on odd rows HOT 2
- Hover effect broken HOT 2
- Hover effect won't close HOT 7
- border instead of background color ? HOT 2
- Fixed height and width hexagons HOT 5
- Blurry Text on hover HOT 15
- How to Replace images? <img src="https://farm8.staticflickr.com/7187/6895047173_d4b1a0d798.jpg" alt="" /> HOT 6
- Responsive grid of hexagons not working with Cold fusion header/footer on site HOT 7
- Border and/or Shadow HOT 3
- Using Grid instead of Flex HOT 2
- Show h1 underneath image HOT 2
- The "curtains" of the hexagons do not always close perfectly HOT 7
- Is this repo still maintained? HOT 5
- Increase the spacing between hexagons HOT 1
- Indentation on first row and how to increase the space between hexagons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from responsive-grid-of-hexagons.