468,316 Members | 2,063 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 developers. It's quick & easy.

CSS Changes

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
4 1546
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

" 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
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
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.

Similar topics

reply views Thread by robmcdan | last post: by
4 posts views Thread by Glenn Owens | last post: by
reply views Thread by Jeff Reed | last post: by
6 posts views Thread by lanem | last post: by
5 posts views Thread by vovan | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.