SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,211
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    default font size

    Code:
    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>myPage</title>
    </head>
    <body>
    
    myText
    
    </body>
    </html>
    There is no designation of font size in the code above. in this case what size is for the font of "myText"?

  2. #2
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,233
    Mentioned
    52 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by dotJoon View Post
    Code:
    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>myPage</title>
    </head>
    <body>
    
    myText
    
    </body>
    </html>
    There is no designation of font size in the code above. in this case what size is for the font of "myText"?
    The font size will be the default font size of the browser or whatever size the browser default has been changed to by the user.

  3. #3
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,740
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    Yup. Default size will vary by browser and user.
    This is why you cant apply "print" logic to web design. The user has ultimate control of EVERYTHING including DEFAULTS AND preventing the user from being able to have control over such defaults is considered an accessibility FAIL.

  4. #4
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,211
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dresden_phoenix View Post
    This is why you cant apply "print" logic to web design.
    What does that mean?
    Would you rephrase the above, please?

  5. #5
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,740
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    Print logic: meaning that you have fixed or controlled dimensions.

    For exaple, were I to be designing a poster for print ... I could take for granted that a headline would not wrap... and since a non wrapping line of text looks good then that's the solution.

    Web design requires that you create solutions that work if the headline wraps or if it doesn't.


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
  •