[SOLVED] Styling the homepage differently than the single page
How do I apply a styling that affects only the homepage elements and not the single page? For instance, I want to add a border above and below a post container in the homepage but I don't the borders to appear in the singe post view. How do I do that?
|
you will need to add CSS Selectors and CSS rules to do the styling. You can prefix any selector with 'body.home' so to have a border around a post on the home page you would use
HTML Code:
body.home .post {border: solid 2px red;} |
Thanks Juggledad. I do use FireBug but I was not aware of the body.home stuff. Thanks again.
|
All times are GMT -6. The time now is 09:02 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.