Page 1 of 1
Problems with guestbook
Posted: Wed Jun 04, 2008 12:31 am
by Monopoly
Dear lads ,
I have written a guestbook lately , but a thing about it gets me of my nerves

.
When people post something and the posts are realy big ,well, the output on the main page isn't wraped and I get one , long string that streches the browser till I get I huge scroll bar.
Are there any ways to "wrap" the string???

Re: Problems with guestbook
Posted: Wed Jun 04, 2008 12:55 am
by deeessay
Well, you can put the output inside a text area of better yet, enclose the part where posts are displayed in a <DIV> tag
such as this one:
<div style="overflow:auto;height:435px;width:100%;padding:0px;">
---->GUESTS POSTS HERE<-----
</div>
this solves your problem with the extra long scroll bar in your browser anyway.
Re: Problems with guestbook
Posted: Wed Jun 04, 2008 1:11 am
by Kieran Huggins
deeessay++
Re: Problems with guestbook
Posted: Wed Jun 04, 2008 1:26 am
by deeessay
is that a plus point for me?
c",)
why, thank you Kieran Huggins....

Re: Problems with guestbook
Posted: Wed Jun 04, 2008 1:28 am
by Kieran Huggins
deeessay wrote:is that a plus point for me?
It sure is, and it's worth 426 Schrutebucks! Use them wisely

Re: Problems with guestbook
Posted: Wed Jun 04, 2008 1:33 am
by deeessay
Posted: Wed Jun 04, 2008 3:48 am
by Monopoly
Sorry , that didn't help me at all
Any other ideeas ?
Re: Problems with guestbook
Posted: Wed Jun 04, 2008 5:25 am
by matthijs
Yes.
1) post your question in the right forum (client side),
2) show the relevant code (wrapped in code html/css tags) and
3) explain what you have already tried so far.
That allows other forum members to help you better.
Re: Problems with guestbook
Posted: Wed Jun 04, 2008 6:01 am
by Monopoly
aaaahhhhh
it's a matter of client-side scripting....

Re: Problems with guestbook
Posted: Wed Jun 04, 2008 7:24 am
by Kieran Huggins
not even scripting... CSS.
The problem is one of layout, which is CSS territory. The example given should work perfectly.
Re: Problems with guestbook
Posted: Wed Jun 04, 2008 8:33 pm
by deeessay
Monopoly, try using tables in displaying the guest posts, used in conjunction with the <div> tag i mentioned before, of course:
<div style="overflow:auto;height:435px;width:100%;padding:0px;">
<TABLE width='100%' border='0'>
<TR>
<TD>Guest's Name goes here</TD>
</TR>
<TR>
<TD>Message goes here</TD>
</TR>
....
....
....
<TR>
<TD>etc, etc, etc,</TD>
</TR>
</TABLE>
</div>
what happens is that you'll have a small window in your browser that will display the guests' posts and will have its own scroll bar.