Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Center sub-title



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 post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

Create an account or sign in to comment

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

  • Create New...