Web Design Forums

Other Languages

Get help with any programming languages other than the ones above.

Pre formatting issue



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old February 25 '09, 06:06 PM (#1)
mindbenderz is offline
New Member!
 
mindbenderz's Avatar
 
Join Date: February 2009
Posts: 2
mindbenderz is an unknown quantity at this point
Pre formatting issue

ok, I have a pm system on my site which I have been working on a little today. it all works fine, but when I try and format the read message page, it isnt working as Id like

when I read a message, it pulls the content from the sql table and displays it, as usual. now, when I dont add the <pre> tag it reads like


Quote:
thanks alot!***user1: did you get it?***user2: how about the cat picture?


but when I use the <pre> tag it displays correctly


Quote:
thanks alot!
***user1: did you get it?
***user2: how about the cat picture?


the only issue with using the <pre> tag is that it doesnt allow the wordwrap (that I know of). if a line is longer than the table layout, it will stretch the cell way out to the right and the page will get skewed.

is there an alternative to the <pre> tag that will keep the formatting of the table when it calls it from the db, or a way to properly wrap text within a <pre> tag set?

Thanks in advance for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 25 '09, 11:35 PM (#2)
Shadowfiend is offline
Code beautifully and honorably
 
Shadowfiend's Avatar
 
Join Date: June 2005
Location: Atlanta, GA
Posts: 4,143
Shadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond repute
Try adding the white-space: normal; CSS property to the pre element. That should work in Safari and Firefox, not sure about IE (probably not, because it's IE...).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 9 '09, 01:53 AM (#3)
dvdreplication is offline
New Member!
 
dvdreplication's Avatar
 
Join Date: July 2009
Posts: 1
dvdreplication is an unknown quantity at this point
the only issue with using the <pre> tag is that it doesnt allow the wordwrap (that I know of). if a line is longer than the table layout, it will stretch the cell way out to the right and the page will get skewed.

Last edited by filburt1; July 9 '09 at 10:21 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » Other Languages

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
a most preculiar issue in IE Ditch HTML and CSS Help 6 March 20 '08 01:38 PM
Front Page Background/Sample song issue Stever General Web Design Discussion 4 May 24 '06 11:24 PM
Remove formatting on paste Sinjen Javascript, AJAX, and JSON 0 June 8 '05 06:25 AM
CGI text formatting Snorkerz Other Languages 2 February 10 '05 08:55 AM

 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 01:55 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164