/    Sign up×
Community /Pin to ProfileBookmark

banner table margin problem

Hi, I’m new to HTML stuff. I have a problem. I try to make a banner using table (code below). The problem is that there are margins between the table and the page that I cannot remove (even by setting margin:0px). I wish that the image in the table fill completely the banner space and there is no white margin between the images and the surrounding page. Any helps will be appreciated.

Thanks for your answer.

Jeffry


————————————————————————————————

<style type=”text/css”>
#middlebanner {
background: #ffffff url(./Heading-middle.jpg) repeat-x;
top: 0px;
}

#tableheader {
margin:0px;
left : 0px;
top : 0px;
right: 0px;
margin-bottom:0px;
}
</style>

<table id=”tableheader” border=”0″ cellspacing=”0″ cellpadding=”0″ width=”101.99%”>

<tr>
<td>
<img src=”./Heading-left.gif” border=”0″ >
</td>
<td id=”middlebanner” width=”100%”>
</td>
<td>
<img src=”./Heading-right.gif” border=”0″ >
</td>
</tr>
</table>

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 26.2009 — body {margin:0; padding:0;}Then reduce the table width to 100&#37;
×

Success!

Help @jeffry_christia 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.18,
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,
)...