Jump to content

Issues with Table when Resizing to Page Width

Recommended Posts

Hi, I created a table to list some information in my Privacy Policy - see clause 1 and clause 14.

https://www.eyzhn.co/privacy-policy

Occasionally, upon resizing the window, a large blank space appears either above or below both tables.

Here is the code:

<!DOCTYPE html>
<html>
<head>
<style>
table {
  font-family: europa;
  color: #223635;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 0px solid #6c988d;
  text-align: left;
  padding: 1px;
}
  a:link, a:visited {
  color: #ff8e57;
  cursor: pointer;
}

a:link:active, a:visited:active {
  color: #ff8e57;
}
  
</style>
</head>
<body>
<table>  
    <tr>
    <td style="vertical-align: top"><b>Row 1 Column 1</b></td>
    <td style="width:60%"><b>Row 1 Column 2</b></td>
    </tr>

  <tr>
    <td style="vertical-align: top">Row 2Column 1</td>
    <td style="width:60%">Row 2 Column 2</td>
    </tr>

  <tr>
    <td style="vertical-align: top">Row 3 Column 1</td>
    <td style="width:60%">Row 3 Column 2</td>
    </tr>  
  
</table>
</body>
</html>

Screenshot 2022-11-02 at 1.50.51 PM.png

Screenshot 2022-11-02 at 1.51.16 PM.png

Screenshot 2022-11-02 at 1.52.09 PM.png

Edited by avanti
missing attachments
Link to comment
  • Replies 2
  • Views 153
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

8 hours ago, avanti said:

Hi, I created a table to list some information in my Privacy Policy - see clause 1 and clause 14.

https://www.eyzhn.co/privacy-policy

Occasionally, upon resizing the window, a large blank space appears either above or below both tables.

Here is the code:

<!DOCTYPE html>
<html>
<head>
<style>
table {
  font-family: europa;
  color: #223635;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 0px solid #6c988d;
  text-align: left;
  padding: 1px;
}
  a:link, a:visited {
  color: #ff8e57;
  cursor: pointer;
}

a:link:active, a:visited:active {
  color: #ff8e57;
}
  
</style>
</head>
<body>
<table>  
    <tr>
    <td style="vertical-align: top"><b>Row 1 Column 1</b></td>
    <td style="width:60%"><b>Row 1 Column 2</b></td>
    </tr>

  <tr>
    <td style="vertical-align: top">Row 2Column 1</td>
    <td style="width:60%">Row 2 Column 2</td>
    </tr>

  <tr>
    <td style="vertical-align: top">Row 3 Column 1</td>
    <td style="width:60%">Row 3 Column 2</td>
    </tr>  
  
</table>
</body>
</html>

Screenshot 2022-11-02 at 1.50.51 PM.png

Screenshot 2022-11-02 at 1.51.16 PM.png

Screenshot 2022-11-02 at 1.52.09 PM.png

I check that you are using the fluid engine which allows you to drag, expanse, reduce for mobile and desktop. Have you tried it out?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.