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


  #1  
Old Apr 23, 2011, 12:49 PM
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!
  #2  
Old Apr 23, 2011, 05:03 PM
juggledad's Avatar
juggledad
 
23,682 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

Bookmarks

Tags
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 03:49 PM
How to: add a widget area to a single post paolo Center area post/pages 0 Dec 23, 2010 05:44 AM
[SOLVED] Want to add ShareThis button only to single post pages LynnFang Post-Kicker, -Byline & -Footer 4 Dec 14, 2010 12:46 PM
How to add PHP to the loop on multi- and single post pages only? Fux Center area post/pages 2 Jun 16, 2010 05:55 AM
How do I choose between Single Post Pages and Multi Post Pages? BradyKelly Atahualpa 3 Wordpress theme 2 Jan 3, 2010 06:17 AM


All times are GMT -6. The time now is 10:43 PM.


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