Author Topic: css and html code in descriptions  (Read 5308 times)

0 Members and 1 Guest are viewing this topic.

Offline fixyou

  • Newbie
  • *
  • Posts: 26
    • View Profile
css and html code in descriptions
« on: June 14, 2009, 06:19:04 AM »
Hello everyone.

I have a problem when I insert code into html and css in a Textarea description, I get the line between <br> online </ br>

I would not leave these codes <br> </ br>

sorry for my English  :cry:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: css and html code in descriptions
« Reply #1 on: June 14, 2009, 05:52:09 PM »
can you show an example what you insert and what you get? (use [code][/code])
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fixyou

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: css and html code in descriptions
« Reply #2 on: June 14, 2009, 11:31:47 PM »
my code in details.html

Code: [Select]
<textarea onMouseOver="this.focus()" onFocus="this.select()" rows="10" name="hi" cols="26"> {image_description}</textarea

   
and as a result of this

Code: [Select]
<style>  
color: #ffffff; <br />
border-style: hidden; <br />
border:none; <br />
height: 458px; <br />
width: 956px!important;}<br />
#user-details { border: none; }<br />
</style>      


should leave well

Code: [Select]
<style>    
color: #ffffff;
border-style: hidden;
border:none;
height: 458px;
width: 956px!important;}
#user-details { border: none; }
</style>      


least  <br/>


thanks for your help  :)


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: css and html code in descriptions
« Reply #3 on: June 15, 2009, 05:24:19 AM »
ok, I see.
First of all, <style> should not be added into <body></body>, it should be inside <head></head>. Even though most browsers ignore such rules and don't ignore <style> inside <body> but this might be changed as it's against the standards. (discussion regarding this)

Secondly, in your particular case you can remove any newlines from that text, as long as you have ";" it can all be in one line.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fixyou

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: css and html code in descriptions
« Reply #4 on: June 15, 2009, 06:43:16 AM »
you have nothing to do with a php file?

http://www.4homepages.de/forum/index.php?topic=11975.0

Offline fixyou

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: css and html code in descriptions
« Reply #5 on: June 27, 2009, 12:30:59 PM »
please  :cry: