Change to my .css file

J

JCO

Given the below portion of my .css file, how do I dictate the font to be
Arial (or Times...) and the weight to be bold or strong. Sometimes bold
works, sometimes 'strong' works. I never know.

I'm only talking about the normal text (not the hyperlinks).
The text that is already set to be white (#ffffff).

Thanks

body {
background: #0055DD;
color: #ffffff;
}
a {
text-decoration: none;
}
a:link {
background-color: transparent;
color: #fad734;
text-decoration: underline;
font-weight: bold;
}
......
 
J

Jack Brewster

To set the font for the entire page, you can add this statement to your body
declaration:
font-family: Arial, Helvetica, sans-serif;

There are issues with inheritance in Netscape 4, especially with tables, so
as a precaution, check out this article and incorporate the suggestion into
your CSS:
http://www.mako4css.com/cssfont.htm

To bold text, it depends. In many cases, it's probably acceptable to simply
add <strong> tags, like so:
<strong>Text to be bolded</strong>

Browsers will interpret "strong" to mean display as bold and alternative
user agents, such as screen readers for vision impaired visitors, will say
the "strong" text in a different tone to audibly indicate the emphasis.

If, for some reason, the bolding doesn't have any "real" context, i.e.
you're just styling a heading, then you could do something like:
h1 {
font-weight: bold;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CSS woes.... 15
CSS not updating table "body" font via DWT 10
Hyperlinks NOT underlined in website using CSS 3
CSS Issue/Question 3
Menu in CSS problems 9
CSS - Proper format? 10
DWT with CSS 2
CSS Problems 8

Top