1. webnanny
  2. Sherlock Holmes
  3. Commercial Templates
  4. Thursday, 06 February 2014
  5.  Subscribe via email
I'm working on a J2.5 site using Letterpress. One of my articles uses a table and I cannot get all the table attributes to work. I want the table centered in the article and I have found on other sites that you have to put <center> before the table and </center> afterwards. This isn't working on this site - the table displays in the left position.

This table is coded as
<table style="border-color: #495319; border-width: 2px; border-style: solid;" border="2" cellspacing="0" cellpadding="10">

The desired border-width and cellpadding show in the editor on the admin side but display on the front end as border-width="1" and callpadding="0" - making for a very cramped little table. Any suggestions on how to fix this?
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Would you have a URL to an example of your current table so we can better understand these styling issues?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
http://walnutforkalpines.com/alpine-25/index.php/test

I took care of the border width by coding every cell in the html editor so my only issue now is the cell padding. It's set as cellpadding="10" but does not display as 10.

Thank you.
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you

Could you try adding the following to the Custom CSS field of your templates parameters...


td {
padding: 10px;
}


You can include other styling in this way for example...


td {
padding: 10px;
border: 1px solid #185704;
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
That did the trick. Thank you so much, Ciarán.
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok