Organizing elements in the bootstrap panel header

Asked

Viewed 412 times

0

Example

    <head>
        <title>Bootstrap Example</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    </head>
      
    <body>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title  pull-left"><i class="fa fa-calendar-check-o" style="font-size:20px;width:30px;"></i> Eventos Vinculados</h3>
                <div class="input-group">
                    <input type="text" class="form-control" ng-model="FiltroTabela" placeholder="Buscar..." style="width:300px" />
                    <span class="input-group-btn"><i class="fa fa-search"></i></span>
                    <button type="button" class="btn btn-primary" ng-click="novoEvento()"><span class="btn-label"><i class="glyphicon glyphicon-plus"></i></span> Novo </button>

                </div>
            </div>
        </div>
    </body>

To align the title on the left I used the panel-title pull-left but in the cases will be used input-groups and btn-groups what would be the code to define alignment of elements to the right ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.