eclipse525
Oct 26, 2004, 09:31 PM
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
Logik
Oct 26, 2004, 09:42 PM
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
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
zim
Oct 26, 2004, 10:18 PM
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>
eclipse525
Oct 27, 2004, 06:03 AM
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
zim
Oct 27, 2004, 07:13 AM
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
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.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.