Why is this text centered?

by 5 replies
6
Link: UGC Design

Why is the text above the image, and below "logo creator" centered?

Here is the html code of that section:
_____________

<p><span class="section-tagline">Logos are very important. Without a logo your brand/company is nothing! You need to make a logo when you are starting off, but at that point, you aren't yet rolling in the millions! Instead of risking your life by purchasing a professional logo by a graphic artist, why not purchase this program for an even cheaper price, and make unlimited logos that look professional, and are also easy to make.<br>
<br>
Our top pick is...
</span>
</h2>
</div>

_____________
#programming #centered #text
  • Try styling your <p> tag just before the span:

    <p style="text-align: left;"><span class="section-tagline">Logos are very important. Without a logo your brand/company is nothing! You need to make a logo when you are starting off, but at that point, you aren't yet rolling in the millions! Instead of risking your life by purchasing a professional logo by a graphic artist, why not purchase this program for an even cheaper price, and make unlimited logos that look professional, and are also easy to make.<br>
    <br>
    Our top pick is...
    </span>
    </h2>
    </div>
  • It shouldn't be, but the class, "section-tagline" is defined twice in the css style sheet. One of them has the text as centered.
  • Banned
    http://ugcdesign.com/css/style.css




    {
    font: 18px/29px 'Open Sans', Arial, sans-serif;
    font-weight: 300;
    color: #808080;

    max-width: 550px;
    margin: auto auto 80px auto;
    }
    • [1] reply

    • text-align: center; is what your after.

      You can also use

      text-align: left;
      text-align: right;

      or simply to remove, add 2x forward slashes
      //text-align: center;
  • You will have to modify it under the css lines of codes not on the html codes.

Next Topics on Trending Feed