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

On 7/11/2022 at 9:31 AM, tuanphan said:

Veronica

Password is incorrect

 Sorry its all lowercase

Password is: veronica

Edited by TLCDeisgn
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.