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:
  #1  
Old March 2nd, 2004, 09:40 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
Table within a div

I've got a table within a div (within a div). I use the List apart hack to fix the footer problem across different browsers. All works well but on Mozilla if the div contains a table it messes things up and won't detect that the div should be longer. So the footer appears at the top of the page.

Does anyone know how to detect that the div should be longer due to the table.

To see the problem go to this URL (using Netscape or mozilla).


http://www.businessshack.com.au/sub....php?state_id=1

I'm really stuck on this so any help would be greatly appreciated.. Thanks

Reply With Quote
  #2  
Old March 8th, 2004, 12:54 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: Table within a div

Resolution is to give the table an ID. Then the div will stretch.

Reply With Quote
  #3  
Old March 8th, 2004, 03:44 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Table within a div

huh?!?

can you post the sample code? the "before" and "after" examples?

that doesn't make sense..

Reply With Quote
  #4  
Old March 8th, 2004, 10:33 PM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: Table within a div


After :

Code:

<form name="biz_table" action="delete_biz.php" method=post>
	    <table align="left" width= "100%" id="csst" cellpadding="2" cellspacing="2" >
	  	<?
	  	if (is_array($biz_array) && ($number_of_biz > 0)){
	  	?> 
					<tr height='22' align='left'>
	     				<th class='bizheading' width="25%">Name</th>
		  				<th class='bizheading' width="5%">Visits</th>
						<th class='bizheading' >Title</th>
		  				<th class='bizheading' >Expiry Date</th>
		  				<th class='bizheading' >Delete</th>
		  			</tr>
	 	 <?
	    	//foreach ($biz_array as $bizname)
			for ($i=0; $i<$number_of_biz; $i++) {
				if ($color == "#f0f1f0") {
		        	$color = "#ffffff";
				} else {
		        	$color = "#f0f1f0";
				}
				
		      	echo "<tr bordercolor=".$color." bgcolor=$color >";
				echo "<th><a href="".EDIT_BIZ_FORM."?edit=1&bizid=".$biz_array[$i][1]."">".htmlspecialchars($biz_array[$i][0])."</a></strong></th>";
				echo "<th>".$biz_array[$i][2]."</th>";


				echo "<th><a href="".BIZ_DISPLAY_PAGE."?bizid=".$biz_array[$i][1]."">".$biz_array[$i][5]."...</a></th>";
				echo "<th><a href="edit_biz_form.php?edit=true&bizid=".$biz_array[$i][1]."">".$biz_array[$i][4]."</a></th>";
				echo "<th><input type=checkbox name="del_me[]"value="".$biz_array[$i][1]."" /></th>";
				echo "</tr>"; 
	    	}
	    	
			echo "</table>";
			
	  }
	  
	?> 
	
	  
	  </form>


just remove the ID tag from the table declaration for the before.

I don't ask why anymore - I just accept that it suddenly works.

If you have a better way - please let me know.

Reply With Quote
  #5  
Old March 9th, 2004, 12:11 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Table within a div

ok, if it is not so hard for you, can you post the resulting html (ie from "view source" from your browser) and a related css file (if that is important).

btw, does it matter what id you put on a table?


sorry to bore you with this, but i amuse myself with stupid browser bugs like that.. ;)

Reply With Quote
  #6  
Old March 9th, 2004, 12:23 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: Table within a div

well if you'd like to fix a few annoying browser issues ..... just say the word.


Look at the real thing to www.businessshack.com.au and login as the name and pass that I pm you.

If you are using mozilla the page should display without fault - if IE then there is another small bug - one of a few...

thanks

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Table within a div


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 |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT