Jump to content

Center sub-title

Recommended Posts

Site URL: https://puma-orb-9lss.squarespace.com/projects/metal-shop

I'm looking to vertically center the location and photography sub-titles with the main title. Is this possible? This is the code I have so far. 

The most difficult part (for me at least) is to also having the photography show up inline on the right. 

<div style="line-height:40px; float:left">
  <h2 style="display:inline; font-weight:bold">Project Title</h2>
  <h2 style="display:inline">|</h2>
  <h3 style="display:inline; color:grey">Location, NY</h3>
<div style="line-height:40px; float:right">
  <h3 style="display:inline; font-style:italic; color:grey">Photography: Name Last</h3>
<div style="clear:both;"></div>

<p style="text-align: justify">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Link to comment
  • 2 weeks later...
  • Replies 1
  • Views 1k
  • Created
  • Last Reply


This topic is now archived and is closed to further replies.

  • 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.