/    Sign up×
Community /Pin to ProfileBookmark

<table… to class=

hey I was hoping someone would be able to tell me how to make this line of code

[CODE]<table border=4 cellpadding=5 width=90% hspace=5 vspace=10 frame=box rules=none bordercolor=”#000000″>[/CODE]

into a css class

like .table1, .table1 th, .table1 td{
code
code
code
}

in addition, I was wondering if there was a way to make firefox’s tables to NOT have the 3D effect of 2 colors. Right now the top is gray and the bottom is black.

Thanks Again,
Erik

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 30.2008 — table {
border:4px solid #000;
width:90%;
}
table td {
border:0;
padding:5px;
}

hspace and vspace are img attributes whose use is deprecated.
Copy linkTweet thisAlerts:
@LowallynauthorApr 01.2008 — err actually they are table attributes and the denote how much space is between the table and the rest of the content vertically and horizontally

hspace/vspace
Copy linkTweet thisAlerts:
@FangApr 01.2008 — No they are not, they only apply to img, applet and object: http://www.w3.org/TR/html401/struct/objects.html#adef-hspace

Even here they are depreciated in favor of CSS.
×

Success!

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