Tables not aligned to the left

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Nov 18, 2012 7:07 pm
Reply with quote
Report this post
I am using an ordinary table in this template with the following code:

Code: Select all
<table style="width: 85%; background-color: #ffffff; border: 0px solid #ffffff;" border="0" cellspacing="0" cellpadding="0" align="left">
<tbody>
<tr>


The problem is that the table it self is not aligned to the left margin, as the ordinary text does. The whole table is shifted to the right a couple of pixels.

How do I fix this? :?:

See also the attached image.
User avatar
Gold Boarder

GK User
Mon Nov 19, 2012 12:49 am
Reply with quote
Report this post
Hi

Where are you adding this table? On joomla article, K2 item or custom module?

Anyway try something like this:

Code: Select all
<table cellspacing="0" cellpadding="0" border="0" align="left" style="width: 85%; background-color: #ffffff; border: 0px solid #ffffff; float: none; margin:30px 0 ">
<tbody>
<tr>
<th>header1</th>
<th>header2</th>
<th>header3</th>
</tr>
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
</tr>
</tbody>
</table>


Don't forget that you have own table style available on template typography and you can use it easily ;)

Cheers
User avatar
Platinum Boarder

GK User
Mon Nov 19, 2012 11:23 am
Reply with quote
Report this post
I am adding it to a Joomla article.

I will try your suggestion.

Meanwhile, can you please give info on how to use the styles that you mention (and where to find them)?
User avatar
Gold Boarder

GK User
Mon Nov 19, 2012 2:08 pm
Reply with quote
Report this post
Hi again, I noticed that the tables are totally corrutped in latest FireFox but is showing OK using Chrome or IE.

What could be the reason for this?
User avatar
Gold Boarder


cron