Jump to content

Trying to layer text over images/videos on mobile with CSS?

Recommended Posts

I'm trying to move the text up so it's slightly layered on top of the video. I was able to do it on desktop but I am having trouble with the mobile CSS. It'll move left or right but I can't get it to move up or down. This is the code I've been using:

@media screen and (max-width: 640px) {
  #blockidhere {
position: absolute;
margin-top: -100px;

}

Screen Shot 2022-05-05 at 11.57.38 AM.png

Link to comment
  • Replies 1
  • Views 206
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.