/    Sign up×
Community /Pin to ProfileBookmark

table not accepting css?

Does ayone know why non of the text in my table is being formatted by my css? i have tried calling the css from the table

[code]<table border=”0″ cellpadding=”0″ cellspacing=”0″ class=”table”[/code]

and the text inside does not change size as i want it to, and i have tried to add [b]td[/b] to me included css page

[code].tablemain, td {
background-color:#eeeeee;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
font-style: normal;
line-height: 18px;
font-weight: normal;
color: #000000;
text-decoration: none;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}[/code]

here is the link to the [URL=http://test.slweb.co.nz/mva/historydef.php]page[/URL]

Thanks

Sheldon

to post a comment
CSS

7 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 11.2005 — class="[I]table[/I]" and .[I]tablemain[/I] ???
Copy linkTweet thisAlerts:
@SheldonauthorAug 11.2005 — even with the corrct reference name it still does not work?



Thanks

Sheldon
Copy linkTweet thisAlerts:
@FunkymonkeyAug 11.2005 — Have you made a reference to your stylesheet in the head?

<link href="mystyle.css" type="text/css" rel="stylesheet">
Copy linkTweet thisAlerts:
@SheldonauthorAug 11.2005 — yep

all the other styles work, just not the text inside the table?
Copy linkTweet thisAlerts:
@silverbullet24Aug 11.2005 — .tablemain, .tablemain.td {

background-color:#eeeeee;

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 8pt;

font-style: normal;

line-height: 18px;

font-weight: normal;

color: #000000;

text-decoration: none;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

margin-left: 0px;

}
Copy linkTweet thisAlerts:
@JayhawkAug 11.2005 — have you tried
[CODE]<table class="tablemain"[/CODE]
instead of
[CODE]<table style="tablemain"[/CODE]
And, by the way, using tables for layout and posting the question in a css forum... Oh my.
Copy linkTweet thisAlerts:
@SheldonauthorAug 15.2005 — haha yes, i use tables for layout and css for design, cross browser support of tables and too many idiots using IE for full css use, anyhow i like tables.


But thanks ill try that
×

Success!

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