Log In · Register

 
 
Closed TopicStart new topic
Justifying Text in a Div
LolitaDoll
post May 28 2007, 07:21 AM
Post #1


Senior Member
***

Group: Member
Posts: 41
Joined: May 2007
Member No: 524,468



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
post May 28 2007, 09:13 AM
Post #2


Death is a promise given to us at birth
*******

Group: Official Designer
Posts: 4,757
Joined: Mar 2004
Member No: 7,459



you can't justify list. It has break in it. You can only justify long sentences that fill up that div space.
 
LolitaDoll
post May 28 2007, 04:56 PM
Post #3


Senior Member
***

Group: Member
Posts: 41
Joined: May 2007
Member No: 524,468



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
post May 28 2007, 05:15 PM
Post #4


i lost weight with Mulder!
*******

Group: Official Designer
Posts: 4,070
Joined: Jan 2005
Member No: 79,019



try in your css:

CODE
#mlinks, #mlinks a {
text-align: justify; }
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: