Solved

Aligning Text In A Div

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 51
HTML &#0153 2 21
CSS: Making responsive table look nicer 7 27
Html CheckBox obtain Its Value 5 18
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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…

831 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