SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up How can i make sure the text doesn't overflow?

    My site: http://leoj.info/upload889/framed-still.html

    I want to have the text never be bigger than that page. Right now it is in an absolutely positioned div with overflow set to auto. Something like %'s would keep the text always less than the web browsers default view? Like if the make the default text size bigger with zoom or w/e I want my text to get smaller.

    Thanks, say something if I wasn't clear.

  2. #2
    SitePoint Addict Caterwomtious's Avatar
    Join Date
    Dec 2001
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't prevent users from resizing text, nor should you. Some people simply cannot read text when it's small and need to make it bigger.

    You can choose from a few compromises:
    • use overflow: auto, as you're doing now, and accept scrollbars
    • Use a tiled background that can expand with the text. With your design this would be really difficult to pull off.
    • Give yourself a few extra pixels. You've designed for an 800x600 screen, but there aren't too many of those about any more, and even fewer in the gaming community I would think. Design for 1024x768 instead.


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
  •