...

View Full Version : How to make text appear centered?



dorhajaj
02-06-2012, 07:10 PM
hello!
this is my first question here and it's a very nooby one :)

[code]
div#left{
background-color:#E8E8E8;
float: left;
width:250px;
height:450px;
}

div#text{

text-align:center;
font-family:verdana;

}
[code]

the part of the text that is in the same width with the div#left appears a little to right than the rest of the text that follows.
thank you

felgall
02-06-2012, 08:12 PM
Text is always centred within ita container. If different centred text don't line up then it means that the containers don't line up. You will need to check the sidth and alignment of the containers to work out what the difference is.

dorhajaj
02-06-2012, 11:06 PM
-------



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum