Results 1 to 2 of 2

Thread: font size on resizing the page

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default font size on resizing the page

    i am designing a website in which i am using a photograph in the center and some text written on it and i am using size(width and height) in percentage for that image so that my image is re sized on the browser window resize but the problem is that my text is not resizing and remains of same size so comes out of the image and looking very odd. so pls tell me how can i resize my text also on browser resize.

    thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Best solution, make your text an image and treat it in a similar fashion to the image, or just write it directly on the image using an image editing program. Make sure to backup your image first.

    The reason why this is best is that via css alone, text size can bear no relation to window size and is completely user configurable in most browsers. So even if you were to link it up to window size (probably using javascript), the user could always change his/her settings or have a different setting than you think, so that the result would be other than expected.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •