Advanced CSS question.
-
I recently started a website called https://www.videogamecoupons.org/.
I use the following code to create a coupon box around a html link:
p.coupon { display: block; margin: 0; padding: 0; height: 24px; } p.coupon a { display: block; margin: 0; padding: 0 25px 0 5px; font: bold 14px/22px 'Lucida Sans', 'Lucida Grande', sans-serif; float: left; border: 1px dashed #febf02; background: #fdedb4 url('images/bg-post-coupon.gif') center right no-repeat; color: #437216; text-shadow: 1px 1px #fff; text-decoration: none; cursor: pointer; } p.coupon a:hover { color: #000; text-shadow: 1px 1px #fff; text-decoration: none; }
This coupon box can be seen if you scroll down to the bottom of my homepage.
I use
<p class="coupon"><a href="https://www.google.com">Text</a></p>
in the wordpress post to call the styling features.The problem is that this creates a new paragraph. I would like it to appear just after the text on the first line of the post.
ie: Gamestop coupon code: [Coupon Link/box]
I’m sure there is an easy solution, but I have a very basic knowledge of CSS and can’t figure it out.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Advanced CSS question.’ is closed to new replies.