Solved

Aligning Text In A Div

Posted on 2015-02-01
2
70 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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…

929 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

9 Experts available now in Live!

Get 1:1 Help Now