Click here to Skip to main content
15,900,325 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: DNS Cache ! Pin
AliAmjad13-Nov-07 3:11
AliAmjad13-Nov-07 3:11 
GeneralRe: DNS Cache ! Pin
Shog913-Nov-07 5:28
sitebuilderShog913-Nov-07 5:28 
GeneralRe: DNS Cache ! Pin
Expert Coming14-Nov-07 20:34
Expert Coming14-Nov-07 20:34 
Questionreload web page proplem Pin
monafr8112-Nov-07 7:06
monafr8112-Nov-07 7:06 
AnswerRe: reload web page proplem Pin
Michael Sync12-Nov-07 14:45
Michael Sync12-Nov-07 14:45 
QuestionAccess client's message queue (MSMQ) from browser with .NET Pin
jenspa12-Nov-07 5:41
jenspa12-Nov-07 5:41 
Questionwebsetup Pin
anilkumar.chandaluru12-Nov-07 0:18
anilkumar.chandaluru12-Nov-07 0:18 
QuestionNested table cell div's width problem Pin
Eduard Keilholz11-Nov-07 22:35
Eduard Keilholz11-Nov-07 22:35 
Hey guys, I'm having a problem sizing table cells. I want to size table cells using percentages. Have a table with for example 3 columns having the with set to 40%, 20% and 40%. So far so good. Then i create two more rows

row
cell - colspan to 2 and width to 60%
cell - width to 40%

row
cell - width to 40%
cell - colspan to 2 and width to 60%

Now I want each cell to contain a div with the width property set to 100% and overflow to 'auto', because I want the div to show scrollbars as soon as it's content exceeds the width of the table cell.

However, if I add some content in the div that's large enough to exceed the maximum width, IE will expand the table cell's width to make sure the object fits. Firefox actually does what I would expect, keep the table intact and show scrollbars.

<br />
<html><br />
<head><br />
<title>Joehoe</title><br />
</head><br />
<body><br />
<div style="text-align: center; width: 100%; background-color: #FF0000;"><br />
<table align="center" cellpadding="0" cellspacing="0" border="1" style="width: 800px; background-color: #EEEEEE;"><br />
<tr><br />
	<td style="width: 40%;">Cell A1</td><br />
	<td style="width: 20%;">Cell A2</td><br />
	<td style="width: 40%;">Cell A3</td><br />
</tr><br />
<tr><br />
	<td colspan="2" style="width: 60%; text-align: left; overflow: auto"><br />
	Cell B1<br />
	</td><br />
	<td style="width: 40%; text-align: left;"><br />
		<div style="width: 100%; height: 300px; overflow: auto;">	<br />
			<div style="width: 583px; height: 400px; background-color: #FFFF00;">DIV having width & height larger than the cell...</div><br />
		</div><br />
	</td><br />
</tr><br />
<tr><br />
	<td style="width: 40%; text-align: left; overflow: auto"><br />
		<div style="width: 100%; height: 300px; overflow: auto;">	<br />
			<div style="width: 583px; height: 400px; background-color: #FFFF00;">DIV having width & height larger than the cell...</div><br />
		</div><br />
	</td><br />
	<td colspan="2" style="width: 60%; text-align: left; overflow: auto"><br />
		Cell C2<br />
	</td><br />
</tr><br />
</table><br />
</div><br />
</body><br />
</html><br />



.: I love it when a plan comes together :.
http://www.zonderpunt.nl

AnswerRe: Nested table cell div's width problem [modified] Pin
Michael Sync12-Nov-07 1:48
Michael Sync12-Nov-07 1:48 
GeneralRe: Nested table cell div's width problem Pin
Eduard Keilholz12-Nov-07 2:55
Eduard Keilholz12-Nov-07 2:55 
GeneralRe: Nested table cell div's width problem Pin
Michael Sync12-Nov-07 4:50
Michael Sync12-Nov-07 4:50 
GeneralRe: Nested table cell div's width problem Pin
Eduard Keilholz12-Nov-07 10:30
Eduard Keilholz12-Nov-07 10:30 
GeneralRe: Nested table cell div's width problem Pin
Michael Sync12-Nov-07 14:42
Michael Sync12-Nov-07 14:42 
AnswerRe: Nested table cell div's width problem Pin
Shog912-Nov-07 7:15
sitebuilderShog912-Nov-07 7:15 
QuestionActiveX newbie Pin
earlp11-Nov-07 10:30
earlp11-Nov-07 10:30 
AnswerRe: ActiveX newbie Pin
Michael Sync11-Nov-07 15:02
Michael Sync11-Nov-07 15:02 
GeneralRe: ActiveX newbie Pin
earlp12-Nov-07 0:38
earlp12-Nov-07 0:38 
GeneralRe: ActiveX newbie Pin
Michael Sync12-Nov-07 0:43
Michael Sync12-Nov-07 0:43 
Questionsimple html code Pin
ManiMughal11-Nov-07 5:03
ManiMughal11-Nov-07 5:03 
AnswerRe: simple html code Pin
Michael Sync11-Nov-07 14:58
Michael Sync11-Nov-07 14:58 
QuestionDatePicker problem, How to resolve it ? [modified] Pin
hifiger200410-Nov-07 13:10
hifiger200410-Nov-07 13:10 
AnswerRe: DatePicker problem, How to resolve it ? Pin
Michael Sync10-Nov-07 20:19
Michael Sync10-Nov-07 20:19 
GeneralRe: DatePicker problem, How to resolve it ? Pin
hifiger200411-Nov-07 6:24
hifiger200411-Nov-07 6:24 
GeneralRe: DatePicker problem, How to resolve it ? Pin
Michael Sync11-Nov-07 14:26
Michael Sync11-Nov-07 14:26 
AnswerRe: DatePicker problem, How to resolve it ? Pin
hifiger200412-Nov-07 2:40
hifiger200412-Nov-07 2:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.