Welcome visitor
* Login
* Register
It is currently May 23rd, 2019, 8:53 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  center and justify
PostPosted: August 6th, 2009, 4:33 am 

Posts: 27
hi, im trying to show the text that is inside my main div in justified format but the div should be aligned on the center of the screen, do you know how to get this?, i mean center the div without centering its content


Top
 Profile  
 
  Re: center and justify
PostPosted: August 6th, 2009, 4:53 am 

Posts: 17
its not so hard, just dont use the <center> tag :P

CSS
#main{width: 70%; height: 400px; text-align: center; margin:auto}

HTML
<div id="main">Put all your text here, and that's it</div>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron