CSS Changes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JCO

    CSS Changes

    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;
    }
    ......


  • Neal

    #2
    Re: CSS Changes

    On Tue, 06 Apr 2004 03:09:35 GMT, JCO <J.Oliviero@ver izon.net> wrote:
    [color=blue]
    > 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;
    > }
    > .....
    >
    >[/color]

    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.


    Comment

    • Jim Roberts

      #3
      Re: CSS Changes


      " JCO" <J.Oliviero@ver izon.net> wrote in message
      news:Pbpcc.1242 $hd3.948@nwrddc 03.gnilink.net. ..[color=blue]
      > 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[/color]
      normal[color=blue]
      > text (not the hyperlinks). The text that is already set to be white
      > (#ffffff).
      >
      > Thanks
      >
      > body {
      > background: #0055DD;
      > color: #ffffff;
      > }[/color]


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

      refer to this:


      Jim Roberts


      Comment

      • JCO

        #4
        Re: CSS Changes

        Your right, I would not.

        "Neal" <neal413@spamrc n.com> wrote in message
        news:opr50mvvpu dvhyks@news.rcn .com...[color=blue]
        > On Tue, 06 Apr 2004 03:09:35 GMT, JCO <J.Oliviero@ver izon.net> wrote:
        >[color=green]
        > > 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;
        > > }
        > > .....
        > >
        > >[/color]
        >
        > 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.
        >
        >[/color]


        Comment

        • JCO

          #5
          Re: CSS Changes

          Thanks for the information.

          "Jim Roberts" <jrzycrim@msn.c om> wrote in message
          news:c4t8h8$2m0 59l$1@ID-184466.news.uni-berlin.de...[color=blue]
          >
          > " JCO" <J.Oliviero@ver izon.net> wrote in message
          > news:Pbpcc.1242 $hd3.948@nwrddc 03.gnilink.net. ..[color=green]
          > > 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[/color]
          > normal[color=green]
          > > text (not the hyperlinks). The text that is already set to be white
          > > (#ffffff).
          > >
          > > Thanks
          > >
          > > body {
          > > background: #0055DD;
          > > color: #ffffff;
          > > }[/color]
          >
          >
          > 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
          >
          >[/color]


          Comment

          Working...