• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 82
  • Last Modified:

Aligning Text In A Div

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
DS928
Asked:
DS928
1 Solution
 
giltjrCommented:
In your CSS try adding "text-align: center;"
0
 
DS928Author Commented:
Thank you!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now