Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Simple CSS Question.

Simple CSS Question.

Scheduled Pinned Locked Moved Web Development
questioncss
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dalek Dave
    wrote on last edited by
    #1

    I have a Header that in CSS is font-size:xx-large, however I want it to be larger. How do I set a larger font? (Using Visual Web Developer 2008)

    .header
    {
    margin-left:auto;
    margin-right:auto;
    width:1024px;
    height:100px;
    background-color:#AAFBF9;
    padding-top:5px;
    font-size:xx-large;
    text-align:center;
    }

    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

    D P 2 Replies Last reply
    0
    • D Dalek Dave

      I have a Header that in CSS is font-size:xx-large, however I want it to be larger. How do I set a larger font? (Using Visual Web Developer 2008)

      .header
      {
      margin-left:auto;
      margin-right:auto;
      width:1024px;
      height:100px;
      background-color:#AAFBF9;
      padding-top:5px;
      font-size:xx-large;
      text-align:center;
      }

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      You could set a point size instead of a named attribute value; e.g. font-size:72px Play here; http://www.w3schools.com/css/tryit.asp?filename=trycss_font-size_px[^] Edit: I meant to link you to this page as well, it shows the different options and details the recommendations (such as the em mentioned by Pete below) http://www.w3schools.com/css/css_font.asp[^]

      Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

      modified on Monday, October 11, 2010 3:56 PM

      D 1 Reply Last reply
      0
      • D Dalek Dave

        I have a Header that in CSS is font-size:xx-large, however I want it to be larger. How do I set a larger font? (Using Visual Web Developer 2008)

        .header
        {
        margin-left:auto;
        margin-right:auto;
        width:1024px;
        height:100px;
        background-color:#AAFBF9;
        padding-top:5px;
        font-size:xx-large;
        text-align:center;
        }

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        You can set a larger size using something like px (pixels). This isn't a great solution however, as it's not very friendly for scalable pages. I would use something like em instead. You can set it to something like font-size:2.2em.

        I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        J 1 Reply Last reply
        0
        • D DaveAuld

          You could set a point size instead of a named attribute value; e.g. font-size:72px Play here; http://www.w3schools.com/css/tryit.asp?filename=trycss_font-size_px[^] Edit: I meant to link you to this page as well, it shows the different options and details the recommendations (such as the em mentioned by Pete below) http://www.w3schools.com/css/css_font.asp[^]

          Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

          modified on Monday, October 11, 2010 3:56 PM

          D Offline
          D Offline
          Dalek Dave
          wrote on last edited by
          #4

          I had tried that, had no fun. EDIT: Sorted! Forgot the PX!

          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

          modified on Monday, October 11, 2010 4:53 PM

          D 1 Reply Last reply
          0
          • D Dalek Dave

            I had tried that, had no fun. EDIT: Sorted! Forgot the PX!

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

            modified on Monday, October 11, 2010 4:53 PM

            D Offline
            D Offline
            DaveAuld
            wrote on last edited by
            #5

            Dalek Dave wrote:

            Forgot the PX!

            :doh:

            Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

            1 Reply Last reply
            0
            • P Pete OHanlon

              You can set a larger size using something like px (pixels). This isn't a great solution however, as it's not very friendly for scalable pages. I would use something like em instead. You can set it to something like font-size:2.2em.

              I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

              Forgive your enemies - it messes with their heads

              My blog | My articles | MoXAML PowerToys | Onyx

              J Offline
              J Offline
              Jules VDV
              wrote on last edited by
              #6

              I would also suggest setting your body font-size to 62.5%. This way, it is easier to convert between em and px. For example:

              body{
              font-size: 62.5%;/*1em = 10px*/
              }

              p{
              font-size: 1.2em; /* 1.2em = 12px */
              }

              D 1 Reply Last reply
              0
              • J Jules VDV

                I would also suggest setting your body font-size to 62.5%. This way, it is easier to convert between em and px. For example:

                body{
                font-size: 62.5%;/*1em = 10px*/
                }

                p{
                font-size: 1.2em; /* 1.2em = 12px */
                }

                D Offline
                D Offline
                Dalek Dave
                wrote on last edited by
                #7

                Thanks, good idea.

                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                L 1 Reply Last reply
                0
                • D Dalek Dave

                  Thanks, good idea.

                  ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  But then, you should also consider using "CSS Reset" such as ... http://yui.yahooapis.com/2.8.2r1/build/reset-fonts-grids/reset-fonts-grids.css[^] or http://meyerweb.com/eric/tools/css/reset/reset.css[^]

                  J 1 Reply Last reply
                  0
                  • L Lost User

                    But then, you should also consider using "CSS Reset" such as ... http://yui.yahooapis.com/2.8.2r1/build/reset-fonts-grids/reset-fonts-grids.css[^] or http://meyerweb.com/eric/tools/css/reset/reset.css[^]

                    J Offline
                    J Offline
                    Jules VDV
                    wrote on last edited by
                    #9

                    Always a good idea :)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups