Sarah
Sarah

Reputation: 302

Styling RSS feed in CSS

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.

Upvotes: 0

Views: 940

Answers (2)

Selvam Elumalai
Selvam Elumalai

Reputation: 693

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

Upvotes: 0

GllsBe
GllsBe

Reputation: 34

Use the following CSS:

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

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

Upvotes: 1

Related Questions