Zex Zand
Zex Zand

Reputation: 9

Set width and height for image - PHP - Laravel

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 class="header-logo">
    <inertia-link :href="route('home')">
        <img class="main-logo" v-if="logo" :src="logo" />
        <img class="main-logo" v-else :src="route('home') + '/images/logo.png'" />
    </inertia-link>
</div>

Upvotes: 0

Views: 1406

Answers (2)

Zex Zand
Zex Zand

Reputation: 9

Thanks from @Amir-Khaledian

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

Upvotes: 1

Thakgrandka
Thakgrandka

Reputation: 526

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">

Upvotes: 1

Related Questions