Ich habe den folgenden HTML-Code im Bootstrap und ich möchte alle Dinge zu zentrieren, aber nach links ausgerichtet, füge ich hier ein Bild, um besser zu verstehen.Center Text im Bootstrap
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<dl class="sp-methods text-center">
\t <dt>Free Shipping</dt>
\t <dd>
\t \t <ul>
\t \t \t <li>
\t \t \t \t <div class="radio">
\t \t \t \t \t <label for="s_method_freeshipping_freeshipping">
\t \t \t \t \t <input class="radio" type="radio" checked="checked" value="freeshipping_freeshipping" name="shipping_method">Free<span class="price">$0.00</span></label>
\t \t \t \t </div>
\t \t \t </li>
\t \t </ul>
\t </dd>
\t <dt>Choose Your Shipping Method</dt>
\t <dd>
\t \t <ul>
\t \t \t <li>
\t \t \t \t <div class="radio">
\t \t \t \t \t <label for="s_method_my_1">
\t \t \t \t \t <input id="s_method_my_1" class="radio" type="radio" value="s_method_my_1" name="shipping_method">7 Kg<span class="price">$57</span></label>
\t \t \t \t </div>
\t \t \t </li>
\t \t \t <li class="text-center">
\t \t \t \t <div class="radio">
\t \t \t \t \t <label for="s_method_my_2">
\t \t \t \t \t <input id="s_method_my_2" class="radio" type="radio" value="s_method_my_2" name="shipping_method">5 Kg<span class="price">$15</span></label>
\t \t \t \t </div>
\t \t \t </li>
\t \t </ul>
\t </dd>
</dl>
Ihr Snippet sieht bereits zentriert aus. –
aber nicht in der linken, möchte ich zentriert werden, aber nach links in der Mitte ausgerichtet – Robert
ok. dann benutze einfach: 'margin: 0 auto;' –