0
How do its
How do I make an image fit in the navbar, without modifying the position of another element
1 Antwort
0
Set width or height of the image manually by the "width" or "height" attribute of the <img> tag or the same properties of the "style" attribute of the <img> tag.
Example: <img src = "https://example.com/navbar_img_1.png" height = "100px" />
Warning: if you set both width and height manually, use the original proportions, otherwise it will look prolate. But it is still recommended to use both attributes, otherwise the page will fluctuate during loading.