by-expession

Expression Web Resources

Exercise 5-2 -Source Code

Latest post 07-30-2007 11:30 AM by cdwise. 1 replies.
  • 07-29-2007 6:15 PM

    Exercise 5-2 -Source Code

    View the source file, browser-test.html, in IE7 and Opera 9.22.

    In this file, white-space: pre; causes the text in <code> to display beyond the right side of <div.codeblock> in both browsers, though it looks fine in EW. Removing white-space: pre; eliminates the problem.

    What was it suppose to be doing and why is it a problem, now?



    Filed under: , ,
  • 07-30-2007 11:30 AM In reply to

    • cdwise
    • Top 10 Contributor
    • Joined on 12-22-2006
    • Houston, TX
    • Posts 540

    Re: Exercise 5-2 - Source Code

    White-space: pre means the page will display exactly in the same way as the source code. If the code runs together it will overflow out of the box while if the source code has new lines and spaces they will show as well.

    Play with the source code formatting in the white-space: pre section.

    Cheryl D Wise MS MVP Expression Instructor: starttoweb.com

    Filed under:
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems Sponsored by: Start to Web
@ 2005-2008 Cheryl D Wise