very quik and basic HTML question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    very quik and basic HTML question

    how do i setup the default font size=2 to entire html page (that i don't have to enter font tags on every paragraph)?
  • Robertf
    Confirmed User
    • Feb 2004
    • 392

    #2
    www.w3.org -> css
    ....

    Comment

    • xerex
      Confirmed User
      • Jan 2005
      • 751

      #3
      you can use cascading styLe sheet..
      336487572

      Comment

      • psili
        Confirmed User
        • Apr 2003
        • 5526

        #4
        [HTML]
        <style type="text/css">
        body {
        font-size: 12px;
        }
        </style>
        [/HTML]
        Your post count means nothing.

        Comment

        • Rob
          I'm a great bowler.
          • Nov 2003
          • 13310

          #5
          Stylesheets rock the house!

          Comment

          • viki
            Confirmed User
            • Jan 2005
            • 2640

            #6
            Originally posted by psili
            [HTML]
            <style type="text/css">
            body {
            font-size: 12px;
            }
            </style>
            [/HTML]

            That works, but if you also have tables on your site you'll have to add this as well to apply it to them:

            [HTML]
            <style type="text/css">
            table {
            font-size: 12px;
            }
            </style>
            [/HTML]

            viki [at] realsexcash [dot] com
            228 263 454

            Comment

            • alex79
              Confirmed User
              • Jun 2002
              • 996

              #7
              Originally posted by psili
              [HTML]
              <style type="text/css">
              body {
              font-size: 12px;
              }
              </style>
              [/HTML]

              this code don't do nothing... i've tryed with different numbers but no change on text size

              Comment

              • viki
                Confirmed User
                • Jan 2005
                • 2640

                #8
                You have to put style tags in between the head tags.

                viki [at] realsexcash [dot] com
                228 263 454

                Comment

                • alex79
                  Confirmed User
                  • Jun 2002
                  • 996

                  #9
                  Originally posted by viki
                  That works, but if you also have tables on your site you'll have to add this as well to apply it to them:

                  [HTML]
                  <style type="text/css">
                  table {
                  font-size: 12px;
                  }
                  </style>
                  [/HTML]

                  ok..thanks

                  Comment

                  • Rob
                    I'm a great bowler.
                    • Nov 2003
                    • 13310

                    #10
                    Originally posted by alex79
                    this code don't do nothing... i've tryed with different numbers but no change on text size
                    lol. That's pretty funny.

                    Did you attach the stylesheet first?

                    Comment

                    Working...