Different style on first post
-
Hi,
I’ve been trying to make the first post on every page to be different from the rest. I’m using a grid based theme, with two columns. I tried doing this is css with:
.post:nth-of-type(odd):first-child{
width:100%;
height:100px;
}
.post:nth-of-type(even):last-child{
width:100%;
height:100px;
}However, when I do this the whole design gets screwed up. There’s no space between the posts, the images suddenly aren’t the same height and so on. Even on single posts the comment section gets pushed up so that it overlaps the text.
The strange thing though, is that when I use the same method on the last post it works perfectly.
Can anyone help me with a simple solution to this?
The topic ‘Different style on first post’ is closed to new replies.