I'm in the process of revamping the layout of my blog using CSS3. Rather than continuing to utilize a table like I did before, I want to explore new design possibilities.
My blog is titled "Wall of Text," and its header features a unique brick-like pattern created by a repeating background image. Below the header are links to archived posts that also mimic the appearance of bricks from the wall of the header. While the first row looks perfect, I am encountering challenges when the links wrap onto the next row. In order to maintain the brick-like pattern, I believe the second row should have a left offset/margin/padding of 20px.
The arrow indicates where I desire the indentation.
Initially, I attempted to use the display: table-row
container with the :nth-child(even)
selector for styling. However, I found it difficult to position elements correctly, so I switched to using display: table
. Unfortunately, the current setup results in the :nth-child(even)
selecting every other brick instead of every other row.
If you'd like to take a look at my code populated with placeholder "links," you can find it here: jsfiddle.
Any suggestions on how I can achieve this desired layout?