Author |
Topic |
|
Reacher46
Starting Member
2 Posts |
Posted - 02 February 2005 : 07:34:36
|
Is there any way to limit the text width so that it doesn't follow the width of a larger inserted picture or long pasted in url.
A large picture posted as one response in a thread causes the whole thread width to expand making slide bar use to read each post necessary... am I missing something or is this how it is?
For example, if my personal monitor setting is 800 pixel width and a larger than 640 pixel pic is displayed in the thread, when adding the left hand column, the total is now over 800 pixels and to display now requires slide bar use to view the text above or below the picture and for all other post to the thread. Very disconcerting.
It would be wonderful if the text would not expand and follow the picture width.
Any help or thoughts? Thanks
arlyn
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 02 February 2005 : 08:35:37
|
There isn't any way of doing that, you can't wrap the text in the middle of a cell only at the end. |
|
|
TStewartFan
Junior Member
190 Posts |
Posted - 02 February 2005 : 09:36:33
|
Yes and no to your answer. It is very basic html that is needed if I am understanding your problem. Here is a view of a very basic two row solution:
<tr><td><img src=whatever.jpg /></td></tr> <tr><td> <table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td width="100">Some Text</td><td> </td></tr></table> </td></tr>
You may not be able to wrap text within the middle of a text but you can use nested tables to do it for you. Instead of using a nested table with only 2 <td> tags you could use 3 and set the width to 33% on the outside two.....to give the illusion it is in the middle of the pic. I would also recommend inserting 1x1 pixel images in the non used td tags because different browsers display dead space differently. |
If You Have to Ask, You Wouldn't Understand. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 02 February 2005 : 10:22:05
|
Since this is a Snitz related forum I assumed Reacher46 was referring to posts, in which case my NO still stands, since you can't put a table in a post either. |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
TStewartFan
Junior Member
190 Posts |
Posted - 02 February 2005 : 12:25:28
|
Perhaps I am misunderstanding this persons individual needs. I thought they were asking about when they view post that other members have posted to the site....am I wrong? If so they should be able to edit the topic.asp page to present the posted information anyway they see fit. I have made numerous changes to my little topic page to accomodate much smaller requests then theis...they just need to find where in the code the information is pulled from the db and play around with the code till they get a nestted solution that works. Trust me by no means am I attempting to contradict you because I am probably as new to Snitz as the person asking the question...but I have made changes like this so I was just trying to help. |
If You Have to Ask, You Wouldn't Understand. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 02 February 2005 : 13:04:04
|
obviously if you code it yourself, you can do what ever you want, but it is not as simple as you portray, The image could be anywhere in the post so you would have to parse every post to find out if there was an image, and then reformat all the text above and below it into nested tables, it may work fine on a small little used forum, but the increase in code execution would be pretty big, asp is not very quick when it comes to parsing large quantities of text. |
|
|
TStewartFan
Junior Member
190 Posts |
Posted - 02 February 2005 : 13:43:37
|
Sorry I have not added the attachment mod yet so I didn't know the image could go anywhere within the post. I figured it was like the rest of the mods....please insert here...and no where else..because I am the rule and u must follow the rule...heh Would it be possible to dictate where in post.asp an image can be placed? I have never fudged around the attachment mod so I don't quite know what all functionality is built into it. |
If You Have to Ask, You Wouldn't Understand. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 02 February 2005 : 14:25:32
|
the attachment mod simply creates a forum code tag which is the link for the image, but like all forumcode tags you can place them where you want, dictating where in can go would not be a very freindly thing to do, you may want to illustrate something in the middle of the text rather than have the image at the top or bottom, it is not impossible, but would mean doing a lot of work, and another lot of parsing before the post is saved as well as when it is displayed.
You would be far better having a link that opened a popup to display the image than trying to mess with the whole layout of the posts and the posting itself, it would also reduce bandwidth and speed up your forum as not everyone will look at the image if it is just a link, whereas everyone has to download it if it is visible in the post. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 02 February 2005 : 14:27:38
|
personally I would restrict the width of all images to a managable size |
|
|
Reacher46
Starting Member
2 Posts |
Posted - 02 February 2005 : 22:04:03
|
Thanks to all for the answers... our association that uses Snitz tries to self discipline itself when posting pics but of course it doesn't insure 100% compliance...
The reccomendation to provide a link to larger pictures is the same thinking we were following.
Again, thanks all. |
|
|
|
Topic |
|