(Yep. Or, if it's code -- I only really ever use <pre> for that -- as per my example previously, with the same styles.)
On 10/25/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > The easiest way to define this is to create a division whose overflow > attribute is set to auto. example: > > <div style="overflow:auto;width=500px;"> > <pre> > whatever code you want > </pre> > </div> > > > Hope it helps. > > > Pat Boens > http://www.fastwrite.com > > > -----Original Message----- > Is there any way to specify a max width for content of <pre> tags? Currently > the content of my <pre> tags does not automatically wrap when the parent div > is at an end - it just keeps on running until it finds the end of the line. > I know the idea of the <pre> tag is to display the content as it is, but of > course I want it to remain in the boundaries of my parent element. > > Any ideas? > > ****************************************************** > The discussion list for http://webstandardsgroup.org/ > > See http://webstandardsgroup.org/mail/guidelines.cfm > for some hints on posting to the list & getting help > ****************************************************** > > -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469