Increase margin in the main content

  • kent8
    Active member
  • Topic Author
  • Member
  • Member
More
1 year 9 months ago #49348 by kent8
on this contact page
tryrec.townoflimon.com/index.php/contact

I am trying  to put some padding or margin so that the text is not slammed up against the edge of the box.

I have been through the documentation on this site and cannot find ANY exact directions to increase the margins in the main content area.
I don't care if its done in a menu in the template administrator, or with CSS in the custom.css.

Please tell me exactly how to do this, in precise steps.

Thanks
Kent


ATTACHMENT shows where I want margin


 
Attachments:

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 9 months ago #49350 by milos
Hello,

The changes you are trying to make to the template require some CSS skills. So, you should edit the template's CSS file /media/templates/site/fitness/css/custom.css and at the end of this file, below the last }, add this code:
Code:
.com-contact.contact { padding: 15px; }

You can change the value of 15px if you want a different padding value.

Regards,
Milos

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 9 months ago - 1 year 9 months ago #49351 by milos
One more thing, if you want to add this padding to all pages, not just contact page, add this code instead:
Code:
.content_sparky.sparky_cell { padding:15px; }

This will add the padding of 15px to all pages in the content area (not in modules).

Regards,
Milos
Last edit: 1 year 9 months ago by milos.

Please Log in to join the conversation.

  • kent8
    Active member
  • Topic Author
  • Member
  • Member
More
1 year 9 months ago #49377 by kent8
PERFECT !
Works great, thanks very much.
Regards,
Kent

Please Log in to join the conversation.

Time to create page: 0.287 seconds
Powered by Kunena Forum