HTML/CSS Help Appreciated.

Discussion in 'HTML & Website Design' started by Sneakynarb, Aug 31, 2007.

  1. #1
    Basically i'm coding a website for my friend, don't visit the main page - it's just hosted on my domain, i don't want to advertise.

    The site is:
    http://samcode.net/CodeLodge/

    The problem is:
    I can get it to work perfectly with my IE text size etc, but on firefox or a textsize smaller/bigger it mucks up and looks out of place. What can i do to ensure it will work for everyone?
     
    Sneakynarb, Aug 31, 2007 IP
  2. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #2
    Well, fonts do look differently in different browsers. I usually use Verdana as my main font, it looks ok in almost all browsers.

    By the way, there's a gap between your image and background in Firefox.
     
    Katy, Aug 31, 2007 IP
  3. Sneakynarb

    Sneakynarb Peon

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That is the problem, what can i do so it works for everyone? I guess i can change the font, but the images are still different.

    Help appreciated!
     
    Sneakynarb, Sep 1, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You won't be able to unless you use a font that obeys the system metric across all browsers, such as point (which does have its drawbacks on the screen.

    I personally set the font size and leading (line-height) to 85%/140% respectively in the body selector, then use Lucida Console to ensure that my containers are wide enough to hold any sans-serif font on the screen, regardless of what font the visitor has on his or her computer (and whether said visitor has decided to override the author stylesheet).
     
    Dan Schulz, Sep 1, 2007 IP
  5. Sneakynarb

    Sneakynarb Peon

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It's not really about the Fonts, that can be sorted quite easily. It's more the screen size and the images not fitting together etc.
     
    Sneakynarb, Sep 1, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Do you mean on the menu tabs? That can be taken care of using the Sliding Doors technique.

    As for the header, I'd use a DIV with an IMG for the actual logo, and then apply a background to the DIV to make the logo image blend in with that.
     
    Dan Schulz, Sep 1, 2007 IP
  7. Sneakynarb

    Sneakynarb Peon

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have a div for the logo, and am doing sliding doors....
     
    Sneakynarb, Sep 1, 2007 IP
  8. pr0v0ke

    pr0v0ke Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I see that in your CSS file that you use the word "small" to set the font size. Don't do that, this is probably why it's happening. Change the small to a font size number, to make sure that the all the browsers display a uniform text size.
     
    pr0v0ke, Sep 1, 2007 IP