• Lucid Dreaming - Dream Views




    Results 1 to 25 of 26

    Threaded View

    1. #24
      Amateur WILDer
      Join Date
      Apr 2006
      Posts
      978
      Likes
      12
      You really need to start to basics.

      Here's some code that will allow for scroll bars.

      HTML Code:
      <div style="display:block; width:500px; height:500px; overflow:scroll;">
      <img src="/..." alt="" />
      </div>
      Any image larger than your set height and width will have a scroll bar show up. If you only want it scroll in the x/y direction, change overflow:scroll to either overflow-x:scroll or overflow-y:scroll depending on how you want it to scroll. The display:block is not really necessary since I have defined height and width, but I'm so used to throwing it in everywhere that I just put it in anyway.

      It's good practice to:

      A) Define width and height in some sort units, like pixels above.
      B) Avoid using tables to format.
      C) Link all CSS to a CSS file instead of using style="..." in the div tags like I did in the code above.
      Last edited by blade5x; 10-06-2008 at 04:10 AM.

    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
    •