Results 1 to 2 of 2

Thread: [CSS] Search field doesn't align!

  1. #1
    Junior Member
    Join Date
    Dec 2015
    Posts
    2

    [CSS] Search field doesn't align!

    Hello Fellows,

    First of all, Good Afternoon, I'm brazilian and new here, so, in advance, sorry for my english.

    I'm trying to do a Nav bar with a search field on it and a button inside it to search, but the bar does not want to stay at the same row as the other buttons and the search one is not working!

    Here's the printsreen:
    EV_196.jpg

    And here is my code:
    HTML Code:
    <li><form method='post' action='?pagina=buscar' id='buscaform'>
    <div class='form-group'>
      <div class='col-md-5'>
        <div class='input-group'>
          <input name='palavra' class='form-control' placeholder='Pesquisar Cliente...' type='text'>
          <span class='input-group-addon'><i class='glyphicon glyphicon-search'></i><input id='palavra' type='submit' value='Go' class='hidden' /></span>
        </div>
      </div>
    </div>
    </form>
    </li>

  2. #2
    Junior Member
    Join Date
    Dec 2015
    Posts
    2
    Did a lot of more research and with some changes in my code, i did it.

    Thanks.

    HTML Code:
    <li><form method='post' action='?pagina=buscar' id='buscaform' class='navbar-form' role='search'>
        <div class='input-group'>
          <input name='palavra' class='form-control' placeholder='Pesquisar Cliente...' type='text'>
    	<div class='input-group-btn'>
    <button class='btn btn-default' type='submit'><i class='glyphicon glyphicon-search'></i>
        </div>
    </form>
    </li>

Tags for this Thread

Posting Permissions

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