Solved

Aligning Text In A Div

Posted on 2015-02-01
2
67 Views
Last Modified: 2015-02-01
I am trying to center text in a div.  The div is centering but not the text.
<style>
.logogogo {
	width: 50%;
    margin: 0 auto;
	background-color:#FC6;
}
</style>

Open in new window


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

Open in new window


www.mediascrubber.com
0
Comment
Question by:DS928
2 Comments
 
LVL 57

Accepted Solution

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

Author Closing Comment

by:DS928
ID: 40582698
Thank you!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now