Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1
  • 2

TOPIC: Tables on navigation pages

Tables on navigation pages 7 years 3 hours ago #967

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 73
  • Thank you received: 0
Hi,
I need to put a couple of tables on one of the navigator page types (tabbed navigator). When I have added the table (html) and go to preview there is always a large blank area before each table (see screen shot attached. Does anybody know why this is happening? Can anyone suggest a CSS fix for this?
Thanks,
Karl
Attachments:

Please Log in or Create an account to join the conversation.

Tables on navigation pages 6 years 11 months ago #971

  • coursenligne
  • coursenligne's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 43
  • Thank you received: 3
Hi,
First question : what is the software version you are using?
It seems that this is through XOT,is that right?
Second question: I can see in your attachment that there is text before the table. The image however seems to show near the top of the page and the text doesn't seem to show-up.
Is there an issue here?
What abourt replacing the tags <p> </p> (the 2 of them) with a simple <br \>?
I would have a go with this.
Last but not least, can you tell me the category (the type of object) you inserted, I would then be able to have a quick look locally here (when I have a couple of minutes free :) )
If I can help I will do for sure...

Please Log in or Create an account to join the conversation.

Last edit: by coursenligne. Reason: bad tag mention!!!

Tables on navigation pages 6 years 11 months ago #976

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 73
  • Thank you received: 0
Hi Eric,
Thanks for taking the time to look at this. Yes we're using XOL 2.0. The problem is that blank area above the table. I enter the table code
Here are the modifier key symbols you may see in OS X menus:
<table width="100%" border="0" cellpadding="1" cellspacing="1">
    <tbody>
        <tr>
            <td width="5%">⌘</td>
            <td>Command key</td>
        </tr>
        <tr>
            <td width="5%">⌃</td>
            <td>Control key</td>
etc. and the table itself displays fine but it is the large blank area is above it that is the problem. For some reason multiple <br> are being added between the text and the table (see attached). I was hoping someone had a quick CSS fix?
Cheers

Please Log in or Create an account to join the conversation.

Tables on navigation pages 6 years 11 months ago #977

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 73
  • Thank you received: 0
Hi Eric,
Thanks for taking the time to look at this. Yes we're using XOL 2.0. The problem is that blank area above the table. I enter the table code
Here are the modifier key symbols you may see in OS X menus:
<table width="100%" border="0" cellpadding="1" cellspacing="1">
    <tbody>
        <tr>
            <td width="5%">⌘</td>
            <td>Command key</td>
        </tr>
        <tr>
            <td width="5%">⌃</td>
            <td>Control key</td>
etc. and the table itself displays fine but it is the large blank area is above it that is the problem. For some reason multiple <br> are being added between the text and the table (see attached). I was hoping someone had a quick fix?
Cheers
Attachments:

Please Log in or Create an account to join the conversation.

Tables on navigation pages 6 years 11 months ago #979

  • jjs
  • jjs's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 379
  • Thank you received: 63
ALL of your table code needs to be on the same line.

This is the problem with adding HTML in to fields that weren't designed to hold HTML... every line break between the <table></table> tags is converted to a <br /> and since these don't render between table lines they end up ABOVE the table...

Try changing

<table>
<tbody>
<tr>  <td width="5%">⌘</td>  <td>Command key</td>  </tr>
<tr>  <td width="5%"></td>  <td>Command key</td>  </tr>Etc

To

<table><tbody><tr>  <td width="5%">⌘</td>  <td>Command key</td>  </tr><tr>  <td width="5%"></td>  <td>Command key</td>  </tr>etc

Please Log in or Create an account to join the conversation.

Tables on navigation pages 6 years 11 months ago #980

  • coursenligne
  • coursenligne's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 43
  • Thank you received: 3
I would need to give a try on XOT, but I don't remember having this.
I guess that if you remove the <BR> (just as a test as this can't be an acceptable solution) they are coming back ??

I'm not convinced this is CSS related. Could you please point me out the tool you are using so I can give a try here?
Thanks...

Obviously others are more than welcome to help to troubleshoot (I'm far away from an expert!)
If I can help I will do for sure...

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: jjs
Time to create page: 0.047 seconds
Copyright © 2020 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search