...

View Full Version : Text not Centering!



<?austin ?>
10-26-2006, 02:29 AM
grrr, i have some misbehaving text that forsomereason is deciding to go to the left when i say Text-align: center;
i validated the page and everything and it still is messing up. i deleted the text-align: left; in the wrapper div and it still is acting up! im stumped.

relevent code:

#content {
background:#7B9ABB;
text-align:center;
}

---

<div id="content">
<?PHP
$number = "5";
include("cutenews/show_news.php");
?>
</div>

the page renders as so: http://flashanims.com/flashanims.php

view the source to see the entire code. thanks!

Erindesign
10-26-2006, 02:39 AM
Check cutenews template. You are just including a few divs in there. The text properties will inherit the actual div they are in, not layers.

_Aerospace_Eng_
10-26-2006, 02:38 PM
Try this for your #content div

#content {
background:#7B9ABB;
width:420px;
margin:auto;
text-align:left;
}
text-align:center; does not center block level elements

<?austin ?>
10-27-2006, 12:02 AM
oh, i thought the cutenews shownews.php only generated text and the rest was up to me for actually using it (ie: divs etc) thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum