PDA

View Full Version : Width on a <pre> tag



Decode
16-06-2008, 05:10 PM
Is there any way to put a width on a pre tag. I cant just do <pre style="width: 200px;">lololol lololol lololol lololol </pre> because it still goes over the width. Its for a profile page, and its to stop people using html in there profiles.

Blob
16-06-2008, 05:21 PM
Use PHP to edit out the HTML?

Decode
16-06-2008, 05:24 PM
Use PHP to edit out the HTML?
I was going to do that, but then when you did a new line in the textarea where you edit your details it didnt show up on the profile page (so that why i added the pre tags)

Agnostic Bear
17-06-2008, 09:21 AM
Is there any way to put a width on a pre tag. I cant just do <pre style="width: 200px;">lololol lololol lololol lololol </pre> because it still goes over the width. Its for a profile page, and its to stop people using html in there profiles.

Just try !important and overflow: scroll; if you need it.

Want to hide these adverts? Register an account for free!