Jumbotron background image isn't showing full-width - html

My Jumbotrons background image isn't quite making it full width.
Any idea why?
Live link: http://185.123.96.102/~kidsdrum/moneynest.co.uk/
You can see the the width of the background image doesn't make it as far as the nav bar.
HTML
<div class="container special">
<div class="jumbotron">
<div class="container text-center">
<div class="h1extrapadding hidden-xs hidden-sm"></div> <h1 class="boldme">Aged 20-30 & frustrated with money?</h1>
<div class="greenpromobox">
<div class="h2extrapadding hidden-xs hidden-sm"></div> <h2 class="boldme">Take our free <b class="jumpstarttext">Jumpstart Your Finances</b> class to<br /> quickly gain control over your finances</h2>
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//moneynest.us11.list-manage.com/subscribe/post?u=9ccf2d2219536b32eaae3c3d1&id=299de51b4e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<img src="http://185.123.96.102/~kidsdrum/moneynest.co.uk/img/hand-drawn-arrow.png" id="handarrow" class="hidden-xs hidden-sm" alt="arrow"><input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Enter your email address" required autofocus>
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_9ccf2d2219536b32eaae3c3d1_299de51b4e" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Start Class Now" name="subscribe" id="mc-embedded-subscribe" class="text-uppercase btn btn-primary btn-lg"></div>
</div>
</form>
</div>
<!--End mc_embed_signup-->
</div>
</div>
</div>
</div>
</div>
CSS
.jumbotron {
background-image: url("../img/checking-finances-in-cafe-blurred.png");
background-size: cover;
color: white;
}
#handarrow {
position: relative;
top: -50px;
left: -5px;
}
html,body {height:100%;}
.special,.special .jumbotron
{height:100%;
width: 100%;
}

I think your problem might be the default margin or padding on the html and body tags. Try:
html, body {
margin: 0px;
padding: 0px;
}
Not sure if that will work, but it's worth a shot.

The reason for this is bootstrap's container class, that takes up padding on both the left and right hand side. If you remove this class, the image will take up the full screen.
Or, you can use the container-fluid class
Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to padding and more, neither container is nestable.
Use .container for a responsive fixed width container.
Use .container-fluid for a full width container, spanning the entire width of your viewport.
I tested it out in Chrome's Developer tools, and that fixed it.

it is due to you have added class container remove this class from first div it will resolve you issue.
<div class="container special"> to <div class="special">

Related

How can I align form input to the bottom of the page with Bootstrap?

How can I align a bootstrap form input to the bottom of the page? I've tried several different approaches nothing has worked.
How it currently looks.
How I want it too look.
I need to align the form element to the bottom to make it look like proper messaging input.
However, when I attempt to use form { position: fixed; bottom: 0; } it changes the formatting of the input like so.
Thanks for the help.
<div class="container-fluid">
<div class="row">
<div class="col-md-3 messages">
<p class="city">Edinburgh Uni <i class="fa fa-graduation-cap"></i><i style="float:right" class="fa fa-sort-desc"></i></p>
<p class="paddingLeft" style="margin-top:-15px"><i class="fa fa-user-circle"></i> Jack</p>
</div>
<div class="col-md-9">
<h4 style="margin-top:20px">International Business 📈 <i style="float:right" class="fa fa-cog"></i></h4>
<p class="description"><i class="fa fa-user"></i> 10 | Support group for International Business Students class of 2019.</p>
<hr>
<form>
<div class="form-row">
<div class="col">
<input type="text" class="form-control" placeholder="Message">
</div>
<button type="submit" class="btn btn-primary">Send</button>
</div>
</form>
</div>
</div>
</div>
position: absolute; bottom: 0;
use absolute position on the form, and place it 0 pixels from the bottom of its parent;
make sure the parent container (col-md-9) has an appropriate height for this to work.
Try this (use position that is the most appropriate to you):
form { position: fixed; bottom: 0; }
Hope this helps :)

Can't turn header image into link

