Adding Scroll Bar in Dreamweaver?

Discussion in 'Mac Apps and Mac App Store' started by eclipse525, Oct 26, 2004.

  1. eclipse525 macrumors 6502a

    eclipse525

    Joined:
    Aug 5, 2003
    Location:
    USA, New York
    #1
    I am trying to add scrolling option in a webpage I'm presently working on. I would like to put in a crap load of text in a specific area of the page and I need the text to have a scroll bar to accomodate the amound of text. Is there a way to do this in Dreamweaver? I know if you build it in Flash you can do this but I need to do all in Dreamweaver. Any help or direction to any good sites that might help me out are appreciated. Thanks!

    ~e
     
  2. Logik macrumors 6502a

    Joined:
    Apr 24, 2004
    #2
    i haven't actually done this myself.. but you're talking about a layer or an iframe of some sort... look into both of those and you may find your answer
     
  3. zim macrumors 65816

    zim

    Joined:
    Jan 5, 2002
    #3
    You could set a div, specify the width and height in the css and then put overflow to scroll.

    example:

    <style type="text/css">
    body {
    font: 11px Arial, Helvetica, sans-serif;
    }
    div#content {
    width: 200px;
    height: 200px;
    background: #ccc;
    overflow: scroll;
    }
    </style>
    ...

    <div id="content">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc dapibus sagittis orci. Mauris magna elit, facilisis a, imperdiet ac, imperdiet a, velit. Vivamus augue tortor, pellentesque in, aliquam ac, vulputate nec, arcu. Suspendisse dolor risus, porttitor vel, luctus sit amet, rhoncus quis, turpis. Morbi nisl orci, placerat ac, volutpat eget, tristique eu, elit. In nonummy ultricies arcu. Nunc nulla. Suspendisse malesuada feugiat wisi. Etiam ullamcorper ultricies nisl. Aliquam consectetuer sollicitudin lacus. Morbi turpis lectus, vehicula ac, tincidunt sed, condimentum eu, nisl. Duis in risus id tellus auctor ornare. Etiam eget nibh. Sed non elit. Sed non justo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam tempus, turpis et hendrerit tempor, tortor dolor vulputate arcu, quis luctus lorem risus id pede. Duis fermentumhendrerit dolor. Ut vel elit et ante dapibus semper. Proin ut neque.</p>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc dapibus sagittis orci. Mauris magna elit, facilisis a, imperdiet ac, imperdiet a, velit. Vivamus augue tortor, pellentesque in, aliquam ac, vulputate nec, arcu. Suspendisse dolor risus, porttitor vel, luctus sit amet, rhoncus quis, turpis. Morbi nisl orci, placerat ac, volutpat eget, tristique eu, elit. In nonummy ultricies arcu. Nunc nulla. Suspendisse malesuada feugiat wisi. Etiam ullamcorper ultricies nisl. Aliquam consectetuer sollicitudin lacus. Morbi turpis lectus, vehicula ac, tincidunt sed, condimentum eu, nisl. Duis in risus id tellus auctor ornare. Etiam eget nibh. Sed non elit. Sed non justo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam tempus, turpis et hendrerit tempor, tortor dolor vulputate arcu, quis luctus lorem risus id pede. Duis fermentumhendrerit dolor. Ut vel elit et ante dapibus semper. Proin ut neque.</p>
    </div>
     
  4. eclipse525 thread starter macrumors 6502a

    eclipse525

    Joined:
    Aug 5, 2003
    Location:
    USA, New York
    #4
    Thanks....i'll give it a shot.

    One other thing, i'm build this site mostly in photoshop and then slicing it up and exporting it via Fireworks. I've read that I should export as CSS as oppose to HTML. Is this right and why? What's the advantage.




    ~e
     
  5. zim macrumors 65816

    zim

    Joined:
    Jan 5, 2002
    #5
    css is a visual presentation language while html is a structural language. I have not used fireworks, so I am not aware of it's full advantages. I would guess that they are referring to the ability to have fireworks compile some of the css. css does not actually allow for browsing, just defines the appearance of the site.

    Advantage:
    (again, I do not use fireworks so I do not know how it would be exporting the content)

    css allows for a single document of style rules to control an infinitive amount of html pages. As a site manager, this means that if there is a presentation issue or change needed to be made, it only needs to be done in the css and not the html. Any change to the css will update any page that is linked to it.
     

Share This Page