Table squash - Window resize

This is a discussion on "Table squash - Window resize" within the Web Page Design section. This forum, and the thread "Table squash - Window resize are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 7th, 2005, 13:34
New Member
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Table squash - Window resize

Hi,

I have a table that displays three pictures each in seperate cells in a single row. The table is set to resize by percentage as the browser window resizes. Problem is that when the window is small and the table is at is minimum width (set by the natural width of the pictures) the table pushes out the side of the window. Basically is there a way of setting a table to squash or collpase to entirely display if a window is minimised to a width narrower than the table?
Cheers
Reply With Quote

  #2 (permalink)  
Old Dec 7th, 2005, 13:47
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Table squash - Window resize

Hmm i dont quite understand the question, the minimum size of the table will be the width of the images.
Reply With Quote
  #3 (permalink)  
Old Dec 7th, 2005, 13:49
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Table squash - Window resize

Actually, no. All table data cells (<td></td>) contained within a table row (<tr></tr>) will always stay on one row without breaking onto a new line when the content contained within them are wider than the browser window. A horizontal scroll bar will appear.

The only way I can think of to achieve what you're asking for is losing the table and using some simple css, like this:

HTML: <img src="picture1.jpg" alt="my dog" class="floatedimage" /> <img src="picture2.jpg" alt="my cat" class="floatedimage" /> <img src="picture3.jpg" alt="my mom" class="floatedimage" />

CSS: .floatedimage {float:left; margin-right:15px;}

Then, whatever element is below these pictures in the html get's a particular style, like this:

<p style="clear:left;">This is some content below the images.</p>
Reply With Quote
  #4 (permalink)  
Old Dec 7th, 2005, 14:01
New Member
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Table squash - Window resize

I see. Thanks for that. I'll look into it. I always thought there was a way of stacking cells if the window size was smaller than the table.

Cheers
Reply With Quote
  #5 (permalink)  
Old Dec 7th, 2005, 19:57
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Table squash - Window resize

Whats the url? Hopefully i will understand with some visuals
Reply With Quote
Reply

Tags
table, squash, window, resize

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
[SOLVED] open new window from main window AdRock Other Programming Languages 1 Nov 1st, 2007 02:45
How to capture the event when a popup window box is resize jadeite100 JavaScript Forum 1 May 30th, 2007 00:38
how do i get scrollbars on resize huminuh83 Flash & Multimedia Forum 0 Apr 4th, 2007 04:39
CSS browser resize. rooraaahcrumbs Web Page Design 3 Apr 24th, 2006 20:54


All times are GMT. The time now is 21:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43