4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: fixyou on June 14, 2009, 06:19:04 AM

Title: css and html code in descriptions
Post by: fixyou 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:
Title: Re: css and html code in descriptions
Post by: V@no on June 14, 2009, 05:52:09 PM
can you show an example what you insert and what you get? (use [code][/code])
Title: Re: css and html code in descriptions
Post by: fixyou 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  :)

Title: Re: css and html code in descriptions
Post by: V@no 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 (http://forums.devshed.com/html-programming-1/is-style-must-be-inside-head-or-can-also-be-583204.html))

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.
Title: Re: css and html code in descriptions
Post by: fixyou 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
Title: Re: css and html code in descriptions
Post by: fixyou on June 27, 2009, 12:30:59 PM
please  :cry: