#1
Hey, Pit. I've got a question that the coders/programmers among might be able to answer.

So, I'm a bit of a HTML/CSS noob. What I'm trying to do on the site that I'm building is have some justified text, but that doesn't spread across the page.
What I have is as follows:
body { text-align:center;}

And it's just a disgusting, annoying to read wall-of-text. I need to confine it within borders, but I'm not sure how to do that, and I can't seem to find how on w3schools.com.

Help me?
Your flesh means more than you.
No profit...
For once no profit...


Quote by She
That's what.




CHECK IT OUT NOW
FUNK SOUL BROTHER
#3
how about you leave the body as is and then add a div with a style=" " in it?

like <div style="text-align: center; width=500px;"> (it could have any width)

EDIT: just noticed the border one. I think you should add somehting like Border: 1px; into the style=" " thing
Last edited by Vendetta V at Nov 23, 2011,
#4
Meh, I checked out the padding tags thing and it looks fine. Thanks, bro.
Your flesh means more than you.
No profit...
For once no profit...


Quote by She
That's what.




CHECK IT OUT NOW
FUNK SOUL BROTHER
#6
Quote by GazzaCee
Meh, I checked out the padding tags thing and it looks fine. Thanks, bro.

No worries bro
#7
I'm fairly certain that justified is a text tag.
<center>
   <table width=x% height=y% border=0px>
      <tr>
         <td>
            text goes here
         </td>
      </tr>
   </table>
</center>

Or something like this?
Last edited by Dirge Humani at Nov 23, 2011,