You are here: Dynamic Height based on Content « PHP Programming Language « IT news, forums, messages
Dynamic Height based on Content

Posted by Johanna on 11/26/06 14:26

I am a real php newbie, I am having to learn as I go along - no time for
tutorials or books!

Background to my problem:
I am working on a Wordpress theme for my personal blog
-http://www.vikingprincess.net
The layout is a centre column and two sidebars.

I just decided I want a fourth sidebar at the very right, floating at
the right of the rest of the content.

The reason for the fourth sidebar is to [I]display some images for
decoration[/I] to the right of the content.
This is done at the moment, using a 1 column table, with one picture per
row.

The images are set using the rand() function and an array. They are of
no relevance other than decoration, so I only want images to be
displayed as long as there is content in the right sidebar which is next
to it.

Problem:
I would like the number or pictures display (img) or rows in the table
to be dynamically set, depending on the height of the right sidebar.

i.e. something like this:
********************
..outer_sidebar{height = $height_of rightsidebar}
********************
I'd like for enough rows / img to be produced until the height of the
outer sidebar is equal to the length of the right sidebar! Some kind of
"Loop until", I guess.

At the moment, the amount of rows in the table (and images to display)
is static.

Please would you be able to point me in the right direction for how to
go about achieving this? It's best done using php / javascript, right?
But how?

Best
Jo

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация