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>
Member Avatar for diafol

Perhaps a screenshot or mockup would help. Posting framework markup can be a little confusing

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.