Jump to content

How to format text overlay (on image)?

Recommended Posts

How do I align the text to be over the photo? 

On the preview version its exactly how I want it but on the actual website text is extended across the page. Please find attached the screenshots of comparison.

I am currently using a photo with a text block underneath and the following code to move the text onto the photo:

#block-yui_3_17_2_1_1657493916918_3930, #block-yui_3_17_2_1_1657474776502_3397 h1 {

    position: absolute;

    z-index: 9;

    top: 90px;

    left: -30px;

} 

 

 

Edited by TLCDeisgn
Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Try this new code

#block-yui_3_17_2_1_1657493916918_3930, #block-yui_3_17_2_1_1657474776502_3397 h1 {
    position: absolute;
    z-index: 9;
    top: 90px;
    left: -30px;
    left: 50%;
    transform: translateX(-50%);
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
10 hours ago, tuanphan said:

Try this new code

#block-yui_3_17_2_1_1657493916918_3930, #block-yui_3_17_2_1_1657474776502_3397 h1 {
    position: absolute;
    z-index: 9;
    top: 90px;
    left: -30px;
    left: 50%;
    transform: translateX(-50%);
}

 

it worked!! 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.