如何将div和文本对齐左边?

时间:2016-04-27 10:07:47

标签: css

我有这个演示http://jsfiddle.net/CGP87/2601/,但我不知道如何将这个div居中并在其中将此文本对齐左侧。有什么建议吗?

<div style="width:100%;">
    <div class="row-left">
        <h2>BAVARIA 31</h2>
        <h4>(ID : 1021)</h4>
        <div class="stars-rating">
           <fieldset class="rating">
            <input type="radio" id="star5" name="rating" value="5" /><label for="star5" title="Rocks!">5 stars</label>
            <input type="radio" id="star4" name="rating" value="4" /><label for="star4" title="Pretty good">4 stars</label>
            <input type="radio" id="star3" name="rating" value="3" /><label for="star3" title="Meh">3 stars</label>
            <input type="radio" id="star2" name="rating" value="2" /><label for="star2" title="Kinda bad">2 stars</label>
            <input type="radio" id="star1" name="rating" value="1" /><label for="star1" title="Sucks big time">1 star</label>
         </fieldset>
        </div>
    </div>
</div>

0 个答案:

没有答案