0

I have the following RSS feed:

https://jsfiddle.net/yhtf36a1/

Right now, it gets displayed one below the other.

How do I use CSS to make it display two items per row, so that it looks like the following? enter image description here

I tried using display:inline-block but that didn't work.

2
  • use Flex-box. Commented Dec 19, 2017 at 9:30
  • create a parent div with 100% width then create child divs with 50% width. Commented Dec 19, 2017 at 9:31

2 Answers 2

1

Use the following CSS:

.entry-wrapper {
  float:left;
  width: 48%;
  background: lightblue;
  margin: 1%
}

See the example here: jsfiddle.net/GillesCoeman/5e8z00z1

Sign up to request clarification or add additional context in comments.

Comments

0

Hope this helps

*{font-family:arial}
.rssRow{display:flex}
.entry-wrapper{display:inline-block; margin:.25em;background:#f3f3f3; border:3px solid #f1f1f1; background:#FFF;padding:10px;border-radius:5px;}
.entry-wrapper:hover{background:#edfdff;border:3px solid #f4f4f4}
.entry-image{float:left;}
.entry-text{float:left;}
.entry-title h4{margin:0; font-size:1.5em;font-weight:bold;}
.entry-title h4 a {color:#333; text-decoration:none;}
.entry-title h4 a:hover{text-decoration:underline;}
.entry-date{color:#999; padding-bottom:.75em;font-size:.75em}

Preview at https://jsfiddle.net/itsselvam/yhtf36a1/3/

Let me know for any query on this

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.