Aligning Text In A Div

Posted on 2015-02-01
Medium Priority
Last Modified: 2015-02-01
I am trying to center text in a div.  The div is centering but not the text.
.logogogo {
	width: 50%;
    margin: 0 auto;

Open in new window

<div class="logogogo">Add logos here.</div>

Open in new window

Question by:DS928
LVL 57

Accepted Solution

giltjr earned 2000 total points
ID: 40582623
In your CSS try adding "text-align: center;"

Author Closing Comment

ID: 40582698
Thank you!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question