hussain hussain - 1 year ago 94
CSS Question

How can i make image size big using css?

I want to make image size big but it is not happening with below code, How can i achieve that task using css ? Do i need to overwrite bootstrap ?


<a class="navbar-brand"><img src="assets/images/logo.png" id="logo"></a>


#logo {
height: 40px;

.navbar-brand>img {
max-height: 100%;
height: 100%;
width: auto;
margin: 0 auto;
-o-object-fit: contain;
object-fit: contain;

Answer Source

img.expand { width: 10em; }
<img src="" alt="fruit" class="expand" />


img.expand { width: 50em; }
<img src="" alt="fruit" class="expand" />

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download