TinyPortal

Development => Support => Topic started by: DonaldDasher on September 03, 2008, 09:41:10 PM

Title: Alignment of images and text in blocks
Post by: DonaldDasher on September 03, 2008, 09:41:10 PM
Can anybody help me with this - I'm trying to align images to the left with text aligned on the right. I've tried tables but they mess the spacing up.

This is for a front page block.



TinyPortal v1.0.5 beta
SMF 1.1.5
No Mods
http://www.pre-cert.co.uk/
Title: Re: Alignment of images and text in blocks
Post by: Takeelah on September 03, 2008, 11:19:46 PM
You could use a scriptbox and use html codes align=left & align=right.
Title: Re: Alignment of images and text in blocks
Post by: DonaldDasher on September 03, 2008, 11:26:47 PM
What is a scriptbox? Do you have any examples? Is it easy to set up?
Title: Re: Alignment of images and text in blocks
Post by: Takeelah on September 03, 2008, 11:43:16 PM
Yes, very. Just go to Tiny Portal Admin/Panels & Blocks. Choose what section of the page you want your text and pic on, either left column, right column or front page. Click on the one you want and at the top you choose the option to "add a block". When you add a block you can choose script block as your type and then click on edit to add your html or css. That's it. :)

An example (http://legion.worldofazolin.com/forum/index.php): I used a scriptblock for both the "Links" and "Announcement" blocks on my front page.
Title: Re: Alignment of images and text in blocks
Post by: DonaldDasher on September 03, 2008, 11:46:16 PM
I can see one called "scriptbox" - is that the one?
Title: Re: Alignment of images and text in blocks
Post by: Takeelah on September 03, 2008, 11:48:04 PM
Quote from: DonaldDasher on September 03, 2008, 11:46:16 PM
I can see one called "scriptbox" - is that the one?
Yep!
Title: Re: Alignment of images and text in blocks
Post by: DonaldDasher on September 04, 2008, 12:04:55 AM
Fixed! Many thanks for your help Takeelah ;-)
Title: Re: Alignment of images and text in blocks
Post by: Takeelah on September 04, 2008, 12:18:05 AM
My pleasure! Glad I could help.  ;)
Title: Re: Alignment of images and text in blocks
Post by: DonaldDasher on September 04, 2008, 12:19:36 AM
So you're new here too, eh?
Title: Re: Alignment of images and text in blocks
Post by: Takeelah on September 04, 2008, 12:56:13 AM
Hehe, yes. Total newb.  :)