Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2004, 05:38 PM
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default text in limited area

Hi. I'm a new member, so please forgive me if I do not follow etiquette. I am having a problem with Dreamweaver MX. I am designing a site for a local band, and I need to know how to put text in a limited area (478 x 88 px). I want it scrollable, but not editable on the web. I would appreciate any help on this matter. Thanks.
 
Old July 6th, 2004, 05:56 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Try this:

<div style="overflow:scroll;width:478px;height:88px">

YOUR TEXT

</div>

HTH,

Snib

<><
 
Old July 6th, 2004, 05:58 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can try this:
Code:
<div style="overflow:auto; width:478px; height:88px;">
    Hi I am a div off 478 x 88 pixels. 
    I will display scrollbars automatically when I 
    contain too much text to display at once.<br />
    Hi I am a div off 478 x 88 pixels. 
    I will display scrollbars automatically when I 
    contain too much text to display at once.<br />
    Hi I am a div off 478 x 88 pixels. 
    I will display scrollbars automatically when I 
    contain too much text to display at once.<br />
</div>
This doesn't necessarily have anything to do with Dreamweaver, though. This example uses CSS to limit the size of the "box" (the <div> tag in this example). The overflow property determines whether scrollbars are displayed. auto means when necessary; scroll will display the scrollbars, whether they are necessary or not.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Eerlijkheid by Hans Teeuwen (Track 17 from the album: Dat Dan Weer Wel) What's This?
 
Old July 6th, 2004, 11:46 PM
Registered User
 
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
  This code may hepl u.......

<SCRIPT>
function SetOverflow(o, sValue)
{
    o.style.overflow = sValue;
}
</SCRIPT>

<DIV ID="div1"
    STYLE="font-size:18pt;background-color:yellow;height:50px;width:100px">
The quick brown fox jumped over the lazy dog.
</DIV>

<SELECT onchange="SetOverflow(div1,
    this.options[this.selectedIndex].text)">
<OPTION SELECTED>visible
<OPTION>scroll
<OPTION>hidden
<OPTION>auto
</SELECT>


.........Have a nice day :)

 
Old July 8th, 2004, 10:28 AM
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks guys....now have a better understanding. More than likely I'll be back with more silly questions (I'm fairly new to DW).





Similar Threads
Thread Thread Starter Forum Replies Last Post
Text area Wenggo VBScript 5 September 20th, 2008 07:21 PM
Submit text to main page from text area... user0b PHP How-To 2 June 30th, 2008 09:52 PM
Need help: Not able to Assign Value to a Text Area steveleong Classic ASP Professional 3 February 20th, 2008 09:15 PM
text area box shoakat Classic ASP Databases 2 September 11th, 2004 07:28 AM
enter key within text area shs BOOK: Beginning ASP.NET 1.0 0 April 12th, 2004 11:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.