We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14779
    • 256 Posts
    I was wondering if anyone here can help me with a CSS issue.

    I need the pre_header div on this page (http://knightechnologysolutions.com/sandbox.html) resized so that it is 50px tall, with the sIFR text centered vertically. I’d also like to get the sIFR text centered horizontally.

    I have wracked my brain trying to get this to work, and I know it is a simple solution, I just can’t get it! smiley

    -Josh
      PM me to find out how you can get a FREE ipad 2!
      • 15152
      • 360 Posts
      Josh
      You should be able to do this in this manner:

      Make the div height 50px. Make the text line-height 50px - no padding or margin. That should center it in the area. You may have to tweak it a slight bit when using sFIR, but I don’t believe so.

      Hope this works for you.
        There are no boring projects. Only boring executions. ~ Etzkorn
        www.impress-design.com
        • 14779
        • 256 Posts
        excellent suggestion, hadn’t tried the line-height yet, BUT.... it still didn’t work. smiley
          PM me to find out how you can get a FREE ipad 2!
          • 15152
          • 360 Posts
          Try the line height using plain text. If that works you know it’s a sIFR issue. If it doesn’t there is something else going on.
            There are no boring projects. Only boring executions. ~ Etzkorn
            www.impress-design.com
            • 14779
            • 256 Posts
            Spot-on about sIFR being the culprit. I went ahead and removed it; didn’t like the extra load time. Even a 1MB image loads faster. THX M8!
              PM me to find out how you can get a FREE ipad 2!
              • 16183
              • 1,390 Posts
              Have you tried Cufon? Haven’t used it myself but just read up on it as an alternative to sIFR. Glad you sorted your problem though smiley
                • 14779
                • 256 Posts
                Cufon looks interesting, thanks!
                  PM me to find out how you can get a FREE ipad 2!