SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question font size problem

    I am using C.S.S. absolute positioning to layout a webpage.Unfortunately when I change the text size in the browser to anything but normal, the site goes out of shape.Even though the font size doesn't change, the areas surrounding it seem affected.
    How can I stop this happening?

  2. #2
    webality...dunno what it means bcp_2005's Avatar
    Join Date
    Jun 2002
    Location
    Huntsville Alabama
    Posts
    394
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you specifying the font characteristics with a class? I've never heard of this problem before. Oh, if you could, post a screen shot of what it looks like and your code. Thanks!
    [ metabahn ] : changing the course of the web.

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using regular spaces or & n b s p in your code? Remember that even though these are "invisible" they are still affected by CSS. As such they can throw off your alignment.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  4. #4
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Creole, it shouldnt matter if it were &nbsp spaces or normal spaces should it? They both should remain the same size when the text size is adjusted?


    I have seen this problem on a site somewhere, all i can remeber is that they had'nt managed to fix it, it's most likely a bug in IE.

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No...they don't. They are font characters and as such are able to be resized.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  6. #6
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    No...they don't. They are font characters and as such are able to be resized.
    yer, provided you use relative font sizing. by the fact that he has said the font sizing does not change I've assumed he has set the font size in pixels and is using IE... therefore they both shouldnt change.

  7. #7
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only if those characters fall INSIDE specified, defined container elements. For example, many people use a single non-breaking space to hold open a table cell (TD). It's unlikely that they would "style" that container as it doesn't contain any text. It still however, contains font characters which can be resized.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  8. #8
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    Only if those characters fall INSIDE specified, defined container elements....
    ahh now i get what you mean, i didnt think of that

  9. #9
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's why I personally only use a clear GIF for layout solutions. the & nbsp; is to unreliable.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  10. #10
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    font size problem

    I am using IE6 and have expressed fonts in pixels, so the fonts stay the same size.It is just some areas which seem to expand and misalign the border, all of them on the right hand side.

  11. #11
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To get this back on track...you'll need to post either the code or, preferably, a link.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •