Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » Forum Usage » Forum How-To »

How to Add Padding or Margins on Single Post Pages Only

Old Apr 23, 2011, 11:49 AM
New WordPress Fan
141 posts · Jul 2010
Using Atahualpa 3.5.1, WordPress 3.0.4.

How to you add left and right padding or margins on all single post pages only?

Many thanks!
Old Apr 23, 2011, 04:03 PM
juggledad's Avatar
23,762 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You will have to code some CSS and add it to the CSS Inserts. If you look at a 'single post page, at the <body> statement, you will find something like
HTML Code:
body class="single single-post postid-25 single-format-standard">
so you can use
HTML Code:
body.single #left {...}
as your CSS selector. Then you can code the rules you need.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


margins, padding, single post pages

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] menu position in IE: ignores container padding/margins epsymp Page & Category Menu Bars 11 Mar 5, 2011 02:49 PM
How to: add a widget area to a single post paolo Center area post/pages 0 Dec 23, 2010 04:44 AM
[SOLVED] Want to add ShareThis button only to single post pages LynnFang Post-Kicker, -Byline & -Footer 4 Dec 14, 2010 11:46 AM
How to add PHP to the loop on multi- and single post pages only? Fux Center area post/pages 2 Jun 16, 2010 04:55 AM
How do I choose between Single Post Pages and Multi Post Pages? BradyKelly Atahualpa 3 Wordpress theme 2 Jan 3, 2010 05:17 AM

All times are GMT -6. The time now is 04:32 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.