Hello, I’m trying to style an SVG file in my header to give is specific sizing.
<a class="logo" href="<?php echo $site->url() ?>">
<?= (new Asset("assets/images/logo.svg" ) )->content() ?>
</a>
Can someone point me in the right direction?
Hello, I’m trying to style an SVG file in my header to give is specific sizing.
<a class="logo" href="<?php echo $site->url() ?>">
<?= (new Asset("assets/images/logo.svg" ) )->content() ?>
</a>
Can someone point me in the right direction?
Hi, I think that a few css lines should help you to style the SVG.
.logo svg{
width:48px;
height:48px;
fill: white;
...
}
you could use the css('@auto');
function to load the css template specific . styling svg with css is easy to do.o.