Home › Forums › CSS › Problem with CSS positioning › Re: Problem with CSS positioning
Re: CrocoDillon,
The problem is i’m using CSS to create the button, so, using block display will enlarge it due to the
dimensions..here is the php code for the moretag, and their related css code to give u clear idea:
php:
function new_excerpt_more($more) {
global $post;
return ‘… ID) . ‘”> ‘.__(‘Readmore’, ‘purepress’).’ ‘;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
CSS (moretag):
.moretag {
display: inline-block;
font-size:15px;
background-color: rgb(45, 179, 233);
border-radius: 5px 5px 5px 5px;
color: #ffffff;
margin: 2em 0px 0px;
padding: 0.10em 0.30em;
border: 1px solid rgba(0, 0, 0, 0.1);
}
CSS (excerpt):
.content,
.excerpt {
display: block;
font-family:Corbel;
font-size:16px;
color:#000000;
padding-top:25px;
padding-right:20px;
line-height: 1.7em
}
I hope it clarify the structure..
Thanks for your quick response