Hi All
I'm not sure if you can do this but I have heard that you can.
It seems that my Form creates a carriage return when it is closed - BUT my page design gets messed up by this unwanted, meddling carraige return.
Does anyone know how to remove the carraige return from a </form> tag using CSS?
Any help is appreciated.
Thanks
Remove Carriage Return from closing Form tag
I don't know if it can be removed with CSS...
I think it's a browser thing, some might add a carriage return, some not. If you're trying to do things inline, I don't think it will work, but something like:
<form> ... <div> {visual stuff} </div> </form>
removes some default padding. But then the carriage return appears in the parent <div>(or whatever).
Random babble. Hope someone else can help some more!
Remove Carriage Return from closing Form tag
the extra space built from the "carriage return" like you say is when your browser manage the form content... you have to set your form correctly then:
instead of:
<form blah blah> <table> <tr><td> my table content and form stuff</td></tr> </table> </form>
try this:
<table> <form blah blah> <tr><td> my table content and form stuff</td></tr> </form> </table>
that way, instead of forcing a new line in your table (if you'd place your form start/end inside the <td >, you block it to be shown, in the table tag itself...
you have different ways to disable that space.. test them that way. this is an example applyed on a table, but in a div or anything else, it's the same...
this is not a single bit related to CSS, but to HTML ...
Remove Carriage Return from closing Form tag
Hi
Thanks for your replys - but I have actually found the answer (and it is resolved within CSS).
by adding class="searchform" into the <form> tag;
<form class="searchform">
and then adding the following line of CSS code into your style sheet;
form.searchform {display: inline;}
It removes the carriage return - great!
Loads of CSS info at;
http://www.w3schools.com/css/default.asp
Thanks All