image on right side of page title
-
Hi, I am having trouble getting an image to appear on the right side of the page title on pages other than the home page. My right side image is displaying on either a second line or has been pushed way out right so it appears on a 2nd line.
I followed the directions of a number of sites that have the image on the right, and this is the code that came the closest to getting the right image displayed, using :after . I know there is something missing that I need to add, but haven’t found it yet. Any ideas?
CSS:
#thetitleimagebefore { background: url("https://wc.marketingoutloud.biz/wp-content/uploads/2013/02/leaf2_03.gif") no-repeat scroll left top transparent; line-height: 38px; padding: 0px 0px 10px 42px; width: 42px; } body.home #thetitleimagebefore { display: none; } #thetitle { font-weight: bold; font-size: 24px; color: #1F4892; text-transform: uppercase; padding: 5px 3px; } body.home #thetitle { display: none; } #thetitle:after { content: url("https://wc.marketingoutloud.biz/wp-content/uploads/2013/02/leaf2_03.gif") ; line-height: 38px; width:auto; margin-left:120; }
The code from the page.php:
<div id="thetitleimagebefore"> <h2 id="thetitle"><?php the_title(); ?> </h2></div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘image on right side of page title’ is closed to new replies.