/    Sign up×
Community /Pin to ProfileBookmark

how to get a cell border ?

One issue with a cell border (DW).

To see a cell border i have to set a border for an entire table.
But if i don’t want to see the table border i can’t get the cell border.

How to resolve this?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogOct 02.2006 — <i>
</i>&lt;td style="border: solid 1px #000000;"&gt;

And of course you can assign a class or ID to the element and style that class/ID in your CSS stylesheet, instead.
Copy linkTweet thisAlerts:
@RezonOct 02.2006 — Please don't show them inline styles... ick.

To get borders on cells try and alter the following:

[CODE]table {
border-collapse: collapse;
}
table tr td {
border: 1px solid #000;
padding: 2px;

}[/CODE]


[code=html]<table>
<tr>
<td>1A</td>
<td>1B</td>
<td>1C</td>
<td>1D</td>
</tr>
<tr>
<td>2A</td>
<td>2B</td>
<td>2C</td>
<td>2D</td>
</tr>
<tr>
<td>3A</td>
<td>3B</td>
<td>3C</td>
<td>3D</td>
</tr>
<tr>
<td>4A</td>
<td>4B</td>
<td>4C</td>
<td>4D</td>
</tr>
</table>[/code]


Hope that helps.
Copy linkTweet thisAlerts:
@discusauthorOct 03.2006 — The both replies are very useful to me.

Thanks a lot.
×

Success!

Help @discus 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.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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