0

I use bootstrap
How can i align the div with sadllebrown border to the middle(vertical) . Itried everything but it didn't get aligned as i want,
thanks in advance .
here is my code

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="Content/bootstrap.min.css" rel="stylesheet" />
    <link href="Content/the-big-picture.min.css" rel="stylesheet" />
    <style>
        body { padding-top: 50px; }
    </style>
    <title>Italian Restuarant</title>
</head>
<body>
    <div class="row">
        <div class="container">
            <nav class="navbar navbar-default navbar-fixed-top" style="background-color:darkred;">
                <div class="container-fluid">
                    <div class="navbar-header"></div>
                </div>
            </nav>
        </div>
    </div>

    <div class="row" style="background-color:white;">
        <div class="container">
            <div class="col-md-3"></div>
            <h1>Italian Restaurant</h1>
        </div>
    </div>

    <div class="container" style="border:solid">
        <div class="row" style="border:solid;border-color:red;">
            <div class="col-md-8" style="border:solid;border-color:saddlebrown;">
                <div>
                    <h3>I want to align this as vertical middle</h3>
                </div>
            </div>
            <div class="col-md-4">
                <div class="row">
                    <div class="jumbotron" style="background-color:orange;">
                        <div style="text-align:center;font-size:31px;font-weight:800;color:white;">BOOK A TABLE</div>
                        <div>
                            <form role="form">
                                <div class="form-group">
                                    <label class="control-label" for="exampleInputEmail"></label>
                                    <input type="email" class="form-control" id="name" placeholder="Enter Name">
                                    <label class="control-label" for="exampleInputEmail"></label>
                                    <input type="email" class="form-control" id="email" placeholder="Enter email">
                                    <label class="control-label" for="exampleInputEmail"></label>
                                    <input type="email" class="form-control" id="phonenumber" placeholder="Phone Number">
                                    <label class="control-label" for="exampleInputEmail"></label>
                                    <input type="email" class="form-control" id="date" placeholder="Date">
                                    <label class="control-label" for="exampleInputEmail"></label>
                                    <input type="email" class="form-control" id="time" placeholder="Time">
                                </div>
                                <button type="submit" style="background-color:darkred;color:white;" class="btn btn-primary btn-block">Request Booking</button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="Scripts/jquery-3.1.1.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>
</body>
</html>
2
Contributors
1
Reply
9
Views
10 Months
Discussion Span
Last Post by diafol
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.