I'm trying to turn my header at http://ukgraffiti.tumblr.com/ into a link back to the main page.
CSS:
#header {
position: fixed;
padding: 50px 500px 90px 80px;
background-image: url(http://s32.postimg.org/nqrhk4r9h/graffiti_header3.jpg);
background-repeat: no-repeat;
}
HTML:
<div id="header">
<h1>{Title}</h1>
</div>
The problem seems to be that the id and h1 actually control the default text header, which I've hidden with CSS, rather than the image I've put in its place.
I tried giving creating a simple link with a different id, and then changed the id in the CSS, but this didn't work and messed up my layout anyway.
Thanks in advance.
You can just apply the header id to the <a> tag:
<a id="header" href="http://ukgraffiti.tumblr.com/">{Title}</a>
I just looked at your site now. The issue is that div is what you wanna make clickable because it has a background image. So do this
Edited: So I made some changes to get what you may want
<div>
<img src="http://s32.postimg.org/nqrhk4r9h/graffiti_header3.jpg">
<div id="topsearch">
<form action="http://ukgraffiti.tumblr.com/search" method="get" id="searchform">
<p><input onfocus="this.value=''" type="text" value="Search" name="q" results="5"></p>
</form>
</div>
Also to remove white gap, remove margin-top: 200px; from #content.
Replace your html:
<div id="header">
<h1>UK GRAFFITI</h1>
<p id="description"><br></p>
<div id="topsearch">
<form action="/search" method="get" id="searchform">
<p>
<input onfocus="this.value=''" type="text" value="Search" name="q" results="5">
</p>
</form>
</div>
</div>
With this one:
<a id="header" href="href="http://ukgraffiti.tumblr.com/">
<h1 class="header-text">UK GRAFFITI</h1>
</a>
<form action="/search" method="get" id="searchform">
<input onfocus="this.value=''" type="text" value="Search" name="q" results="5">
</form>
And add this to your css:
#searchform {
width: 80px;
position: absolute;
top: 128px;
left: 738px;
z-index: 1000;
}
Here you can set the position of your search box.
And set the text-indent for the headline. Think you have it as text just for search engines.
.header-text {
text-indent: -9999em;
}
#Jud This work. I make a full copy of your page html and change like described. Here you can test it.
CODEPEN

.jumbotron background is covering the entire page

I'm having trouble figuring out why my jumbotron container is covering the entire page. I am trying to have the jumbotron stop right before "Find your university".
Second, I am also having trouble with moving the search bar to the middle of the jumbotron. Can anyone help? I'm new to HTML, CSS and Bootstrap.
HTML:
<div class="center jumbotron">
<div class="container">
<h1>MOVE ABROAD WITH EASE</h1>
<h2>Find out about the cities, where to live and eat, hangout groups.</h2>
<div class="container">
<div class="row">
<div id="custom-search-input">
<div class="input-group col-md-6">
<input type="text" class=" search-query form-control" placeholder="Which city are you moving to?" />
<span class="input-group-btn">
<button class="btn btn-danger" type="button">
<span class=" glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
CSS:
.center {
text-align: center;
}
#custom-search-input {
margin: 0;
margin-top: 50px;
margin-bottom: 50px;
padding: 10;
}
Your jumbotron is likely filling your page because you have all your content inside of it. Just move everything from Find Your University and below out of it.
As for centering your input, Bootstrap provides the col-xx-offset-# concept to help with this.
Here's a Fiddle with your code updated to illustrate.
Some additional notes and pointers:
padding: 10; is invalid css (possibly just a typo). make sure to include px if that was your intention.
Creating your own .center class is unnecessary. Bootstrap comes with a .text-center class for this purpose.

div disappears in mobile view

