Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default Width on a <pre> tag

    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.
    Lets set the stage on fire, and hollywood will be jealous.

  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Use PHP to edit out the HTML?

  3. #3
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    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)
    Lets set the stage on fire, and hollywood will be jealous.

  4. #4
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Tom743 View Post
    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.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •