JSFiddle - React, Tailwind, and code Playground

by blasteralfred

HTML

<div id="div1">
    <div id="div2">
        <a href="">text1 text2 text3 text4  text5 text6 text7 text8<img src="http://i.imgur.com/VlyB1.jpg"></a>
    </div>
</div>

CSS

#div1 {
    height: 100px;
    background-color: #CCCCCC;
}
#div2 {
    display: inline;
    height: 48px;
    margin: 0;
    padding: 0;
    position: relative;
    white-space: nowrap;
}
#div2 a {
    display: block;
    background-color: #FF9900;
    height: 51px;
    width: 150px;
    padding-right: 50px;
    text-decoration: none;
    word-wrap: break-word;
    white-space: normal;
}
#div2 img {
    border:0;
    float: right;
}