Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want a thin transparent div line separator. How to do this in CSS/html? [closed]

Tags:

html

css

border

Basically I want a line like the ones that separate posts on stackoverflow, only I want it vertical and to be a kind of "left border" that will be in a separate div to display links and content. So instead of making a big rectangle on the left side with links and text, I just want like a really thin, subtle gray line that goes all the way down the page.

How would I go about doing this?

like image 270
user35698 Avatar asked Mar 04 '14 20:03

user35698


People also ask

How do I make a line separator in HTML?

HTML <hr> Tag The <hr> tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The <hr> tag is an empty tag, and it does not require an end tag. Used to specify the alignment of the horizontal rule.

How do you split a line in CSS?

The word–wrap property is used to split/break long words and wrap them into the next line. The overflow–wrap CSS property is applicable to inline elements & specifies that the browser can break the line inside the selected element into multiple lines in an otherwise unbreakable place.

How do you make a dotted line in CSS?

Using hr created two lines for me, one solid and one dotted. Plus, because you can make the width a percentage, it will always have some space on either side (even when you resize the window). Save this answer. Show activity on this post.

How do you make a vertical separator line in HTML?

To make a vertical line, use border-left or border-right property. The height property is used to set the height of border (vertical line) element. Position property is used to set the position of vertical line. Example 1: It creates a vertical line using border-left, height and position property.


1 Answers

You can do

.some-class
{
    border-left:1px solid #e2e2e2;
}
like image 98
bobek Avatar answered Oct 04 '22 04:10

bobek