Having a little problem... I'm using a php include to display the latest 2 wordpress posts on the front page of my website... however it doesn't seem to pick up my CSS! Where I've set the "blog_excerpt" to have a margin-top: 0px; so it is closer to the post title, it totally ignores it, despite it being in my CSS and I think my syntax is correct (unless I've completely got it wrong!).
Question
Fid
Hi all,
Having a little problem... I'm using a php include to display the latest 2 wordpress posts on the front page of my website... however it doesn't seem to pick up my CSS! Where I've set the "blog_excerpt" to have a margin-top: 0px; so it is closer to the post title, it totally ignores it, despite it being in my CSS and I think my syntax is correct (unless I've completely got it wrong!).
Here's the code:
Included in the index.php:
<?php include("blogposts.php"); ?>Included in the CSS file:
#blogpost p.blog_excerpt { margin-top: 0px; }And the html from the php file:
This *should* work shouldn't it? Any reason why it wouldn't?
For a bigger look, have a look at http://www.fiddy.co.uk/new/ where I've put the page up I'm trying to get to work.
Thanks guys!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts