Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Problem Css Boostrap Firefox SVG

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #293336
    Fran Egea
    Participant

    I am developing a web in Bootstrap 4 and in the header I have a SVG format logo that has to be responsive (without fixed size) but it is not possible to visualize it unless you leave the property wide at a fixed value in .px some way to be responsive without leaving a fixed value in .px? Because in Chrome, Opera, Safari, Internet explorer leaving the Width property in auto. In all browsers it appears without problem but in Firefox it does not

    #293337
    Paulie_D
    Member

    A Codepen demo would be useful here.

    #293380
    Fran Egea
    Participant
    #293405
    uxfed
    Participant

    An SVG element would be better than an img tag. You’ll need to have your viewBox attribute as well as width and height. This will ensure it scales appropriately.

    #293415
    Fran Egea
    Participant

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.