By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,868 Members | 1,974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,868 IT Pros & Developers. It's quick & easy.

CSS Changes

P: n/a
JCO
Given the below portion of my .css file, how do I dictate the font to be
Aril and the weight to be bold or strong. 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;
}
......
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Tue, 06 Apr 2004 03:09:35 GMT, JCO <J.********@verizon.net> wrote:
Given the below portion of my .css file, how do I dictate the font to be
Aril and the weight to be bold or strong. 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;
}
.....


Easy.

You want the main font to be Arial and bold.

Add to body -

font: bold 100% Arial, Helvetica, sans-serif;

(or font-weight: bold; font-size: 100%; font-family: Arial, Helvetica,
sans-serif;)

This makes all text on the page Arial (or a somewhat similar font if Arial
isn't available), normal-sized and scalable, and boldface. (I wonder if
you really want everything bold...)

Whatever should be different, set it for that selector.

Now you've set all a links to bold above, so that doesn't need to be there
now.
Jul 20 '05 #2

P: n/a

" JCO" <J.********@verizon.net> wrote in message
news:Pb****************@nwrddc03.gnilink.net...
Given the below portion of my .css file, how do I dictate the font to be
Aril and the weight to be bold or strong. 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;
}

body {
background: #0055DD;
color: #ffffff;
font-family: arial;
font-weight: bold;
}

refer to this:
http://www.w3.org/TR/REC-CSS1#font-properties

Jim Roberts
Jul 20 '05 #3

P: n/a
JCO
Your right, I would not.

"Neal" <ne*****@spamrcn.com> wrote in message
news:op**************@news.rcn.com...
On Tue, 06 Apr 2004 03:09:35 GMT, JCO <J.********@verizon.net> wrote:
Given the below portion of my .css file, how do I dictate the font to be
Aril and the weight to be bold or strong. 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;
}
.....


Easy.

You want the main font to be Arial and bold.

Add to body -

font: bold 100% Arial, Helvetica, sans-serif;

(or font-weight: bold; font-size: 100%; font-family: Arial, Helvetica,
sans-serif;)

This makes all text on the page Arial (or a somewhat similar font if Arial
isn't available), normal-sized and scalable, and boldface. (I wonder if
you really want everything bold...)

Whatever should be different, set it for that selector.

Now you've set all a links to bold above, so that doesn't need to be there
now.

Jul 20 '05 #4

P: n/a
JCO
Thanks for the information.

"Jim Roberts" <jr******@msn.com> wrote in message
news:c4*************@ID-184466.news.uni-berlin.de...

" JCO" <J.********@verizon.net> wrote in message
news:Pb****************@nwrddc03.gnilink.net...
Given the below portion of my .css file, how do I dictate the font to be
Aril and the weight to be bold or strong. 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;
}

body {
background: #0055DD;
color: #ffffff;
font-family: arial;
font-weight: bold;
}

refer to this:
http://www.w3.org/TR/REC-CSS1#font-properties

Jim Roberts

Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.