Home > Net >  Set width and height for image - PHP - Laravel
Set width and height for image - PHP - Laravel

Time:02-21

it can be simple and stupid question but I'm new here! how I can set width and height for image? I'm using Laravel.

<!-- header logo start -->
<div >
    <inertia-link :href="route('home')">
        <img  v-if="logo" :src="logo" />
        <img  v-else :src="route('home')   '/images/logo.png'" />
    </inertia-link>
</div>

CodePudding user response:

As you can review on the w3schools.com website it is possible to set this in the tag:

<img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600">

CodePudding user response:

Thanks from @Amir-Khaledian

<!-- header logo start -->
<div >
<inertia-link :href="route('home')">
    <img  v-if="logo" :src="logo" style="width:100px;height:100px" />
    <img  v-else :src="route('home')   '/images/logo.png'" style="width:100px;height:100px" />
</inertia-link>
  • Related