Help - Search - Members - Calendar
Full Version: Justifying Text in a Div
Forums > Resource Center > Webmasters' Corner > Resolved Topics
LolitaDoll
Hi,

I'm having trouble justifying my text in a div layer. I have a list of links that i want to justify but im not sure how or where exactly to put the code.

Here's the code for the div and where my links are.

CODE
<div id="mlinks">

<a href="url">Home ♥</a><br>
<a href="url">Browse ♥</a><br>
<a href="url">Search ♥</a><br>
<a href="url">Invite ♥</a><br>
<a href="url">Film ♥</a><br>
<a href="url">Mail ♥</a><br>
<a href="url">Blog ♥</a><br>
<a href="url">Favs ♥</a><br>
<a href="url">Forums ♥</a><br>
<a href="url">Groups ♥</a><br>
<a href="url">Events ♥</a><br>
<a href="url">Videos ♥</a><br>
<a href="url">Music ♥</a><br>
<a href="url">Comedy♥</a><br>
<a href="url">Classified ♥</a>
</div>


Would i put the text justify code in the link code or the div properties in my css or what?

Thanks in advance,

LD ^-^
moorepocket
you can't justify list. It has break in it. You can only justify long sentences that fill up that div space.
LolitaDoll
Oh ok. well is there a way to line up the left and right side? Because I want all the hearts lined up straight underneath each other. Is there a way to space it out or something?
Mulder
try in your css:

CODE
#mlinks, #mlinks a {
text-align: justify; }
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.