/    Sign up×
Community /Pin to ProfileBookmark

very large div

Hi,

The following code has issues in IE7:

<table><tr><td>

<div style=”width:50%; border:2px solid red;”>
<div style=”padding-right:2%;padding-top:2%;border:2px solid black;”>
x
</div>
</div>

</td></tr></table>

The div boxes are extremely large: many, many “empty” pages. Am I missing something or it is a bug? Incidentally, it works as expected in Firefox…

thanks,
J.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@Suhas_DhokeApr 06.2007 — Don't use the percent values for the width style.

Use the [B]px[/B] (pixel) values.

And one more thing, if the width of the table is fix, then mention it.
Copy linkTweet thisAlerts:
@ray326Apr 06.2007 — Action #1 should be dumping the table entirely. If there's a need for a wrapper then wrap with a div.
×

Success!

Help @jaybe 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 6.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...