WordPress.org

Support

Support » Themes and Templates » [Resolved] Featured post layout with H2 and Post-Thumbnail

[Resolved] Featured post layout with H2 and Post-Thumbnail

  • marblestech
    Member

    @marblestech

    I Have a problem with making a featured post with an overlaying title, i have tried position:relative; and putting the top to -70px; to overlap but it wont work, here’s my current code :

    #feat-post-title{
    	background:url(http://www.marblestech.com/wp-content/uploads/bg.png);
    	color:#fff;
    	font:15px arial;
    	width:560px;
    	padding:20px;
    	margin-bottom:-30px;
    }
    <h2 id="feat-post-title"><?php the_title(); ?></h2>
    
    				<div id="feat-post-img">
    					<?php
    						if ( has_post_thumbnail() ) {
      							the_post_thumbnail();
    						} 
    
    					?>
    				</div>

    Anyone got any ideas, any input would be greatly apperciated! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Featured post layout with H2 and Post-Thumbnail’ is closed to new replies.