Solved

Aligning Text In A Div

Posted on 2015-02-01
2
75 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change color in a check box 8 35
center text in div with CSS3 2 30
Page link not showing on Mobile Device 3 50
My tooltip is not displaying correct 11 16
This article discusses how to create an extensible mechanism for linked drop downs.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

732 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