Jump to content


Photo
- - - - -

Grid Css Padding Effects The Boxes Not Content - Is There A Trick?

grid css padding css span

Best Answer Rob , 21 December 2012 - 01:32 AM

If you're trying to pad paragraphs specifically, I imagine the best way would be to create a unique class for it.  So, you re-write the tag as <p class="left-spaced">,

 

Then, in your CSS, you'd do something like:

 
.span2.am p .left-spaced {padding-left:20px;}

Of course, I'm not a CSS pro.  So this is just a bit of a guess.

Go to the full post


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 kate1000

kate1000

    Member

  • Members
  • 20 posts

Posted 20 December 2012 - 11:28 PM

need to set padding for <p> content in box - woildl ike to use css

I can change the color - the font size ( em) and much more but when I go

to add some left padding so that my font wont bump up to the left edge... it bumps over all the boxes in the row

seems that it is sizing the indiivusla box ( in this case: 6 2span boxes under 3 4 span boxes nested in a 12 span box.

 

Any help or experiecne would be super! thanks

 

using

 

.span2.am

{}

 

for those boxes



#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 21 December 2012 - 01:32 AM   Best Answer

If you're trying to pad paragraphs specifically, I imagine the best way would be to create a unique class for it.  So, you re-write the tag as <p class="left-spaced">,

 

Then, in your CSS, you'd do something like:

Please Login or Register to see this Hidden Content

Of course, I'm not a CSS pro.  So this is just a bit of a guess.



#3 kate1000

kate1000

    Member

  • Members
  • 20 posts

Posted 21 December 2012 - 04:24 AM

Eurika!! It worked! Thank you smart egg!



#4 kate1000

kate1000

    Member

  • Members
  • 20 posts

Posted 21 December 2012 - 06:37 AM

Ok Im back - very happy !! - that it worked .. but ... very quickly aware that adding padding this way will be a long task

can I pad this on a larger scale?  i know my " page id"  and read some help forum pages that were just outside of my full understanding because

I do have the page number thanks to that. can I use

 that to make the chages on a large

r scale? thanks

 

Please Login or Register to see this Hidden Content



#5 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 21 December 2012 - 08:49 AM

Doing a page ID is kind of pointless, because it's still tons of work.

 

The solution is to use the left-spaced class in any paragraph where you want it.

 

Then, in the CSS solution I guessed at, just remove the .span.am part.  Then, sitewide, any time you apply the left-spaced class, that paragraph will have the same padding as the CSS prescribes.

 

Just remember to use the class.



#6 kate1000

kate1000

    Member

  • Members
  • 20 posts

Posted 21 December 2012 - 02:43 PM

You have been extremely helpful, thank you! I wll do just that.