Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old April 28th, 2003, 10:28 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
tables, spans, graphics ahhhh!!!

I am having major issues with tables.

firstly a few things that I already know.

I know how to col span and row span and I also know when graphics/items fit in there with larger sizes the content will auto enlarge.

These I know, what I do not know is why my project is not working.

When I have the page laid out with out one certain graphic it is fine, cell widths and heights all perfect. The cell in question is one which is row spaned.
-- perfect but needs the image in there!

When I do not row span with this cell has it's graphic in it the cell increases in size and the whole thing scrolls. In understand this because there is no other variable height there.
-- graphic too big, need to scroll, so need to row span

When the row span is in effect what happens when I put the graphic in...

The 2 cells to the right of the 2 span col decide to change there widths for no reason.
AND
the whole page scrolls both horz and vert!

BUT the graphic is SMALLER than the space, I can prove this because I align it to the middle and there is space above AND below the image.

so what gives?
are there any rules for this?

Reply With Quote
  #2  
Old April 28th, 2003, 11:28 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

When you start using colspans and rowspans to layout your table the browser is just guessing what the dimension of each cell should be. It will not make a perfect fit, since the browser is aiming for speed and not perfection.
You should just try using nested tables, or step away from tables at all and start using layers (<div>'s), since tables are not meant to be used to format pages in the first place...

Reply With Quote
  #3  
Old April 29th, 2003, 02:38 AM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

I would LOVE to use divs, infact I have a web site builder in php which uses div normally.

problem is I need this site to be STATIC

and I also want the stuff to layout on the whole screen no matter what the screen res is.

so I have a choice of using javascript to reposition the divs or tables, I thought tables would be easier I was wrong!

BUT me being me, I have started so I will finish! or I find a limit on HTML (that is just me!)

so I a determined to find what the heck is happening here.

I am no slow poke I know everything is set up right, but why does the other cells resize when I throw the graphic in when the graphic has bags of room.

are there any other factors OR is this another bug in the browser (would not be the first one I have found!) that it just can't handle it!




Reply With Quote
  #4  
Old April 29th, 2003, 08:07 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

Do you have an address where we could see the code in question?

Reply With Quote
  #5  
Old April 29th, 2003, 01:02 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

Try using style="table-layout: fixed" in your <table> tags
If you need colspans already in the first row, set a set of colgroups with their fixed width defined. This should keep your table straight

Reply With Quote
  #6  
Old April 29th, 2003, 07:30 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

new complex tables.

do rowspans still work when used with colgroups?

Reply With Quote
  #7  
Old April 29th, 2003, 07:53 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: tables, spans, graphics ahhhh!!!

Quote:
new complex tables.

do rowspans still work when used with colgroups?

Sure, for instance you can easily do this:

<table style="table-layout: fixed">
<colgroup>
<col style="width: 100px"></col>
<col style="width: 100px"></col>
<col style="width: 100px"></col>
</colgroup>
<tr>
<td colspan="2">spanned</td>
<td>single cell</td>
</tr>
</table>

by explicitly setting the table-layout to fixed, and already specifying the width for each column this table probably will render as expected.

Reply With Quote
  #8  
Old April 29th, 2003, 07:54 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

ok well I added the fixed style, which did make them fixed BUT is also fixed them to the wrong dimensions!

I will have to play around with this.

you can still use * with fixed though right?

because I do need that

Reply With Quote
  #9  
Old April 29th, 2003, 08:03 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

example - at last

after using fixed style it has got better.

first step is to work out why the width of the left hand side box (one down from the top) is NOT changing, no matter what I set it too

ALSO I have tried to set both widths listed. on this example you can see that the cols have the width:height used in the cell itself.


Reply With Quote
  #10  
Old April 29th, 2003, 08:04 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

forgot the url, I'm good.

http://projectx.hysteriaweb.net

Reply With Quote
  #11  
Old April 29th, 2003, 08:05 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

I will also add the cols width as per your example

Reply With Quote
  #12  
Old April 29th, 2003, 08:21 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

ok, cols are sorted out

all was fine until I put my graphic in, now take a look!

the height of the 2 cells next to the graphic are all messed up, the bottom one is meant to be 58. without the graphic it is fine, with the graphic it is not!

I just don't get it!

Reply With Quote
  #13  
Old April 29th, 2003, 08:35 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

guess I should throw the widths for the rows in the TR!

Reply With Quote
  #14  
Old April 29th, 2003, 08:37 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: tables, spans, graphics ahhhh!!!

Quote:
guess I should throw the widths for the rows in the TR!

That's not allowed, TR doesn't have height or width; it's just a placeholder.
I'll try to make a setup with div's

Reply With Quote
  #15  
Old April 29th, 2003, 08:46 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: tables, spans, graphics ahhhh!!!

that did nothing!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > tables, spans, graphics ahhhh!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs