11 Replies - 10917 Views - Last Post: 25 November 2005 - 11:57 AM

#1 usemyskin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-November 05

align: justify in the "Interests" area.

Post icon  Posted 01 November 2005 - 09:35 PM

Hi! I am a new user of myspace and have been having a heck of a time with the coding! I pretty much have the layout as I want it, but for the life of me can not figure out how to change the text alignment for the "interests" area (general, movies, music topics, etc.)

What code do I need to use to change the alignment of those areas to "justify"? I have tried entering it on each subject, on the main scripting... I don't know what else to do. Please help!

my space: http://myspace.com/usemyskin

Thanks for anyone who responds!! :D

Is This A Good Question/Topic? 0
  • +

Replies To: align: justify in the "Interests" area.

#2 fyrestorm   User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: align: justify in the "Interests" area.

Posted 01 November 2005 - 10:14 PM

well, I was going to advise you to use this

style="text-align:justify"


but as I look at your site, it looks justified to me and I took a look at your code and noticed that you had that particular css element in a few places...so may I venture to say that: you got it ;) ???
Was This Post Helpful? 0
  • +
  • -

#3 usemyskin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-November 05

Re: align: justify in the "Interests" area.

Posted 02 November 2005 - 05:51 AM

yes, I did try putting it everywhere! But if you look at the left columns where it has "Andrea's Interests" none of the text is justified there. IMO, that looks totally sloppy and I have NO clue how to fix it!

Any other suggestions?
Was This Post Helpful? 0
  • +
  • -

#4 1lacca   User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: align: justify in the "Interests" area.

Posted 02 November 2005 - 12:50 PM

Looks-like you've found an (other) IE bug, because it is nicely justified in Firefox. I've tried setting the alignment in a couple of ways, but it didn't work out. So as I didn't have time to look deeper into it, here is a quick dirty fix:

        
<td id="ProfileGeneral"  width="175" bgcolor="d5e8fb" stlye="WORD-WRAP: break-word;">
<div align="justify">
I am interested in persuing the American Dream, which is subject to change at any time. My life is pretty well consumed with working, shopping and spending time with my chihuahua, Sebastian. I used to be all about having friends and clubbing and always having somewhere to go, but I realized that it didn't make me happy and my friends weren't real friends. So now I am happily single and have only a handful of friends that I love dearly. My life is exactly where I want it to be... for now, anyway.
</div>
</td>



In short, put a DIV element with align="justify" inside each TD tag, and place your text inside it. It should make it look as you intended on most browsers I think.

BTW, how well do you know Jenna Jameson?
Was This Post Helpful? 0
  • +
  • -

#5 fyrestorm   User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: align: justify in the "Interests" area.

Posted 02 November 2005 - 03:39 PM

usemyskin, on Nov 2 2005, 05:48 AM, said:

yes, I did try putting it everywhere! But if you look at the left columns where it has "Andrea's Interests" none of the text is justified there. IMO, that looks totally sloppy and I have NO clue how to fix it!

Any other suggestions?

I probably should have mentioned that I was looking at it in Firefox...

It looks like 1lacca might have your solution...like I said, I don't know what you can do with as far as editing the myspace code...I'm not a user...

Hopefully 1lacca's got you going in the right direction.
Was This Post Helpful? 0
  • +
  • -

#6 Arbitrator   User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 530
  • Joined: 26-January 05

Re: align: justify in the "Interests" area.

Posted 02 November 2005 - 03:56 PM

I noticed this line of code just under "Andrea's Interests":

<style type="text/css">
BODY, P, FONT {text-align: justify; }
</style>

You might try changing that to:

td, z {text-align: justify;}
- or -
#ProfileGeneral, #ProfileMusic, #ProfileMovies, #ProfileTelevision, #ProfileBooks, #ProfileHeroes {text-align: justify;}

I used reference to a <z> tag since it immediately precedes each interest listing, though I'm not sure what function the tag is supposed to serve. I'm also not sure that either method would work on the "ProfileGeneral" section since that stylesheet appears just after the respective "id" attribute and <z> tag. Not sure a stylesheet will work inside of another element at all for that matter (it's inside of a table cell).

If possible, you could try adding <span style="text-align: justify;"> to the beginning of every text section. Add the closing </span> tag at the end of each text section if possible too.

This post has been edited by Arbitrator: 02 November 2005 - 04:01 PM

Was This Post Helpful? 0
  • +
  • -

#7 usemyskin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-November 05

Re: align: justify in the "Interests" area.

Post icon  Posted 02 November 2005 - 07:06 PM

First of all, I know Jenna... very well. Let's just leave it at that.

Second of all, THANK YOU SO MUCH! It took a lot of effort and using a bit of code from each of you, but I *think* it's all good now. If I had the patience, I would totally try to change more.

I really want to make it so that the comments area is its own scrollable field so that the page doesn't go on and on and on and on....

so if you can help me with that, I'd love you forever! B)
Was This Post Helpful? 0
  • +
  • -

#8 fyrestorm   User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: align: justify in the "Interests" area.

Posted 02 November 2005 - 07:25 PM

i don't think i'm going to get your love forever with this post, but maybe i'll get it for part time ;)

you can do scrolling tables in mozilla, but not in ie...

check out this page: http://www.htmldog.c...dvanced/tables/

and scroll down to Headers, footers and the quest for the scrolling table

and read on :)
Was This Post Helpful? 0
  • +
  • -

#9 1lacca   User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: align: justify in the "Interests" area.

Posted 02 November 2005 - 09:12 PM

Hm, I think it is possible to make your comments section scrollable this way:

<div style="overflow: scroll; height: 200px;">

 <!-- CONTENT TO BE SCROLLED -->

</div>




The explanation: find the section you want to scroll, enclose it in a div tag as shown above, where the height: 200px part defines the height of the viewport you want - 200px is for 200 pixels, but you can use any css notation ofcourse. And naturally the <!-- CONTENT TO BE SCROLLED --> part should be substituted by your table of comments, or whatever you want to scroll.
Also, you can write auto instead of scroll so that your scrollbar only appears when needed, but i'm sure you'll always need the scrollbars because of the number of comments...

This time I've only tested it with IE, but I think it works in the "significant others", too.
Was This Post Helpful? 0
  • +
  • -

#10 fyrestorm   User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: align: justify in the "Interests" area.

Posted 03 November 2005 - 08:43 AM

and don't forget that you can use css to change the colors of the scrollbar
Was This Post Helpful? 0
  • +
  • -

#11 Arbitrator   User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 530
  • Joined: 26-January 05

Re: align: justify in the "Interests" area.

Posted 03 November 2005 - 05:03 PM

Only in Internet Explorer though.
Was This Post Helpful? 0
  • +
  • -

#12 dbfootballa3   User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 238
  • Joined: 24-November 05

Re: align: justify in the "Interests" area.

Posted 25 November 2005 - 11:57 AM

I don't know if I am right, but you could use the <span> tags?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1