I don't feel well. All of a sudden, an unwanted white horizontal line has appeared in the bottom of my jumbotron. It's happened after...
Inserting a navbar form
Adding a form at the bottom of the body
Inserting a object then
inserting a button in the jumbotron
I've commented out all changes I've made, but to no avail.
<header class="jumbotron">
<!-- Main component for a primary marketing message or call to action -->
<div class="container">
<div class="row row-content">
<div class="col-xs-12 col-sm-8">
<h1>Ristorante con Fusion</h1>
<p style="padding:40px;"></p>
<p>We take inspiration from the World's best cuisines!</p>
</div>
<div class="col-xs-12 col-sm-2">
<p style="padding:20px;"></p>
<img src="img/logo.png" class="img-responsive">
</div>
<div class="col-xs-12 col-sm-2">
<br><br><br><br><br>
<button type="button" class="btn btn-warning btn-lg btn-block" onclick="window.location.href='#reservation'">Reserve table</button>
</div>
</div>
</div>
</header>
<header class="jumbotron" style="margin-bottom:0px">
<!-- Main component for a primary marketing message or call to action -->
<div class="container">
<div class="row row-content">
<div class="col-xs-12 col-sm-8">
<h1>Ristorante con Fusion</h1>
<p style="padding:40px;"></p>
<p>We take inspiration from the World's best cuisines!</p>
</div>
<div class="col-xs-12 col-sm-2">
<p style="padding:20px;"></p>
<img src="img/logo.png" class="img-responsive">
</div>
<div class="col-xs-12 col-sm-2">
<br><br><br><br><br>
<button type="button" class="btn btn-warning btn-lg btn-block" onclick="window.location.href='#reservation'">Reserve table</button>
</div>
</div>
</div>
Found it! You can relax everyone...
<div class="row row-content">
should have been
<div class="row row-header">
Related
So im a newbie to this so go easy on me here. So im trying to get this to display with one to the left the other to the right. And right now it's just underneath each other. This is how im trying to get it to look but to no avail
<body class="flex-column min-100-vh">
<header class="back-ground">
<h1> Weather Dashboard</h1>
</header>
<main class="flex-row justify-space-between">
<!-- left -->
<div class="container-fluid">
<div class="row">
<div class=" col-12 col-md-4">
<div class="card border border-dark card-header">
<h3 class="text-center">Search by city</h3>
<input type="text" placeholder="Type city here" class="form-control text-center">
<button class="btn text-center">Search</button>
</div>
<div id="savedCity"></div>
</div>
</div>
</div>
</div>
<!-- Right -->
<div class="container-fluid">
<div class="row">
<div id="forecast " class="col-12 col-md-8">
<h2 class="cityName"></h2>
<p class="temp"></p>
<p class="humidity"></p>
<p class="wind"></p>
<p class="uv"></p>
<div id="fiveday-forcast">
<h2 class="five"></h2>
<div class="d-flex" id="fiveday-container"></div>
</div>
</div>
</div>
</main>
I wanted to change the default theme of Asp.net.I changed it but now the problem is whenever i click on the login button or register button on the navbar it shows on the home page instead of showing it on a different page.I tired figuring out where the problem was coming from here's what i gathered so far
<!--This Is Causing That Problem-->
<Section id="TextHeader">
<div class="container px-0">
<div class="row">
<div class="col-lg-12" id="special">
<h1 class="text-center text-white">Content</h1>
<h5>Content</h5>
<a type="button" class="btn btn-danger rounded-pill" href="About us.html">Get Started</a>
</div>
</div>
</div>
</Section>
<Section id="content">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12" id="hulky">
<h3 class="text-center">Why Us</h3>
<hr>
<p class="text-center">
content
</p>
Get Started
</div>
</div>
</div>
</Section>
<section id="Middle">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h3 class="text-center">Content</h3>
<hr>
</div>
</div>
</div>
</section>
<section id="unamed">
<DIV class="container-fluid px-0">
<div class="row">
<div class="col-lg-6">
<img src="Teacher.jpg" alt="" class="img-fluid d-none d-lg-block">
</div>
<div class="col-lg-6">
<h4>Content</h4>
<p id="teacher">Content</p>
</div>
</div>
</DIV>
</section>
<section id="Students">
<DIV class="container-fluid px-0">
<div class="row">
<div class="col-lg-6">
<img src="Student.jpg" alt="" class="img-fluid d-none d-lg-block">
</div>
<div class="col-lg-6">
<h1>Content>
</div>
</div>
</DIV>
</section>
this code has something that is causing the problem and this is default bootstrap code so its very tough to know what is causing the problem
I have used bootstrap for my website, simply put there are two column enclosed in col-md-12, they are col-md-6,
They should not be collapsing because enough space is given, why is this happening?
<div class="container-fluid" style="margin: 0">
<div class="row">
<div class="col-md-12">
<div class="col-md-6 ">
<div class="col-sm-12">
<img class="centering newReq" src="add-512.png" height="132" width="142">
</div>
<div class="col-sm-12">
<button type="button" class="btn btn-warning centering btnAdjust">New Request</button>
</div>
</div>
<div class="col-md-6 ">
<div class="col-sm-12">
<img class="centering newReq" src="contact.png" height="132" width="142">
</div>
<div class="col-sm-12">
<button type="button" class="btn btn-warning centering btnAdjust">My request</button>
</div>
</div>
</div>
</div>
</div>
Just remove the col-md-12 because each row contains each column. Optionally try to use
img-responsive class instead of setting width and height for image.
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div class="container-fluid" style="margin: 0">
<div class="row">
<div class="col-md-6 ">
<div class="col-sm-12">
<img class="centering newReq img-responsive" src="https://via.placeholder.com/150" height="132" width="142">
</div>
<div class="col-sm-12">
<button type="button" class="btn btn-warning centering btnAdjust">New Request</button>
</div>
</div>
<div class="col-md-6 ">
<div class="col-sm-12">
<img class="centering newReq img-responsive" src="https://via.placeholder.com/150" height="132" width="142">
</div>
<div class="col-sm-12">
<button type="button" class="btn btn-warning centering btnAdjust">My request</button>
</div>
</div>
</div>
</div>
enter image description herehow to center all the elements center in the html body with responsive.i want all three elements in center of the body which are shown in the image.Am using bootstrap frame.
<div class="container-fluid">
<div class="col-md-4">
<img src="img/quote.png" class="img-responsive wow animated zoomIn">
</div>
<div class="col-md-6 text-center main-img">
<img src="img/main.jpg" class="homeimg img-responsive wow animated zoomIn">
</div>
<div class="col-md-2">
<button type="button" class="btn btn-success btn-lg" data-toggle="modal" data-target="#myModal" data-backdrop="static" data-keyboard="false">Go to Website</button>
</div>
</div>
enter image description here
Have a look at this - https://plnkr.co/edit/ABOpqjxWw2ZvGiMiy53O?p=preview
Since you're using bootstrap cols, adding an offset col-md-offset-4 will help do the job.
You can a div class row to align the grid to the center of the page
<div class="container-fluid">
<div class="row">
<div class="col-md-4">
<img src="img/quote.png" class="img-responsive wow animated zoomIn">
</div>
<div class="col-md-6 text-center main-img">
<img src="img/main.jpg" class="homeimg img-responsive wow animated zoomIn">
</div>
<div class="col-md-2">
<button type="button" class="btn btn-success btn-lg" data-toggle="modal" data-target="#myModal" data-backdrop="static" data-keyboard="false">Go to Website</button>
</div>
</div>
</div>
You can try like this:
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-md-4">
<img src="img/quote.png" class="img-responsive wow animated zoomIn">
</div>
<div class="col-md-6 text-center main-img">
<img src="img/main.jpg" class="homeimg img-responsive wow animated zoomIn">
</div>
<div class="col-md-2">
<button type="button" class="btn btn-success btn-lg" data-toggle="modal" data-target="#myModal" data-backdrop="static" data-keyboard="false">Go to Website</button>
</div>
</div>
</div>
</div>
Img tag is not working for some reason.Can anyone suggest me anything?I'm using bootstrap
<div id="header" class="header">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6">
<h1>Responsive Web design</h1>
<p> Hello</p>
<button type="button" class="btn btn-lg btn-primary">Buy Mow</button>
<button type="button" class="btn btn-lg btm-success">View Details</button>
</div>
<div class="col-lg-6 col-md-6">
<img src=img/a.jpg" alt="1">
</div>
</div>
</div>
</div>
Are you sure is syntax ok?
<img src=img/a.jpg" alt="1">
Where is the " after src?
<img src="img/a.jpg" alt="1">
Be sure to close your quotation marks
<div class="col-lg-6 col-md-6">
<img src="img/a.jpg" alt="1">
</div>
Replace your code with this:
<div id="header" class="header">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6">
<h1>Responsive Web design</h1>
<p> Hello</p>
<button type="button" class="btn btn-lg btn-primary">Buy Mow</button>
<button type="button" class="btn btn-lg btm-success">View Details</button>
</div>
<div class="col-lg-6 col-md-6">
<img src="img/a.jpg" alt="1">
</div>
</div>
</div>
</div>