CSS Gurus: Have a question on text sizing?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Horny Dude
    Earn enough to buy coffee
    • May 2002
    • 4913

    #1

    CSS Gurus: Have a question on text sizing?

    Is there a way with CSS to keep my website font size the same? This way if someone comes to my site with their default font size set at 27, it will look the same as someone with their font size 16. I have tried using 'em' instead of 'px', but no luck. Any help would be great.
  • Deej
    I make pixels work
    • Jun 2005
    • 24386

    #2
    no - best you can do is prevent spacing issues with overflow:auto;

    Deej's Designs n' What Not
    Hit me up for Design, CSS & Photo Retouching


    Icq#30096880

    Comment

    • Serge Litehead
      Confirmed User
      • Dec 2002
      • 5190

      #3
      static sizes defined by px, relative by ems

      good article on topic http://www.alistapart.com/articles/howtosizetextincss/

      Comment

      • Deej
        I make pixels work
        • Jun 2005
        • 24386

        #4
        hrmmm... if you define it by actual pixels it wont change when a surfer ups their text size?

        I thought i tried that once...

        ill have to experiment again...

        Deej's Designs n' What Not
        Hit me up for Design, CSS & Photo Retouching


        Icq#30096880

        Comment

        • beta-tester
          Rock 'n Roll Baby!
          • Sep 2004
          • 22562

          #5
          Just set the font-size in px instead of em and it'll be fixed to the size, no matter what's the default text size in surfer's browser.

          Sig for sale. Affordable prices. Contact me and get a great deal ;)

          My contact:
          ICQ: 944-320-46
          e-mail: manca {AT} HotFreeSex4All.com

          Comment

          • PSSuperstars
            Confirmed User
            • Jan 2006
            • 1477

            #6
            Can any of you recommend a good CSS for dummies book, por favor?
            Porn's Best Kept Secret : PSOCash.com : Make Money Promoting Phone Sex in Members Areas, TGPs, and MORE! : Lifetime 30% Payout
            Best Webcam Referral Payouts

            Comment

            • Deej
              I make pixels work
              • Jun 2005
              • 24386

              #7
              Originally posted by beta-tester
              Just set the font-size in px instead of em and it'll be fixed to the size, no matter what's the default text size in surfer's browser.
              I swore i tested that before - apparently im mistaken... totally good to know, got a wrinkle in my brain


              and PSS - just look through other sites and w3c has a lot of useful basic info...

              no book, just research

              Deej's Designs n' What Not
              Hit me up for Design, CSS & Photo Retouching


              Icq#30096880

              Comment

              • devine
                Confirmed User
                • Jul 2006
                • 620

                #8
                Code:
                html{font-size:16px;}
                and that's it

                Comment

                • Young
                  Bland for life
                  • Nov 2004
                  • 10468

                  #9
                  Code:
                  * { font-size: 16px; }
                  Overkill for many...but that's how I'd take care of it.
                  ★★★

                  Comment

                  • Tom_PM
                    Porn Meister
                    • Feb 2005
                    • 16443

                    #10
                    I thought you could use !important to help keep things an exact size.. even to override a browser with a modified text size.
                    43-922-863 Shut up and play your guitar.

                    Comment

                    • pimplink
                      Confirmed User
                      • Jun 2001
                      • 9535

                      #11
                      very helpful thread

                      Need Mainstream Content and SEO?
                      SEO * Website Copy * Blogs
                      Blogging - PR Work - Forum Marketing - Social Marketing - Link building - Articles
                      100% Guaranteed Content!

                      Comment

                      • Bored
                        Confirmed User
                        • Feb 2002
                        • 1011

                        #12
                        Be aware, that some browsers don't ZOOM like they are supposed to. Its been a while, but I think it might be IE6 that uses its own zooming technique, different from the standard ctrl+-
                        If Satan Wore a Hairpeice, there would be HELL TOUPEE!!
                        HTML Porn
                        pbbc fo li

                        Comment

                        • Bored
                          Confirmed User
                          • Feb 2002
                          • 1011

                          #13
                          !important makes the CSS rule overrule any other CSS rule

                          div { color: red!important }
                          div { color: blue; }

                          in this case, it would take the red, keep in mind how specificity and the cascade works too
                          If Satan Wore a Hairpeice, there would be HELL TOUPEE!!
                          HTML Porn
                          pbbc fo li

                          Comment

                          Working...