Height 100% on child when parent doesn't have a fixed width - html

Ok, I'm having some issues getting height:100; on my hover to work in my portfolio section, I tried a bunch of solutions from similar questions but nothing seems to be working. Also I got it to work with media queries but it's a bunch of extra code and I know there is another way to do it I just can't figure it out!
Check out my html:
<!-- Begin Portfolio -->
<section id="section2">
<div class="container portfolio">
<!-- Page Title -->
<div class="row page-title-2">
<div class="col-lg-12">
<h3>Portfolio</h3>
<hr>
<p>We also create some other stuff.</p>
</div>
</div>
<!-- Portfolio Filter -->
<div class="container text-center">
<ul class="nav nav-pills">
<li class="filter" data-filter="all">all</li>
<li class="filter" data-filter="print">print</li>
<li class="filter" data-filter="web">web</li>
<li class="filter" data-filter="branding">branding</li>
<li class="filter" data-filter="branding">illustration</li>
</ul>
</div>
<!-- Portfolio Items -->
<div class="container port-holder">
<ul id="myPortfolio" class="no-padding">
<li class="item branding col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-1.html" data-target="#myModal">
<img src="img/projects/thumbs/branding1.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>Beach Sand</h4>
<em>Branding</em>
</span>
</span>
</a>
</li>
<li class="item web col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-2.html" data-target="#myModal">
<img src="img/projects/thumbs/web1.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>B&W Scene</h4>
<em>Web Design</em>
</span>
</span>
</a>
</li>
<li class="item print col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-3.html" data-target="#myModal">
<img src="img/projects/thumbs/print1.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>Metal</h4>
<em>Print</em>
</span>
</span>
</a>
</li>
<li class="item branding col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-4.html" data-target="#myModal">
<img src="img/projects/thumbs/branding2.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>Bridge Cityscape</h4>
<em>Branding</em>
</span>
</span>
</a>
</li>
<li class="item print col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-5.html" data-target="#myModal">
<img src="img/projects/thumbs/print2.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>Camera</h4>
<em>Print</em>
</span>
</span>
</a>
</li>
<li class="item branding col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-6.html" data-target="#myModal">
<img src="img/projects/thumbs/branding3.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>B&W City</h4>
<em>Branding</em>
</span>
</span>
</a>
</li>
<li class="item web col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-7.html" data-target="#myModal">
<img src="img/projects/thumbs/web2.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>Objects</h4>
<em>Web Design</em>
</span>
</span>
</a>
</li>
<li class="item print col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-8.html" data-target="#myModal">
<img src="img/projects/thumbs/print3.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>Paradise</h4>
<em>Print</em>
</span>
</span>
</a>
</li>
<li class="item web col-xs-4 no-padding">
<a data-toggle="modal" href="projects/project-9.html" data-target="#myModal">
<img src="img/projects/thumbs/web3.jpg" alt="..." />
<span class="portfolio-hover">
<span>
<h4>Eary</h4>
<em>Web</em>
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</section>
<!-- End Portfolio -->
My CSS for the hover:
.portfolio ul li:hover span.portfolio-hover {
opacity: 1;
}
.portfolio img {
max-width: 100%;
width: 100%;
height: 100% !important;
}
span.portfolio-hover {
background: rgba(39,39,39,0.95);
color: #8e8e8e;
width: 100%;
height: 100%;
display: table;
left: 0;
position: absolute;
top: 0;
bottom: 0;
opacity: 0;
-webkit-transition: opacity 500ms;
-moz-transition: opacity 500ms;
-o-transition: opacity 500ms;
transition: opacity 500ms;
}
span.portfolio-hover span {
display: table-cell;
text-align: center;
vertical-align: middle;
}
Any help is greatly appreciated!
You can also see the live version here, just go to portfolio section and hover an image.

Change span.portfolio-hover from display: table, to display:block

Try using the Height in the Pixels as of the Original Image or Whatever ur Imageheight is
height:388px
Thanks

Related

Icons will not align with the text element

I'm creating an account page (header) for the first time, and I notice that some of the icons will not align perfectly with the text. I know how simple and easy this is for advanced developers, but I'm just starting off and really need some advice.
I have tried using padding and margin as a style element but didn't work.
<header>
<div class="container">
<div class="row">
<div class="col-xs-6 col-md-8">
<div class="row">
<div class="col-sm-3">
<img src="paylocity_logo.png" alt="logo" style="width:100%"S/></a>
</div>
<div class="col-sm-9 hidden-sm hidden-xs" id="project-details">
<a class="home-link" href="" title="Edit"> <i class="material-icons"> home </i> </a>
<div class="project">
User Profile
</div>
</div>
</div>
</div>
<div class="col-xs-6 col-md-4 text-right" id="account">
<i class="material-icons">account_circle</i> <span>Tom Markart </span>
<div id="account-options">
<ul>
<li>
<span> <i class="material-icons">account_circle</i></span>View Profile
</li>
<li>
<span class="fa fa-cog"></span>Settings
</li>
<li>
<span class="fa fa-bug"></span>Report a Bug
</li>
<li>
<span class="fa fa-power-off"></span>Log Out
</li>
</ul>
</div>
</div>
</div>
</header>
I want to make them straight.
In your case, you can add the following rule:
.material-icons {
vertical-align: middle;
}
https://codepen.io/anon/pen/EBBbpd
Using flex:
Wrap text in <span> and a wrapper class to <a>.
...
<li>
<a class='wrapper' href="javascript:void(0);">
<span class="fa fa-cog"></span>
<span>Settings</span>
</a>
</li>
...
.wrapper {
display: flex;
align-items: center
}

Menu going down together with scrolling the page

I have this code:
.navbar-default .navbar-nav>li>a {
width: auto;
/* width: 200px;*/
/* font-weight: bold;*/
}
.mega-dropdown {
position: static !important;
/* width: 100%;*/
}
.mega-dropdown-menu {
padding: 0px;
width: 100%;
box-shadow: none;
-webkit-box-shadow: none;
}
.mega-dropdown-menu > li > ul {
padding: 0;
margin: 0;
}
.mega-dropdown-menu > li > ul > li {
list-style: none;
}
.mega-dropdown-menu > li > ul > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: 300;
line-height: 1.428571429;
color: #243C78;
white-space: normal;
}
.mega-dropdown-menu .dropdown-header {
color: #243C78;
font-size: 18px;
font-weight: 500;
}
.mega-dropdown-menu form {
margin: 3px 20px;
}
.mega-dropdown-menu .form-group {
margin-bottom: 3px;
}
<section class="indexTop">
<div class="container">
<div class="row indexTopPadding">
<div class="col-xs-8 col-sm-12 col-md-12 col-lg-11 ">
<div class="topData">Poniedziałek, 11 października 2019</div>
</div>
<div class="col-xs-4 col-sm-12 col-md-12 col-lg-1">
<div class="topKontrast">
<img src="images/ikon2.png" class="img-responsive topIkonLeft topIkonLeft5">
<img src="images/ikon1.png" class="img-responsive topIkonLeft topIkonLeft5">
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-3 topMargin15 visible-xs">
<div class="topSocialMedia">
<img src="images/ikon7.png" class="img-responsive topIkonLeft topIkonLeft10 ikonSocialMediaR">
<img src="images/ikon3.png" class="img-responsive topIkonLeft topIkonLeft10 ikonSocialMediaR">
<img src="images/ikon4.png" class="img-responsive topIkonLeft topIkonLeft10 ikonSocialMediaR">
<img src="images/ikon5.png" class="img-responsive topIkonLeft topIkonLeft10 ikonSocialMediaR">
<img src="images/ikon6.png" class="img-responsive topIkonLeft topIkonLeft10 ikonSocialMediaR">
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-5 topMargin30R ">
<div class="logo">
<img src="images/logo.png" class="img-responsive ikonCenterR">
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 topMargin10 hidden-xs">
<form method="post" name="contactformXX" class="form validate clearfix validate-form">
<div class="form-group ">
<div class="form-group has-feedback ">
<input type="text" class="form-control indexInputSzukaj" id="inputValidation" placeholder="Znajdź" /> <span class="glyphicon glyphicon-search form-control-feedback glyphiconColor"></span> </div>
</div>
</form>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-3 topMargin15 hidden-xs">
<div class="topSocialMedia">
<img src="images/ikon7.png" class="img-responsive topIkonLeft topIkonLeft10">
<img src="images/ikon3.png" class="img-responsive topIkonLeft topIkonLeft10">
<img src="images/ikon4.png" class="img-responsive topIkonLeft topIkonLeft10">
<img src="images/ikon5.png" class="img-responsive topIkonLeft topIkonLeft10">
<img src="images/ikon6.png" class="img-responsive topIkonLeft topIkonLeft10">
</div>
</div>
</div>
</div>
</section>
<!-- END TOP-->
<!-- MENU-->
<div class="paddingMenuTop"></div>
<nav class="navbar navbar-default navbarDefaultMop ">
<div class="container">
<!-- navbar-fixed-top -->
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".js-navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand visible-xs" href="#">MegaMenu</a></div>
<div class="collapse navbar-collapse js-navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown mega-dropdown menuMop"> Item xxx1
<ul class="dropdown-menu mega-dropdown-menu row dropdownMenuMop">
<div class="container topMenuColor">
<li class="col-sm-3">
<ul class="hideBullet">
<li class="dropdown-header hideBullet">Sprawy </li>
<li>pozycja 1</li>
<li>pozycja 2</li>
<li>pozycja 3</li>
<li>pozycja 4</li>
<li>pozycja 5</li>
<li class="dividerMop"></li>
<li class="dropdown-header hideBullet">pozycje 5</li>
<li>Bezpłatana imnformaja</li>
<li>dream</li>
<li>Callendar</li>
<li>Archiwum Mewspow</li>
</ul>
</li>
<li class="col-sm-3">
<ul class="hideBullet">
<li class="dropdown-header hideBullet">My life </li>
<li>Health</li>
<li>Bicycles</li>
<li>Cars</li>
<li>Education</li>
<li>Cash</li>
<li class="dividerMop"></li>
<li class="dropdown-header hideBullet">Fundation</li>
<li>xdcsdcsd cdscdscds</li>
<li>Magazine</li>
<li>Items</li>
<li>Items2</li>
</ul>
</li>
<li class="col-sm-3">
<ul class="hideBullet">
<li class="dropdown-header hideBullet">My life </li>
<li>Health</li>
<li>Bicycles</li>
<li>Cars</li>
<li>Education</li>
<li>Cash</li>
<li class="dividerMop"></li>
<li class="dropdown-header hideBullet">Fundation</li>
<li>xdcsdcsd cdscdscds</li>
<li>Magazine</li>
<li>Items</li>
<li>Items2</li>
</ul>
</li>
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Accessories</li>
<li>Default Navbar</li>
<li>Lovely Fonts</li>
<li>Responsive Dropdown </li>
<li class="dividerMop"></li>
<li class="dropdown-header">Newsletter</li>
<form class="form" role="form">
<div class="form-group">
<label class="sr-only" for="email">Email address</label>
<input type="email" class="form-control" id="email" placeholder="Enter email"> </div>
<button type="submit" class="btn btn-primary btn-block">Sign in</button>
</form>
<li class="dropdown-header">zamknij mnie2
<button type="button" class="close">×</button>
</li>
</ul>
</li>
</div>
</ul>
</li>
</ul>
</div>
<!-- /.nav-collapse -->
</div>
</nav>
I have a problem with the menu (NAVBAR).
I would like it to descend with scrolling the page down (stuck to the top of the browser).
The effect that I would like to get is here: https://www.gdynia.pl
Dla mieszkańców, aktualności, dla turystów, o Gdyni,
Does anyone know how to improve my code to get this effect?
Prview: http://serwer1356363.home.pl/pub/menu_fixed/
You can add to .navbar some other class with style like this: position: fixed; top:0; and replace position:relative with position:fixed;.
- Add this class only after you scroll down some pixels.
- If you not scrolled some pixels use remove or don't add class.
- Use Javascript or JQuery to detect how many user already scrolled pixels and also to add or remove element class.
I think everything is clear here. I just opened your site and used chrome dev tools to see applied effects. Just play with code and styles. After apply changes in real code.
You can look more here: set div position to fixed after scrolling 100px?

Flexbox margin-top: auto not pushing item to bottom

I have want the UL to push to the bottom of the container for each item. I have margin-top:auto set for the item but it is not working. I have another demo that works but this is the one that I need to use. Any help?
.featured-products-carousel {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
margin: 0 auto;
max-width: 1150px;
width: 80%;
}
.featured-products-carousel .item {
background-color: white;
padding: 20px;
align-items: stretch;
display: flex;
flex-direction: column;
margin: 10px;
padding: 0;
flex: 1 1 auto;
flex-wrap: wrap;
}
.featured-products-carousel .item h2 {
text-align: center;
padding: 8px 5px;
}
.featured-products-carousel .item .featured-product-description {
margin-bottom: auto;
}
.featured-products-carousel .item .featured-products-links {
margin-top: auto;
}
.featured-products-carousel .item ul {
margin-top: auto;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="featured-products-carousel" role="listbox">
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. Description Text. Lots and lots of great content about a particular part.</p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. </p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. Description Text. Lots and lots of great content about a particular part.</p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. </p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
</div>
The parent element isn't display: flex; even though you've specified that because there is another rule overwriting it with display: block!important;.
display: block!important is coming from bootstrap.css on line 6636 and another on line 6554.
.featured-products-carousel {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
margin: 0 auto;
max-width: 1150px;
width: 80%;
}
.featured-products-carousel .item {
background-color: white;
padding: 20px;
align-items: stretch;
display: flex!important;
flex-direction: column;
margin: 10px;
padding: 0;
flex: 1 1 auto;
flex-wrap: wrap;
}
.featured-products-carousel .item h2 {
text-align: center;
padding: 8px 5px;
}
.featured-products-carousel .item .featured-product-description {
margin-bottom: auto;
}
.featured-products-carousel .item .featured-products-links {
margin-top: auto;
}
.featured-products-carousel .item ul {
margin-top: auto;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="featured-products-carousel" role="listbox">
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. Description Text. Lots and lots of great content about a particular part.</p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. </p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. Description Text. Lots and lots of great content about a particular part.</p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
<div class="item active visible-md visible-sm visible-lg product-item col-xs-12 col-md-3 col-sm-6" id="2">
<span class="h2-span">
<h2 class="h2-height"> [product-id] </h2>
</span>
<div class="product-image">
<a href="/products/[[product-id]]">
<img src="http://placehold.it/400x250" alt="[item-description]" class="img-responsive-center">
</a>
</div>
<p class="featured-product-description"> Description Text. Lots and lots of great content about a particular part. </p>
<ul class="list-unstyled">
<li>
<a href="/products/[product-id]">
More About [product-id] »
</a>
</li>
<li>
Datasheet
</li>
</ul>
</div>
</div>

bootstrap thumbnail and horizontal scroll bar in firefox and IE

I have an issue with bootstrap thumbnail and horizontal scrollbar in IE and Firefox but not chrome nor mobile browsers.
So basically, in firefox and IE the modals look strange and there is a horizontal scroll bar, however this issue does not appear in chrome or mobile phone browsers. as you see in the image, this is the issue
and this is how modals look like in firefox
and this is how it should look like without any issue as in chrome
and for the modal code here:
<div class="container" id="portfolio" >
<hr>
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<a href="Text 101 WebBuild V1/Text 101 WebBuild V1.html" target="_blank"> <img src="images/text101.png" alt="..." class="image">
<div class="imgDescription">
<h3 class="img-content"><strong>Text 101</strong></h3>
<span class="modal-button" >
<img src="images/unity1.png" style="height:30px; width:30px;" > </span>
</div>
</a>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<a href="landingPage.html" target="_blank"> <img src="images/myweb-app.png" alt="..." class="image">
<div class="imgDescription">
<h3 class="img-content" style="left:95px;"><strong>MyWebsite App</strong></h3>
<span class="modal-button" style="left:145px">
<img src="images/webdev.png" style="height:30px; width:auto;" > </span>
</div>
</a>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<a href="#"> <img src="images/card3.jpg" alt="..." class="image">
<div class="imgDescription">
<h3 class="img-content"></h3>
<span class="modal-button"></span>
</div>
</a>
</div>
</div>
</div> <!-- portfolio end here -->
and the css used here:
.thumbnail {
position: relative;
display: inline-block;
}
.thumbnail .imgDescription {
position: absolute;
top: 4px;
left: 4px;
width: 98%;
height: 96%;
display: none;
color: #FFF;
-webkit-transition: opacity .25s ease;
-moz-transition: opacity .25s ease;
}
.thumbnail:hover .imgDescription {
display: block;
background: rgba(0, 0, 0, .6);
}
.thumbnail .imgDescription .img-content {
position: absolute;
top: 25%;
left:35%;
color:white;
}
.thumbnail .imgDescription .modal-button {
position: absolute;
top: 55%;
left:43%;
}
I just couldn't figure where the issue is I mean it runs noraml in chrome and phone browsers. any help with be much appreciated.
Your tags are out of place. Notice how you open an <a> tag then a <div> and a <span> but you close the </a> before the </span> and </div>. HTML requires proper nesting so before you close the </a> you need to close every tag under it. Try using this code for the portfolio HTML:
<div class="container" id="portfolio">
<hr>
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<a href="Text 101 WebBuild V1/Text 101 WebBuild V1.html" target="_blank"> <img src="images/text101.png" class="image" width="100%">
<div class="imgDescription">
<h3 class="img-content"><strong>Text 101</strong></h3>
<span class="modal-button">
<img src="images/unity1.png" style="height:30px; width:30px;">
</span>
</div>
</a>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<a href="landingPage.html" target="_blank"> <img src="images/myweb-app.png" alt="..." class="image" width="100%">
<div class="imgDescription">
<h3 class="img-content" style="left:95px;"><strong>MyWebsite App</strong></h3>
<span class="modal-button" style="left:145px">
<img src="images/webdev.png" style="height:30px; width:auto;">
</span>
</div>
</a>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<a href="#"> <img src="images/card3.jpg" alt="..." class="image" width="100%">
<div class="imgDescription">
<h3 class="img-content"></h3>
<span class="modal-button"></span>
</div>
</a>
</div>
</div>
</div>
</div>
Update: I also added width="100%" to the images for IE.

How the image comes on the top of the above row in one div

I am working on the footer. On the right side down -image is attached- I have an image with a responsive "subscribe" button. There is one dive with one general row.This general row consists of two different rows.
The first row includes two grids: col-lg-4 / col-lg-8 (white background)
The second one includes three grids:col-lg-4 / col-lg-4 / col-lg-4 (black background)
I want to put the image in the second row in the very right grid which comes on the top of the very right grid in the first row.
the problem is although the image is put in the second row but it appears in the first row ! I want to correct it as the pattern
<div class="container-fluid p0 hidden-xs hidden-sm" style="border: solid yellow">
<div class="row">
<div class="col-lg-12 col-md-12 ">
<div class="row pb+ pt+ footer-border ">
<div class="col-lg-12 col-md-12">
<div class="container">
<!-- brand starts -->
<div class="col-lg-4 col-md-4 hidden-xs pl0">
<a href="/">
<i class=" icon-famousLogo icon-color famous-large "></i>
</a>
</div>
<!-- brand ends -->
<!-- Social Sharing Start -->
<div class="col-lg-8 col-md-8 hidden-xs clearfix">
<div class="col-lg-5 col-md-5 col-offset-7 pt-">
<ul class="list-inline float-r">
<li>
<span class="follow-us pr">FOLLOW US</span>
</li>
<li>
<a href="https://www.facebook.com/famousmagazine">
<i class=" icon-facebook icon-color facebook pr "></i>
</a>
</li>
<li>
<a href="https://twitter.com/famousweekly ">
<i class=" icon-twitter icon-color twitt pr"></i>
</a>
</li>
<li>
<a href="https://www.instagram.com/famousweekly/ ">
<i class=" icon-instagram icon-color instagram"></i>
</a>
</li>
<!-- They are supposed to be add later after getting the right URL-->
<!--<li >
<a href="https://www.youtube.com">
<i class=" icon-youtube icon-color youtube"></i>
</a>
</li>
<li >
<a href="https://www.instagram.com" >
<i class=" icon-Pintrest icon-color pint"></i>
</a>
</li>
<li >
<a href="https:https://twitter.com" >
<i class=" icon-tumblr icon-color twitt"></i>
</a>
</li> -->
<!-- Hidden Social Sharing Ends-->
</ul>
</div>
</div>
<!-- Social Sharing Ends -->
</div>
</div>
</div>
<!-- Second Row / Footer Lists Starts -->
<div class="row hidden-xs hidden-sm">
<div class="col-lg-12 col-md-12 ">
<div class="bottomMenu-parent" >
<div class="container">
<div class="col-lg-4 col-md-4 pl0 pt+ pb+" >
<table class="footer-table">
<tr>
<td>ABOUT US</td>
<td class="pl++">CoNTACT US</td>
<tr>
<td>TERMS AND CONDITIONS</td>
<td class="pl++">ADVERTISE</td>
</tr>
<tr>
<td>PRIVACY POLICY</td>
</tr>
</table>
</div>
<!-- Sign up Starts -->
<div class="col-lg-4 col-md-4">
</div>
<!--Sign Up Ends -->
<div class="col-lg-4 col-md-4">
<figure class="p pb0 footer-image">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTPZA23BVynjg91p0lXTn2yEiCft5VkK70063kgELaL_77gtH_TWg">
</figure>
<a href="#" class="subscribe-button" >
<button type="button" >
SUBSCRIBE <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
</button>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Second Row / Footer List Ends -->
</div>
</div>
</div>
#media(min-width: #screen-sm-min) {
.follow-us{
color:#mainpink;
.font-family(#font-Oswald-Bold) ;
font-size: 12px;
}
.footer-border{
border: 1px solid #mainpink;
}
.footer-table{
color:#white !important;
text-align: left;
tr{
td{
padding-bottom:10px;
a{
.font-family(#font-SourceSansPro-Regular) !important;
color:#white !important;
text-transform: uppercase;
font-size:14px;
}
}
}
}
.footer-image{
position: absolute;
bottom: 0px;
display: block;
width: 100%;
text-align: center;
}
}
I have changed the codes as below then it works :
.footer-image
{
margin-top: -100px;
bottom: 0px;
display: block;
width: 100%;
text-align: center;
padding-bottom:0px;
}