JSFiddle - React, Tailwind, and code Playground

by Annett

HTML

<section class="module cf">
        <h4>Music News</h4>
        
        <article class="media-box">
            <a href="#" class="img"><img width="75" src="http://netstorage.metrolyrics.com/artists/boa/small/img-1198975325.jpg">
                
                <span class="title">Hear the Full version of Adele's 
                    "Skyfall" from New James Bond 
                    Movie + Lyric Video</span></a><span style="width: 60%;">60%</span>
                
            </article>
            
            <article class="media-box">
                
                <a href="#" class="img"><img width="75" src="img/thumb2.jpg">
                    
                    <span class="title">Adele Will Sing The New Bond 
                        Theme Song "Skyfall"</span></a>
                    
                </article>
                
                <article class="media-box">
                    
                    <a href="#" class="img"><img width="75" src="img/thumb3.jpg">
                        
                        <span class="title">Adele Will Sing The New Bond 
                            Theme Song "Skyfall"</span></a>
                        
                    </article>
                    
    </section>

CSS

.module{
    width:300px;
}


div.mod {
	margin: 0 0 1.5em 0;
	padding: 15px;
	background: #fff;
	}

ul.lst li {
	margin: 0 0 2px 0;
	position: relative;	
	}

ul.lst li a {
	position: relative;
	display: block;
	height:57px;
	z-index: 2;
	}

ul.lst li em {
	float: left;
	margin: 0 5px 0 0;
	font-style: normal;
	font-weight: normal;
	color: #9c836e;
	}

ul.lst li span {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	height: 100%;
	line-height: 2.55em;
	text-indent: -9999px;
	background: #f3f2e8;
	} 

ul.lst li:hover span {
	background: #ecebe1;
	} 

	.media-box{
	    float:left;
	    margin-right:10px;
	    overflow: hidden;
	    padding:10px 0;
	    border-bottom:#eaeaea 1px solid;
}

	.media-box img{
	        float:left;
	        margin-right:20px;
	    }

	.media-box a {
	    	font-size:12px;
	    	font-weight: bold;
	    }

	.media-box:hover {
	background: #ecebe1;
	}