PC Review


Reply
Thread Tools Rate Thread

Change to my .css file

 
 
JCO
Guest
Posts: n/a
 
      6th Apr 2004
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;
}
......




 
Reply With Quote
 
 
 
 
Jack Brewster
Guest
Posts: n/a
 
      6th Apr 2004
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;
}

--
Jack Brewster - Microsoft FrontPage MVP

" JCO" <(E-Mail Removed)> wrote in message
newsepcc.1245$(E-Mail Removed)...
> 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;
> }



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Icons change - cannot change back =?Utf-8?B?YmlubnNkcmFmdGluZw==?= Windows XP General 0 5th Sep 2007 11:20 PM
HOW DO I CHANGE A PDF FILE TO WORD SO THAT I CAN CHANGE FONT ETC? =?Utf-8?B?UEFTNDcwNg==?= Microsoft Powerpoint 1 11th Oct 2006 09:53 PM
How do I change Word file locations after network change =?Utf-8?B?YWRyaWVubmVsYW1i?= Microsoft Word Document Management 1 3rd Aug 2005 05:36 PM
Save the same file to different location - Change one, Change all =?Utf-8?B?Q2F0aHkgUiBIamVsbQ==?= Microsoft Word Document Management 2 16th Nov 2004 04:12 PM
How to change mdw file to reflect a change in shared folder name? Fook-Loon Wong Microsoft Access Security 1 24th Nov 2003 11:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 PM.