WordPress.org

Forums

WP-Table Reloaded
[resolved] Need help with width of table and columns (8 posts)

  1. jkgourmet
    Member
    Posted 4 years ago #

    The that includes the troublesome table (WP version 3.01, Atahualpa theme):

    http://gringodog.com/pet-friendly-hotels/pet-friendly-hotel-mexico/

    The same table format will be used on multiple pages, and I do not expect to be using tables for any other purpose on this site. Therefore, I have left out the id-tags on the CSS. (If it makes a difference, it's id-9)

    My goal is to have this table fit in the body of the page, allowing the right sidebar to be visible, and then to adjust the width of each of the 5 columns as necessary (I may have to decrease the font size or use a page template that does not have a right sidebar. The table width of 500px and the % for each column are just guesses at this point.)

    I've tried a lot of different things, but can't get anything to make those columns or the table itself change in width. Here is the code that I've put into the CSS, including what makes some changes to fonts, etc.

    .wp-table-reloaded {
    width: 500px!important;
    }

    .wp-table-reloaded .column-1 {
    width: 15%;
    }

    .wp-table-reloaded .column-2 {
    width: 20%;
    }

    .wp-table-reloaded .column-3 {
    width: 20%;
    }

    .wp-table-reloaded .column-4 {
    width: 15%px;
    }

    .wp-table-reloaded .column-5 {
    width: 10%px;
    }

    .wp-table-reloaded td {
    font-family: arial;
    font-size: 13px;
    color: #000000;
    }

    .wp-table-reloaded .column-1 {
    font-weight: bold!important;
    }

    .wp-table-reloaded .row-1 th {
    font-weight: bold!important;
    font-size: 16px;
    color: #990000!important;
    background: #D1E8FF;
    }

    .wp-table-reloaded-table-description {
    font-family: Arial;
    font-size: 12pt;
    font-weight: bold!important;
    color: #365DA0;
    }

    .dataTables_filter {
    font-weight: bold!important;
    color #990000!important;
    }

  2. TobiasBg
    Member
    Plugin Author

    Posted 4 years ago #

    Hi,

    I just had a look at the site and inspected it using Firebug, but unfortunately I can not find a reason on why the table is expanding that much and makes the right sidebar invisible. I also did not see a missing CSS command :-( Sorry.

    I did however notice, that the theme also uses tables to generate the layout for the sidebars. This is actually not recommended, as tables should not be used for layout purposes.

    Regards,
    Tobias

  3. jkgourmet
    Member
    Posted 4 years ago #

    Thanks for the quick response, Tobias. I have asked the developers of Atahualpa about this, and asked for their assistance.

    But in the meantime, I tried it with three other themes - including Twenty-Ten. All have similar results, none allowing me to change the width of the table or the columns using the code I have given you above.

    I have tried it with and without the "bAutoWidth": false in the custom Java Script field (I'm not familiar with JS, but did find this instruction somewhere on this forum.)

    I had the site set to a 1000px fixed width. I fooled with different configurations, thinking that might be the problem - no change. Now have changed it to a 99% fluid width, with a 990px minimum.

    I'm stumped. HELP???

  4. TobiasBg
    Member
    Plugin Author

    Posted 4 years ago #

    Hi,

    I believe I have found a possible reason:
    In the third column you are having very long texts like

    begin_of_the_skype_highlighting              xyz-xyz-wxyz      end_of_the_skype_highlighting

    However, the spaces there are non-breaking spaces ( ). This means, that the browser will never be able to add a line break in that line of text. This means, that the width of that column will always be at least as wide as that text, but never shorter. Even CSS commands that shall make the columns more narrow do then have no effect, because the content of the cell simply requires that larger width. Do you know what I mean?
    A solution would be to replace the non-breaking spaces with regular spaces (although that might not be what you intend with those text commands, if I understand them correctly).

    Best wishes,
    Tobias

  5. jkgourmet
    Member
    Posted 4 years ago #

    BINGO! It was the damn Skype extension that gets automatically installed to FF that was causing those phone numbers to get that Skype code, which WAS causing all these problems.

    Now I'm off to make sure I get rid of the add on that was automatically put on IE, no doubt.

    As much as I like Skype, I wish they didn't just do crap like this. . .

    Thanks, Tobias.

  6. TobiasBg
    Member
    Plugin Author

    Posted 4 years ago #

    Hi,

    no problem :-) I guess the stupid thing about that Skype extension is that they do their replacement even in textboxes and not just on an actual page...

    Best wishes,
    Tobias

  7. jkgourmet
    Member
    Posted 4 years ago #

    Evidently, when you install Skype, it "automatically" puts an extension into FF and an add on into IE. That helpful little tool turns phone numbers into numbers that have that little Skype phone icon next to them and they are also clickable to make a Skype call. This also adds a bunch of code.

    It was that helpful little automatically added Skype code that was causing the problems in my table - everytime I entered a phone number, it added the code.

    I found this which helped me discover how to remove this crap.

    http://forum.skype.com/index.php?showtopic=113096

    Sigh.

  8. TobiasBg
    Member
    Plugin Author

    Posted 4 years ago #

    Hi,

    thanks for sharing that link! Hopefully it will help people who also have such problems with Skype!

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Table Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic