I am designing a responsive web page. I have a div whose width should decrease when the screen size decreases.
This div also contains a list of two image links. They should remain inline even when the screen width decrease.
/* The CSS */
div.mymenu{
margin-right:7%;
margin-top:-53px;
background:#000;
width: 28.5%;
opacity:0.8;
}
div.mymenu > .nav-pills{
margin-bottom:7px;
}
div.mymenu > .nav-pills a{
color:#fff;
margin-left: 30%;
}
div.mymenu > .nav-pills a:hover{
background:none;
}
<!-- The HTML -->
<div class="mymenu pull-right">
<ul class="nav nav-pills">
<li><a href="">Why Us</a></li>
<li><a href=""><img src="img/news.png" /></a></li>
<li><a href=""><img src="img/help.png" /></a></li>
</ul>
</div>
I am using twitter bootstrap. I tried making changes to bootstrap-responsive.css - but no change. I made changes such as :-
@media (min-width: 768px) and (max-width: 979px) {
.mymenu{
width: 20%;
}
}