The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Problem centering the text
I am finding it difficult to center the main text of my website. Though navigation/header and footer are showing centered while the main text of the web page is not showing as centered. Can you please help.
http://www.reservations.bookmyhotel.biz/hotel/10019132-11241453O.html
I’m not sure what you mean by “centering the text”. Have you tried `text-align: center`?
If you mean the text inside the div with class description, you’ll need to add:
.description > p { text-align: justify; }
in your stylesheet. I’m suggesting justify instead of center, because that looks better.