Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
Moderator: General Moderators
Monopoly
Forum Commoner
Posts: 41 Joined: Wed May 21, 2008 1:19 pm
Post
by Monopoly » Wed Jun 04, 2008 12:31 am
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???
deeessay
Forum Commoner
Posts: 55 Joined: Sat May 24, 2008 1:02 am
Post
by deeessay » Wed Jun 04, 2008 12:55 am
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.
deeessay
Forum Commoner
Posts: 55 Joined: Sat May 24, 2008 1:02 am
Post
by deeessay » Wed Jun 04, 2008 1:26 am
is that a plus point for me?
c",)
why, thank you Kieran Huggins....
Kieran Huggins
DevNet Master
Posts: 3635 Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:
Post
by Kieran Huggins » Wed Jun 04, 2008 1:28 am
deeessay wrote: is that a plus point for me?
It sure is, and it's worth 426 Schrutebucks! Use them wisely
deeessay
Forum Commoner
Posts: 55 Joined: Sat May 24, 2008 1:02 am
Post
by deeessay » Wed Jun 04, 2008 1:33 am
Monopoly
Forum Commoner
Posts: 41 Joined: Wed May 21, 2008 1:19 pm
Post
by Monopoly » Wed Jun 04, 2008 3:48 am
Sorry , that didn't help me at all
Any other ideeas ?
matthijs
DevNet Master
Posts: 3360 Joined: Thu Oct 06, 2005 3:57 pm
Post
by matthijs » Wed Jun 04, 2008 5:25 am
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.
Monopoly
Forum Commoner
Posts: 41 Joined: Wed May 21, 2008 1:19 pm
Post
by Monopoly » Wed Jun 04, 2008 6:01 am
aaaahhhhh
it's a matter of client-side scripting....
Kieran Huggins
DevNet Master
Posts: 3635 Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:
Post
by Kieran Huggins » Wed Jun 04, 2008 7:24 am
not even scripting... CSS.
The problem is one of layout, which is CSS territory. The example given should work perfectly.
deeessay
Forum Commoner
Posts: 55 Joined: Sat May 24, 2008 1:02 am
Post
by deeessay » Wed Jun 04, 2008 8:33 pm
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.