login about faq

Due to the large amount of spam accounts, we temporarily disabled new user sign ups. To override this, email newuser.lgqa@gmail.com and an admin will determine if you are permitted to join


The thing is that I don't want to make a new div tag surrounding the text but do it all in one go. Would that be possible. What I want to do is set padding to the text but not the section tag. Thanks!

asked Jul 27 '12 at 11:20

RafalChmiel's gravatar image

RafalChmiel
491138151156


You can basically setup the padding you prefer in CSS under a class or id. Once you have the settings, you apply that class or id to the "section" or paragraph or whatever you want.

Example: .padding {settings} creates a class that allows me to now apply those settings to any HTML tag I prefer. #padding {settings} creates an id that allows me to now apply those settings to any HTML tag I prefer. It is preferable to use id with major tags and class with minor tags. Give it try.

answered Jul 27 '12 at 13:30

David's gravatar image

David
3.3k112062

Use html p tag and p {} CSS?

answered Jul 27 '12 at 12:33

ryebread761's gravatar image

ryebread761
7.5k216242325

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×979
×142
×75
×61
×60
×12

Asked: Jul 27 '12 at 11:20

Seen: 409 times

Last updated: Jul 27 '12 at 13:30