Globally change fontsize in website

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Globally change fontsize in website

    Hi,

    I am trying to globally change the default font size in all pages in my
    website.
    I created a shared CSS file which contains a class like this:

    ..NormalText11 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 8px;
    color: #003300;
    }

    And in every page i have <BODY tag like this:

    <body background="Images/menuback.gif" class="NormalText1" >

    Using above style in <Body tag, it does changes the fonts and colors;
    however it doesn't change the font size. It uses the default font-size which
    is 12px.

    That means i have to explicitly mention font-size everywhere in <P> or <TD>
    tags.

    Is there a better way to define default font size for all pages in website
    in a ceteralized place ?

    Any help would be appreciated,
    Ali


    A.M Guest

  2. Similar Questions and Discussions

    1. Can't change administration settings for website
      Hi there We've had a change of address for our website and I want to change the administration settings to reflect these changes but once I make...
    2. TextArea max fontSize
      I am having issues while trying to get my text really big. Here's a sample clip: <?xml version="1.0" encoding="utf-8"?> <mx:Application...
    3. Newbie: how you sync a change to the website
      Hi, How do I make a change to a site managed by Contribute and make sure that the editors sync to that latest version before they accidently...
    4. Possible to change website name?
      Hi, I have just set up a second website connection for our intranet. All is working great except it shows the connection as "Unnamed Connection...
    5. Change print orientation by website
      I have a webpage that prints nicely when the layout is switched from portrait to landscape. Many of my site users have mistakenly printed it...
  3. #2

    Default Re: Globally change fontsize in website

    You're wrong, the style in the CSS file is ".NormalText11", in the body
    tag it's ".NormalText1"
    Mick

    A.M wrote:
    >Hi,
    >
    >I am trying to globally change the default font size in all pages in my
    >website.
    >I created a shared CSS file which contains a class like this:
    >
    >.NormalText11 {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 8px;
    > color: #003300;
    >}
    >
    >And in every page i have <BODY tag like this:
    >
    ><body background="Images/menuback.gif" class="NormalText1" >
    >
    >Using above style in <Body tag, it does changes the fonts and colors;
    >however it doesn't change the font size. It uses the default font-size which
    >is 12px.
    >
    >That means i have to explicitly mention font-size everywhere in <P> or <TD>
    >tags.
    >
    >Is there a better way to define default font size for all pages in website
    >in a ceteralized place ?
    >
    >Any help would be appreciated,
    >Ali
    >
    >
    >
    >
    mick_white Guest

  4. #3

    Default Re: Globally change fontsize in website

    > font-size: 8px;

    For starters, 8px is incredibly small...that may cause a lot of problems for
    your end users.
    > That means i have to explicitly mention font-size everywhere in <P> or
    <TD>
    > tags.
    Are you specifying font sizes anywhere else with any other tags? It sounds
    like you may have a separate style defning sizes for P tags or TD tags.
    > Is there a better way to define default font size for all pages in website
    > in a ceteralized place ?
    Yes, use this:

    body, div, p, th, td, li, dd {
    font-size: 11px;
    }

    Then, everywhere else, use a relative size (ems, percentages, etc.)

    That way, when you want to change font size globally, you only need to
    change that one item.

    Note that you can just declare the 'body' if you're not worrying about NN4.

    -Darrel


    darrel Guest

  5. #4

    Default Re: Globally change fontsize in website


    Thanks for help
    > Are you specifying font sizes anywhere else with any other tags?
    No. The style changes color and font, but it ignores the size.
    > Note that you can just declare the 'body' if you're not worrying about
    NN4.
    My website works with IE5.0 and higher. Is it a big deal? Am I going to
    loose alot of visitors ?

    Thanks again for help,
    Ali




    "darrel" <notreal@hotmail.com> wrote in message
    news:bra3po$oa1$1@forums.macromedia.com...
    > > font-size: 8px;
    >
    > For starters, 8px is incredibly small...that may cause a lot of problems
    for
    > your end users.
    >
    > > That means i have to explicitly mention font-size everywhere in <P> or
    > <TD>
    > > tags.
    >
    > Are you specifying font sizes anywhere else with any other tags? It sounds
    > like you may have a separate style defning sizes for P tags or TD tags.
    >
    > > Is there a better way to define default font size for all pages in
    website
    > > in a ceteralized place ?
    >
    > Yes, use this:
    >
    > body, div, p, th, td, li, dd {
    > font-size: 11px;
    > }
    >
    > Then, everywhere else, use a relative size (ems, percentages, etc.)
    >
    > That way, when you want to change font size globally, you only need to
    > change that one item.
    >
    > Note that you can just declare the 'body' if you're not worrying about
    NN4.
    >
    > -Darrel
    >
    >

    A.M Guest

  6. #5

    Default Re: Globally change fontsize in website

    Sorry, it was just a typo. In the actual page, it changes the color and font
    face, but it ignores the size !!!

    "mick_white" <mick@gerrytimlin.com> wrote in message
    news:3FD890ED.4060603@gerrytimlin.com...
    > You're wrong, the style in the CSS file is ".NormalText11", in the body
    > tag it's ".NormalText1"
    > Mick
    >
    > A.M wrote:
    >
    > >Hi,
    > >
    > >I am trying to globally change the default font size in all pages in my
    > >website.
    > >I created a shared CSS file which contains a class like this:
    > >
    > >.NormalText11 {
    > > font-family: Verdana, Arial, Helvetica, sans-serif;
    > > font-size: 8px;
    > > color: #003300;
    > >}
    > >
    > >And in every page i have <BODY tag like this:
    > >
    > ><body background="Images/menuback.gif" class="NormalText1" >
    > >
    > >Using above style in <Body tag, it does changes the fonts and colors;
    > >however it doesn't change the font size. It uses the default font-size
    which
    > >is 12px.
    > >
    > >That means i have to explicitly mention font-size everywhere in <P> or
    <TD>
    > >tags.
    > >
    > >Is there a better way to define default font size for all pages in
    website
    > >in a ceteralized place ?
    > >
    > >Any help would be appreciated,
    > >Ali
    > >
    > >
    > >
    > >
    >

    A.M Guest

  7. #6

    Default Re: Globally change fontsize in website

    > I think NN4 probably comprises about 1% or less of visitors

    Well, that's according to your server logs. It all depends on the particular
    site's audience.

    -Darrel


    darrel Guest

  8. #7

    Default Re: Globally change fontsize in website

    I think NN4 probably comprises about 1% or less of visitors, and most of
    those can switch to IE if they need to (although they might not bother).

    And according to my server logs, more people still use IE2.0 than NN7 :)


    rob :: digitalburn Guest

  9. #8

    Default Re: Globally change fontsize in website

    Then we'll need an URL to see the problem in action.

    --
    --
    DiMa
    --------------------
    WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your
    posts:
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    For Answers, check here first:
    [url]http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamwea ver[/url]
    [url]http://www.macromedia.com/support/dreamweaver/technotes.html[/url]
    [url]http://www.projectseven.com/faqbase[/url]
    [url]http://www.dreamweaverFAQ.com[/url]

    [url]http://www.macromedia.com/support/forums/etiquette.htm[/url]

    [url]www.flyingtigerwebdesign[/url] dot com


    "A.M" <I-Hate-Spam@sapm.com> wrote in message
    news:bra74m$19j$1@forums.macromedia.com...
    > Sorry, it was just a typo. In the actual page, it changes the color and font
    > face, but it ignores the size !!!
    >
    > "mick_white" <mick@gerrytimlin.com> wrote in message
    > news:3FD890ED.4060603@gerrytimlin.com...
    > > You're wrong, the style in the CSS file is ".NormalText11", in the body
    > > tag it's ".NormalText1"
    > > Mick
    > >
    > > A.M wrote:
    > >
    > > >Hi,
    > > >
    > > >I am trying to globally change the default font size in all pages in my
    > > >website.
    > > >I created a shared CSS file which contains a class like this:
    > > >
    > > >.NormalText11 {
    > > > font-family: Verdana, Arial, Helvetica, sans-serif;
    > > > font-size: 8px;
    > > > color: #003300;
    > > >}
    > > >
    > > >And in every page i have <BODY tag like this:
    > > >
    > > ><body background="Images/menuback.gif" class="NormalText1" >
    > > >
    > > >Using above style in <Body tag, it does changes the fonts and colors;
    > > >however it doesn't change the font size. It uses the default font-size
    > which
    > > >is 12px.
    > > >
    > > >That means i have to explicitly mention font-size everywhere in <P> or
    > <TD>
    > > >tags.
    > > >
    > > >Is there a better way to define default font size for all pages in
    > website
    > > >in a ceteralized place ?
    > > >
    > > >Any help would be appreciated,
    > > >Ali
    > > >
    > > >
    > > >
    > > >
    > >
    >
    >

    DiMa Guest

  10. #9

    Default Re: Globally change fontsize in website


    Obviously there'll be a variance away from the mean depending on particular
    circumstances. I based that figure on various trends, including, but not
    limited to, the servers logs from my own sites and those of my clients.


    darrel wrote:
    >> I think NN4 probably comprises about 1% or less of visitors
    >
    > Well, that's according to your server logs. It all depends on the
    > particular site's audience.
    >
    > -Darrel

    rob :: digitalburn Guest

  11. #10

    Default Re: Globally change fontsize in website

    Try it (immediate after <body> tag or between <head> </head>):
    <basefont style="font: 8px Verdana, Arial, Helvetica, sans-serif; color: #003300;" />

    This should work.


    Troyan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139