Jump to content

Aligning Text

Go to solution Solved by paul2009,

Recommended Posts

Site URL: https://bettertotalk.com

Hi,

I'm trying to find a better way of aligning the text in my footer so that the opening times are aligned. I think that TAB should work but in Squarespace pressing that key cycles around blocks. I have used the space key in the image below but obviously they aren't quite lined up. I also tried to use 2 different text blocks, but as you can see in the 2nd screenshot, they start to overlap when on a smaller screen.

Is there a way to implement this?

Thanks in advance!

 

image.thumb.png.b366fa84744fa3628d2078cf0b701cfc.png

 

image.thumb.png.9b3a9dcd449865ba53ab9436dbea8488.png

image.png

Link to comment
  • Solution
27 minutes ago, Phobic78 said:

I'm trying to find a better way of aligning the text in my footer so that the opening times are aligned.

There used to be an Opening Hours feature in Squarespace 7.0 but, as you've found, you must manually create this in Squarespace 7.1.

You may want to use a table for this information, by adding it to a Code Block. For example, add a Code Block and then add the following information to the Code Block (noting the settings in the screenshot below):

<style>
th {
  text-align: left;
  padding-right: 7px;
}  
</style>

<table>
<tr><th>Monday</th><td>08:00 - 22:00</td></tr>
<tr><th>Tuesday</th><td>08:00 - 22:00</td></tr>
<tr><th>Wednesday</th><td>08:00 - 22:00</td></tr>
<tr><th>Thursday</th><td>08:00 - 22:00</td></tr>
<tr><th>Friday</th><td>08:00 - 22:00</td></tr>  
</table>

 

image.thumb.png.cecf701a2e1ee089bebe53acf1f74e2b.png

image.png.7822309ee87617450208b3625b9f9caf.png

  If this post has helped you, please click a 'Like' or 'Thanks' icon below  ⬇️

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
2 hours ago, paul2009 said:

There used to be an Opening Hours feature in Squarespace 7.0 but, as you've found, you must manually create this in Squarespace 7.1.

You may want to use a table for this information, by adding it to a Code Block. For example, add a Code Block and then add the following information to the Code Block (noting the settings in the screenshot below):

<style>
th {
  text-align: left;
  padding-right: 7px;
}  
</style>

<table>
<tr><th>Monday</th><td>08:00 - 22:00</td></tr>
<tr><th>Tuesday</th><td>08:00 - 22:00</td></tr>
<tr><th>Wednesday</th><td>08:00 - 22:00</td></tr>
<tr><th>Thursday</th><td>08:00 - 22:00</td></tr>
<tr><th>Friday</th><td>08:00 - 22:00</td></tr>  
</table>

 

image.thumb.png.cecf701a2e1ee089bebe53acf1f74e2b.png

image.png.7822309ee87617450208b3625b9f9caf.png

  If this post has helped you, please click a 'Like' or 'Thanks' icon below  ⬇️

Thanks @paul2009, this is exactly what I needed!

Link to comment

I'm pleased it helped 🙂

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.