JSFiddle - React, Tailwind, and code Playground

by MrLister

HTML

<ul class="main-services border-common">

    <li class="service-1">
        <a href="#">
            <img src="http://farm8.staticflickr.com/7177/6928101513_9288b942e8_t.jpg" alt="blah" />
            <span>Some text goes here</span>
        </a>
    </li>

    <li class="service-2">
        <a href="#">
            <img src="http://farm8.staticflickr.com/7177/6928101513_9288b942e8_t.jpg" alt="blah" />
            <span>More text here</span>
        </a>
    </li>

    <li class="service-3"><a href="#">
        <img src="http://farm8.staticflickr.com/7177/6928101513_9288b942e8_t.jpg" alt="blah" />
        <span>More text goes here but this text overruns</span>
        </a>
    </li>
</ul>

CSS

/* HTML reset starts */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* HTML reset ends */

.main-services { overflow: auto; padding: 17px 0 9px 0; } 
.main-services li { float: left; border-right: 1px dashed #E53B00; padding-right: 14px; } 
.main-services li a { display: block; height: 78px; color: #ED5D04; text-decoration: none; } 
.main-services li a img { vertical-align: middle} 
.main-services li a span {display:inline-block; vertical-align:middle;}
.service-1 span {width:85px;}
.service-2 span {width:131px;}
.service-3 span {width:151px;}