Jump to content

Coding with vertical lines

Recommended Posts

 
 
Hi I've been creating a website and managed to find a code to create vertical lines on my site.
 
The code is .vertical-rule { display: block; width: 1px; background: #FFFFFF; height: 5250px; }
 
I love the look on a computer screen but when I go to mobile view the lines block up the other images. I want the lines removed on mobile display but to stay on the computer display.
 
Can anyone help me? 
 
I would be happy to provide my login details. 
Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

.vertical-rule { display: block; width: 1px; background: #FFFFFF; height: 5250px; }

@media only screen and (max-width: 600px) {
	.vertical-rule { display: none; } 
}

Use @ media to hide them until a set screen width.

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.