/    Sign up×
Community /Pin to ProfileBookmark

how to make a table with 0 border???

I’ve got a simple 4 cell table (2rows, 2cols) with an image in each. i have set the ‘border=”0″‘ but there is still a small gap between the rows and the columns. How do i remove this so that all the images are touching?
Thanks

[CODE]
<html>
<body>
<TABLE BORDER=”0″ FRAME=”trial”>
<TR>
<TD><img src=”1.jpg”</TD>
<TD><img src=”1.jpg”</TD>
</TR><TR>
<TD><img src=”1.jpg”</TD>
<TD><img src=”1.jpg”</TD>
</TR>
</TABLE>
</body>
</html>
[/CODE]

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@welshJan 28.2006 — change:
[code=html]<TABLE BORDER="0" FRAME="trial">[/code]
to
[code=html]<TABLE border="0" cellspacing="0" cellpadding="0" frame="trial">[/code]
by default i think cellspacing and cellpadding are set to 1 so you have to set them to 0 to get rid of the gaps betweeen the two, border has no effect on this it.
Copy linkTweet thisAlerts:
@The_Little_GuyJan 28.2006 — First off you forgot to colose your img bracket, but hows this?
[code=html]
<html>
<body>
<TABLE BORDER="0" cellpadding="0" cellspacing="0" FRAME="trial">
<TR>
<TD><img src="1.jpg"></TD>
<TD><img src="1.jpg"></TD>
</TR><TR>
<TD><img src="1.jpg"></TD>
<TD><img src="1.jpg"></TD>
</TR>
</TABLE>
</body>
</html>
[/code]
Copy linkTweet thisAlerts:
@NogDogJan 29.2006 — The 21st century method:
[code=html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<title>Page title</title>
<style type="text/css">
<!--
.images {
border-collapse: collapse;
border: none;
}
.images td {
border: none;
padding: 0;
}
.images img {
display: block;
margin: 0;
}
-->
</style>
</head>
<body>
<table class="images">
<tr>
<td><img src="1.jpg"</td>
<td><img src="1.jpg"</td>
</tr><tr>
<TD><img src="1.jpg"</td>
<TD><img src="1.jpg"</td>
</tr>
</table>
</body>
</html>
[/code]
Copy linkTweet thisAlerts:
@pcthugJan 29.2006 — The 21st century method would be to use div's not tables
Copy linkTweet thisAlerts:
@NogDogJan 29.2006 — The 21st century method would be to use div's not tables[/QUOTE]
Touché ?

I amend my comment to, "The 21st century method of styling tables."
Copy linkTweet thisAlerts:
@welshJan 29.2006 — snap
×

Success!

Help @tbone 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.28,
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,
)...