homepage Welcome to WebmasterWorld Guest from 54.227.40.166
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
getting form on same line
weddingm




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

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>

 

alt131




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved