/    Sign up×
Community /Pin to ProfileBookmark

Table to CSS Conversion

Hi –

I’m converting an old data table to one with CSS styles.

What is the CSS equivalent of this formatting?

<table width=”100%” [B]border=”0″[/B] cellpadding=”0″ [B]cellspacing=”0″[/B] >

And, does it need to be set for each cell, or can it be put in the table {} setting?

Thanks,
KDLA

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@BonRougeOct 25.2005 — css: table {
width:100%;
border-collapse:collapse;
}


html: &lt;table&gt;
Copy linkTweet thisAlerts:
@the_treeOct 25.2005 — table{
width: 100%;
border-collapse: collapse;
}
td{
border: none;
margin: 0;
}
Copy linkTweet thisAlerts:
@KDLAauthorOct 25.2005 — Muchas gracias, guys (or gals)!

I kept goofing around with that border setting, but was using "0" instead of none. Duh.

?

KDLA
Copy linkTweet thisAlerts:
@rorycanyonOct 25.2005 — If you use <table> tag in css, all of your table will follow the same style, maybe you will need use a class or id.

?
Copy linkTweet thisAlerts:
@KDLAauthorOct 25.2005 — Gotcha, rorycanyon. I was using a class, just didn't mention it in my post. Thanks, though, for taking the time to make sure I was doing things right. ?

KDLA
×

Success!

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