Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

getting form on same line



6:07 am on Jun 15, 2011 (gmt 0)

5+ Year Member

I have the following code but I need the email form on the same line. Please help!

<div class='main-block'><p><img class='left' src='images/".$thumb."' border='0' align='left' height='70' /><span><font size='+1'><a href=\"http://".$web."\" class='gray'>".$bus."</a></font>&nbsp;&nbsp;<font size='-1'>".$busc.", ".$buss."</font><br><font size='-1'><img src='images/phone.gif' width='18'> ".$ph."</font>&nbsp;&nbsp;|&nbsp;&nbsp;  <font size='-1'><img src='images/website.gif' height='13'> <a href=\"http://".$web."\" class='gray'>".$web."</a></font>&nbsp;&nbsp;|&nbsp;&nbsp;Email: <form method='post' action='website.php' style='display:inline;'><input type='hidden' name='bname' value='".$bus."'><input type='hidden' name='id' ><input type='image' src='images/envelope.gif' value='submit' class='env'></form><br /><font size='-1'>".$comm."</font></span></p></div>


10:19 am on Jun 16, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

Hi weddingm, it should be quite possible to get the email form onto the same line as other elements, but it isn't clear what line you want as the code has line breaks which are designed to start the next element on a new line.

Also recall css styles html and that is difficult when the html isn't valid. This code is mixing xhtml and html syntax, has forms (block element) enclosed in a span (inline element), and uses a lot of deprecated elements and techniques plus raw code rather than the processed output, which makes it quite hard to read and follow as well.

It would be helpful if you could prepare a valid code sample [webmasterworld.com] of the html output and then identify what line you ant the form on, plus doctype and the browsers you are supporting.

Featured Threads

Hot Threads This Week

Hot Threads This Month