[Solved] Creating paragraph layout [closed]


Here’s a simplified version of what you’re going for in your code.

.advantages p {
    width: 45%;
    float: left;
    border: dashed 1px red;
}

.advantages p:nth-child(even) {
    float: right;
}

One thing you were missing is setting the width of the paragraphs. Things will look a little goofy when the lines of text in a paragraph are different, but this is (an) answer to your question.

Fiddle: https://jsfiddle.net/stgermaniac/wa1w319z/

solved Creating paragraph layout [closed]