Exploring
Exploring

Reputation: 573

How can I make the category name per post at the same position?

If anybody can please help me. Actually I want to show the category name in the same position in the top left of the post box but when I am changing the title name of the post I mean when the length of the title is changing then the position of the category name is also changing but no I want to keep the category name fixed in that position. So how can I do this please. Thanks.

Upvotes: 0

Views: 39

Answers (1)

Pranav Gupta
Pranav Gupta

Reputation: 944

It is possible to do by making .cat elements absolutely positioned at top left relative to .post element

Add following styles to .post and .cat:

.block-type-content .post{
  position:relative;
}

.cat {
  position: absolute;
  top: 0;
  left: 0;
}

Upvotes: 2

Related Questions