This is a discussion on "Forcing a 3 row layout dynamically" within the Web Page Design section. This forum, and the thread "Forcing a 3 row layout dynamically are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Forcing a 3 row layout dynamically
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Forcing a 3 row layout dynamically
Hi,
Does anyone know how I can force my table to be in a 3 row format with the number of columns created dynamically. As I would like items to be displayed in a fixed div. However I want them to be able to scroll through the table with horizontal as opposed to vertical scroll bars. When I've tried it, it comes out in a 3 column format, with the 4th row hidden from view. In summary I would like a new column to be created for every 4th item. I have done this using tables, but I was told that I was using too many as each item was wrapped in a table which was in turn wrapped in a table cell, which when the number of cells created hit 4 a new column was created. Here's a static version of what I had orignally:
Thank you in advance Last edited by karinne; Apr 7th, 2007 at 13:30. Reason: Please use [code]...[/code] tags when displaying code! |
|
|
|
#2
|
||||
|
||||
|
Re: Forcing a 3 row layout dynamically
A server side language is the only way to do something like that. PHP or ASP for example.
|
|
#3
|
|||
|
|||
|
Re: Forcing a 3 row layout dynamically
Hi,
Thanks for your reply, I understand that, but how do I go about forcing the table to be created in three rows? |
|
#4
|
||||
|
||||
|
Re: Forcing a 3 row layout dynamically
I suggest you either learn PHP or hire someone to code what you want.
|
|
#5
|
|||
|
|||
|
Re: Forcing a 3 row layout dynamically
I know how to use PHP and like I said I was able to achieve it with tables, but I haven't been able to acheive it with CSS... I just needed a little advice that's all.
Thanks anyway... I'll get there in the end |
|
#6
|
||||
|
||||
|
Re: Forcing a 3 row layout dynamically
Perhaps I don't understand what you want. The word "dynamic" should never be used in the same sentence as CSS. I'm assuming you know very little about CSS; the fact that you're using tables is enough to bring me to that conclusion. Could maybe post a link, an attachment or even a more descriptive question?
|
|
#7
|
|||
|
|||
|
Re: Forcing a 3 row layout dynamically
Hi,
Ok, maybe I'm not making myself clear at all, but basically this is what I'm trying to achieve http://www.shesjustgottohaveit.com/N...ies.php/offers Although I have decided to change the design, the layout will basically be the same. What I would like is for each time a users mouse hovers over the image a semi transparent layer appears showing the items details. Also I wanted to make sure that the items can be scrolled horizontally. I hope this makes more sense now. Thank you once again PS this is what I have used in my PHP file
Last edited by karinne; Apr 7th, 2007 at 13:31. Reason: Please use [code]...[/code] tags when displaying code! |
![]() |
| Tags |
| css, tables |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forcing JavaScript to load before images? | JennyChaos | Starting Out | 14 | Jul 13th, 2007 23:02 |
| Is it possible to set the FOCUS() dynamically with javascript | AJAY KUMAR | JavaScript Forum | 2 | Jul 9th, 2007 03:29 |
| Forcing a vertical scrollbar | cyberseed | Web Page Design | 6 | Jul 5th, 2007 21:04 |
| Changing URLs dynamically - is this possible? | fallen_angel | Web Page Design | 8 | May 16th, 2006 23:31 |
| Insert code dynamically | djme | Web Page Design | 21 | Nov 26th, 2005 16:38 |