www.webdeveloper.com
Results 1 to 3 of 3

Thread: prevent form from starting new line?

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    9

    prevent form from starting new line?

    Hey I've got a list of links that I want to display followed by a search field (using a form), but the form seems to want to start a new line no matter what I try. It looks like this:
    HTML Code:
    <a href="">Home</a>
    <a href="">Post </a>
    <form name="search" action="search.php" method="POST">
    	<input type="text" name="searchTerm">
    		<select>
                    <!-- Options -->
    		</select>
    	<input type="submit" name="submitSearch" value="Search">
    </form>
    and it comes out with the links one line above the form elements.. i want this to be a single horozontal line running across the top of my page... any ideas?

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,277
    Code:
    <form name="search" action="search.php" method="POST" style="display:inline">

  3. #3
    Join Date
    Jun 2005
    Posts
    9
    thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles