/    Sign up×
Community /Pin to ProfileBookmark

problems defining table borders via an external stylesheet

For some reason I cannot define table borders via an external stylesheet linked in the <head> tags. All the other bits, such as text, refer back to it fine. I am using the “class” tag within the <table> tag but the only way I can get it to work is by using the “style” tag and defining it internally. Any ideas??

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@SamApr 20.2004 — do you have a link and/or full source code? Most likely, you are merely defining your borders incorrectly
Copy linkTweet thisAlerts:
@TimeBanditApr 21.2004 — <div class="yadda">

<table class="target"><tr><td></td></tr></table>

</div>

either:

.target {border: 1px red solid;}

or:

table.target {border: 1px red solid;}

or:

.yadda .target {border: 1px red solid;}

Depends on whatever else you have specified . Sometimes u have to be more specific. There are other combos you can use to talk to the table, mixtures of above examples.
Copy linkTweet thisAlerts:
@tedstoneaauthorApr 21.2004 — The <div> method does not work either, however I have found that by using an inline stylesheet it works fine. Even more of a mystery because as I said before everything else I have defined in the external stylesheet works fine. Where now, I need to be able to define externally!?
Copy linkTweet thisAlerts:
@tedstoneaauthorApr 21.2004 — I am really dumb...it was a stray close bracket instead of } at the end of a previous css defintion...this will teach me to not bother with error checking! Many thanks for all your help though!
×

Success!

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