Forums

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

Home Forums CSS Follow-up to "SVG `use` with External Source"

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #207137
    tinkering
    Participant

    Hello
    I’m stuck at this:
    I’d really love to use this nifty method (as described in

    SVG symbol a Good Choice for Icons for displaying some icons.

    Problem is, most of them are embedded in the css, like, the menu-icon is a background-image etc.
    Could somebody point me the direction to go (if it’s possible at all anyway)?

    thanks a lot!
    tinkerd

    #207161
    tinkering
    Participant

    thanks, Atelierbram

    do I understand this right, I’d use it like

    #site-nav-container a#mobile-menu-btn {
         background: url('http://davidbraun.ch/img/icons/icons.svg#menuicon') 0 0 no-repeat;
    }
    

    and, just as my first-steps indicate, there’s an issue arising with the browser-caching: this new file I made doesn’t seem to get cached, although the line

    ExpiresByType image/svg+xml A29030400
    is present in the htaccess …
    ?

    again, thanks a lot!

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