So, I am new to responsive design and placed Form code on top of one image and it will not display in mobile view. It appears to happen around 990px wide that the form will go out of vision. I can't identify where the #media or what CSS class would hide the form after it goes to a certain width.
URL: subscribe.ign.com/social
<div class="site-slider">
<div class="slider">
<div class="flexslider">
<ul class="slides">
<li>
<div class="overlay"></div>
<img src="http://static.ziffdavis.com.s3.amazonaws.com/cimages/blackfriday/Black-Friday-Email-Landing-Pages/black-friday-chaos-store-1600x750.png" alt="">
<div class="slider-caption visible-md visible-lg">
<div id="bouncex" align="center" style="width:558px; margin: 0 auto; ">
<!--LYRIS-->
<div class="heading-section col-md-12 text-center">
<div class="contact-form" style="background-color:#000 !important; padding: 25px">
<h2 style="text-transform:capitalize; font-size:34px">BLACK FRIDAY IS COMING</h2>
<br/>
<p style="text-transform:capitalize; font-size:28px">UP TO 50% OFF</p>
<h2 style="text-transform:capitalize; font-size:24px">ON HOTTEST GAMES AND TECH DEALS DELIVERED TO YOUR INBOX</h2>
<form name="contactform" id="contactform">
<p><input name="txtEmail" id="txtEmail" type="text" placeholder="Your Email">
</p>
<input type="button" class="mainBtn" name="btnSubscribe" id="btnSubscribe" value="Subscribe">
<input type="hidden" name="txtList" id="txtList" size="70" value="ign-deals" />
<p style="color:#FFF;font-size:14px">Subscribing to a newsletter indicates your consent <br/>to our <a style="color:#d3222a; text-decoration:underline" href="http://www.ziffdavis.com/terms-of-use" title="Terms of Use" rel="nofollow">User Agreement</a> and <a style="color:#d3222a; text-decoration:underline" href="http://www.ziffdavis.com/privacy-policy" title="Privacy Policy" rel="nofollow">Privacy Policy</a><span id="article-punctuation" class="article-punctuation">
</span></p>
</form>
</div> <!-- /.contact-form -->
</div> <!-- END LYRIS -->
</div>
</div>
</li>
</ul>
</div> <!-- /.flexslider -->
</div> <!-- /.slider -->
</div> <!-- /.site-slider -->
just set :
<ul class="slides" style="list-style:none; padding-left: 0;">
<img style="width: 100%; " src="your url" alt="">
Try it now : http://codepen.io/anon/pen/qOJEaw
Your div with slider-captionclass also has visible-md visible-lg, you should remove this 2 classes. Basically, it makes that div visible only on screens with 992px width or bigger.
You can learn more about it on bootstrap documentation
The reason it is 'disappearing' is because of the parent element: <div class="slider-caption visible-md visible-lg">.
It is getting display: none !important; at 992px which is a bootstrap breakpoint. Specifically though it is the visible-* class that is doing it. Read about that in the Bootstrap docs.

bootstrap input-group not responsive

I'm having a problem with the input-group on my site not sizing down for xs screen sizes.
Here's the code:
<div class="gradient">
<div class="container">
<div class="row">
<div class="col-xs-1 col-s-1 col-m-2"></div><!-- /left column -->
<div class="col-xs-10 col-s-10 col-m-8">
<h1>IS IT ON NETFLIX?</h1>
<p>Search to see if your TV show or movie is available to stream on Netflix</p>
<div class="input-group searchbox">
<input type="text" id="searchInput" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button id="submit" class="btn btn-default" type="button">Go!
</button>
</span>
</div><!-- /input-group -->
</div><!-- /middle column -->
<div class="col-xs-1 col-s-1 col-m-2"></div><!-- /right column -->
</div><!-- /row -->
</div><!-- /container -->
</div><!-- /gradient -->
The site is isitonnetflix.net. Thanks so much!!
Wrapping the image tag with an aligned div:
<div class="" align="center"></div>
could help with it being able to sit in the middle of the div, but you could also:
<img src="" align="middle" alt="">
you could definitely change those values and it might be kind of gross to do that, but it might help.
Figured it out. Changed width on the searchbox class to 80%. Fixed!
You can also facilitate bootstraps media queries in a way that .searchbox is defined as:
.searchbox {
border-radius: 5px;
height: 50px;
margin: 0 auto;
padding-top: 20px;
/* width: 300px; */
}
without stating its width explicitly for Xtra Small sizes you'll see it fixes too. Another solution would be to set max-width instead of width:
.searchbox {
border-radius: 5px;
height: 50px;
margin: 0 auto;
padding-top: 20px;
max-width: 300px;
}