View Single Post
Old 01-03-2011, 04:37 PM   #1
NASCARaddicted
Addict
NASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and grace
 
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
need help on how to align a table to the right

Hello

I have a small table that I want to align to the right with CSS. I tried different things, and they look good in Firefox and in the ebook viewer of Calibre, but when I put the epub-file on my ebook-reader (Bebook with ADE), the table is not right aligned, it is aligned to the left.

Here is what I tried so far, after some Google search:

.tabrechts {border-style:hidden; border-collapse: collapse; margin-right: 0em; margin-left: auto;}

and I also tried

.tabfloat {border-style:hidden; border-collapse: collapse; width:auto; float:right;}

As I said, it looks good in Firefox and Calibre, but once it ends up on my ebook-reader, the table is on the left side.

Can anyone help me, please? Am I doing something wrong?
NASCARaddicted is offline   Reply With Quote