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
  • Views 932
  • Created
  • Last Reply
.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


This topic is now archived and is closed to further replies.

  • 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.