/    Sign up×
Community /Pin to ProfileBookmark

Overflow & tale problem

Hi,

I have a table inside a div, and when the sum of the width of the <td> is greater than 1280(width of the div) it starts reducing the width of the td’s that “can be reduced”

if I have 4 td with 300px each I would have 300*4 = 1200px so no problem every td has the 300px, but if I add another td

[code=html]<td style=”width:300px”>eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee</td> [/code]

it starts reducing the width of some tds and not doing the horizontal scrolling in the right way

[code=html]
<div id=”teste” style=”width:1280px;height:200;overflow:auto;”>
<table border=”1″>
<tr>
<td style=”width:300px”>aaaaaaaaaaaaaaaaaaaaa</td>
<td style=”width:300px”>bbbbbbbbbbbbbbbbbbbbbbbbb</td>
<td style=”width:300px”>cccccccccccccccccccc</td>
<td style=”width:300px”>dddddddddddd</td>
<td style=”width:300px”>eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee</td>
</tr>
</table>
</div>
[/code]

any help?

thanks, PV

ps. it only has to work in IE cause it’s for a intranet and they only use IE

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guySep 01.2005 — what if you set the table width to 1500
×

Success!

Help @PV2005 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...