How can I add a banner to the corner of a wordpress post using css or within the post itself. I've attacked a screen of what I'd like it to look like, but I don't know how to get it done.
Asked
Active
Viewed 817 times
-2
-
Why would you down check this question? – AskaGamer Sep 27 '11 at 17:34
-
Users most often downvote questions because the feel that they don't adequately meet the criteria of http://stackoverflow.com/faq#questions. They may also feel that the question "does not show any research effort." – Michael Jasper Sep 27 '11 at 17:39
2 Answers
1
Add a background image to your post class and set the background-position
property to top right
.post {background:url('your-image.jpg') top right no-repeat}

Jared
- 12,406
- 1
- 35
- 39
-
Then to add background color just do background: #ffffff url('blah") right? – AskaGamer Sep 27 '11 at 17:31
-
You've got it! That's the shorthand way to do it but alternatively you could declare each property separately. – Jared Sep 27 '11 at 18:40
0
Ensure the parent div has position: relative (or position: absolute) set, then set your banner to position: absolute; right: 0; top: 0;

Ben Clayton
- 80,996
- 26
- 120
- 129