1
tedsmith
Justifying Text in Blocks? How?
  • 2005/2/17 14:17

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


How can I justify blocks of text? I've tried

[j]Some text to justify[/j]


and that hasn't worked. I've done a search using the term 'justify', 'justify text' and 'text alignment' without any joy.

Any idea anyone? If there isn't a feature for it, could it be implemented in the same way that bold, underline, strikthrough and italics are?

2
studioC
Re: Justifying Text in Blocks? How?
  • 2005/2/17 14:19

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


catch the class of that block or content and add

.thatclass {
text-align:justify;
}

in to your style.css




michael

3
tedsmith
Re: Justifying Text in Blocks? How?
  • 2005/2/17 14:25

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


My block is called 'Welcome' and it contains the text I want to justify.

Sorry, I don't understand? What do you mean by

Quote:
catch the class of that block or content
?

I don't know much about css.

4
studioC
Re: Justifying Text in Blocks? How?
  • 2005/2/17 14:30

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


if i'm not too wrong ...

.blockContent should be your class ... so add
.blockContent {
text-align:justify;
}


into your file style.css



or course this will align all blocks of that class to justify...

michael

5
tedsmith
Re: Justifying Text in Blocks? How?
  • 2005/2/17 14:50

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Yes, that was it. In my case, I use the Zaja-System theme which has the following entry for the central centre column (there are four or five in this theme for various tables but I only wanted my central blocks justified) :

td#centerCcolumn div.blockContent
{    
    
margin-right0px;
    
margin-left0px;
    
margin-bottom3px;
    
line-height120%;
    
padding10px;
    
font-size12px;
    
color#0C0F14;
}


When I changed it to :

td#centerCcolumn div.blockContent
{
    
text-align:justify;
    
margin-right0px;
    
margin-left0px;
    
margin-bottom3px;
    
line-height120%;
    
padding10px;
    
font-size12px;
    
color#0C0F14;
}


it worked!

Thank you very much.

6
Wheeler
Re: Justifying Text in Blocks? How?
  • 2005/2/17 16:08

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Another way is to use div tag.


Justify this text here.


Can be used throughout your theme or directly within the custom block code.

7
tedsmith
Re: Justifying Text in Blocks? How?
  • 2005/2/18 17:55

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


That would have been easier than adjusting my css files because, although it has worked a treat, it's also justifying my NewBB 'Recent Topics' block which is not desirable. I may give your method a whirl too.

Thanks

Ted

8
tedsmith
Re: Justifying Text in Blocks? How?
  • 2005/2/18 18:07

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Yeah - tried your method, and put my css files back to how they were, and it's worked great. So now I can just select which blocks I want to justify the text in - super.

Thanks a lot.

9
Wheeler
Re: Justifying Text in Blocks? How?
  • 2005/2/19 0:44

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Your welcome!

By the way, how is Lost-Doggies.com coming along? I remember in December you wanted more activity, and maybe feeling a little frustrated.

Good luck with your project!

Login

Who's Online

256 user(s) are online (198 user(s) are browsing Support Forums)


Members: 0


Guests: 256


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits