-1

How can I implement something in html that can separate sections, for a example, a simple line...

Section 1: BLAH BLAH BLAH


Section 2: BLAH BLAH BLAH

Because as of now, my html just looks like this:

Section 1: BLAH BLAH BLAH

Section 2: BLAH BLAH BLAH

I've used <br> but I think it would look a lot better if there was an actual separator of some sort.

1

1 Answer 1

2

you just used hr in your post.
this is another way to do it.

HTML:

<span class="section">Section 1: BLAH BLAH BLAH</span>
<span class="section">Section 2: BLAH BLAH BLAH</span>

CSS:

.section{
    border-bottom:1px solid gray;
}
.section:last-child{
    border-bottom:0px;
}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.