| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2006
Posts: 3
|
Scrollabe Text Box!
Hi I am pretty new to Dreamweaver and I want to know how I can make a certain sized text area in the middle of the page that a viewer can scroll through and read without moving the rest of the page. You know what I mean? Just make a small scrollable text box with it's own scroll bar seperate from the browser's main scroll bar. How can I do this in Dreamweaver? THanks a lot. |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Jun 2006
Posts: 3
|
You can pretty much do this in any text editor but basically what you need is a div to enclose the text area. Then, using CSS, you specify a set height for the div and "overflow: auto;". It should insert a scroll bar once the text exceeds the specified height of the div. This is more a XHTML/CSS technique, it's not specific to Dreamweaver. |
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Jul 2006
Posts: 26
|
What you may be thinking about is typically referred to as an IFRAME. I believe they have support for those in dreamweaver, but they're falling out of favor with designers due to the popularity of the < div > overflow property mentioned in this thread. |
|
|
|
#5 (permalink) | |
|
Registered User
Join Date: Jul 2006
Posts: 26
|
Quote:
Because if you don't know the bad way, you have nothing to compare the better way to. If there's nothing to compare it to, how can we really know if it's the better way? |
|
|
|
|
#8 (permalink) |
|
Registered User
Join Date: Jul 2006
Posts: 16
|
You can make one by going to the tool bar, then selecting "Layout" Then, the third icon from the left, should say "Draw Layer". Click and drag over where you want the scrollable text. Select the new layer, then, in the properties bar, change the Overflow to "Auto" Keep in mind, the placement of the layer will change with a different screen resolution. Hope that helped. |
|
|
|
#11 (permalink) | |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Quote:
And you'll get a better result, in every possible way, every time if you do it right and hand code it. Scrollable text box: Create a <div> or other block-level element. Use CSS to give it a defined width and height and overflow: scroll;. Done. |
|
|
|
|
#13 (permalink) | |
|
fucksocks™
Join Date: Jun 2005
Location: in the boosh
Posts: 1,630
|
Quote:
Wow, that IS a great solution. one that moves depending on resolution! Maybe if you changed the postioning type to relative and placed it semantically within your code? no? Seriously, just do what PGO said and learn the code. It's piss-easy stuff so you have no excuse. |
|
|
|
|
#14 (permalink) | |
|
Registered User
Join Date: Jul 2006
Posts: 26
|
Quote:
The idea behind layers is that their positioning is absolute. The excuse is that the user doesn't want to learn the code, he wants to implement it with Dreamweaver. |
|
|
|
|
#16 (permalink) | |
|
Registered User
Join Date: Jul 2006
Posts: 26
|
Quote:
Then read this and answer it: Scrollabe Text Box! |
|
|
|
|
#17 (permalink) | ||
|
fucksocks™
Join Date: Jun 2005
Location: in the boosh
Posts: 1,630
|
Quote:
Precisely. and it's a crap solution, which highlights the benefits of learning a bit of code. anyway he CAN do it in dreamweaver, just click on code view and away you go! Quote:
ah. eluded by the quote button again |
||
|
|
|
#20 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Haha, Jesus H. Christ. Fine. I said that it didn't work because it obviously doesn't. He wouldn't have posted if it worked. Several people mentioned the right way to do it - including myself - which is the way you'd (well, the way I'd do it in Dreamweaver) do it in Dreamweaver and the way it should be done. End of story. |
|
![]() |