Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Full browser window responsive image or svg

Full browser window responsive image or svg

Scheduled Pinned Locked Moved General Discussion
12 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • arminunruhA
    arminunruhA
    arminunruh
    Global Moderator
    wrote on last edited by
    #2

    does it have to be a row background image?

    In the gridder, right click on the row and choose "set html class and id". For "html class" enter:

    myrow

    Enter the custom css in "lay options" -> "custom css & html".

    .myrow .background-image.background-image-style-normal img{
        object-fit: fill!important;
    }
    
    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #3

      and it has to be a browser height row

      1 Reply Last reply
      0
      • A
        A
        aarondawkins
        wrote on last edited by
        #4

        Thanks! That works with an image.

        Can it work with an SVG? Also, it doesn't need to be a row background image ... is there a better way?

        1 Reply Last reply
        0
        • A
          A
          aarondawkins
          wrote on last edited by
          #5

          Also, is it possible to add a padding? Thank you for your help!

          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by
            #6

            sure just try to add the svg as the background does that work?

            with space around maybe this?

            .myrow .background-image.background-image-style-normal img{
                object-fit: fill !important;
                top: 20px!important;
                right: 20px!important;
                left: 20px!important;
                bottom: 20px!important;
                width: calc(100% - 40px)!important;
                height: calc(100% - 40px)!important;
            }
            

            change values if u like

            the 40px one always has to be left + right (horizontal)

            1 Reply Last reply
            0
            • A
              A
              aarondawkins
              wrote on last edited by
              #7

              Thank you! This all works with an image.

              Doesn't work with a svg tho ... any ideas?

              1 Reply Last reply
              0
              • A
                A
                aarondawkins
                wrote on last edited by
                #8

                @arminunruh Sorry, is there a way to get to work with a SVG?

                1 Reply Last reply
                0
                • arminunruhA
                  arminunruhA
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #9

                  link? should work with svg too

                  1 Reply Last reply
                  0
                  • A
                    A
                    aarondawkins
                    wrote on last edited by
                    #10

                    Sure, how we go: https://aarondawkins.com/svg/

                    1 Reply Last reply
                    0
                    • arminunruhA
                      arminunruhA
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #11

                      hey i dont know why it doesnt work with a svg sorry, maybe its better if you use a jpg

                      1 Reply Last reply
                      0
                      • A
                        A
                        aarondawkins
                        wrote on last edited by
                        #12

                        It's ok! Jpeg is fine, SVG would be great tho. Thank you so much for your help! I appreciate the support.

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        Online Users
                        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                        laytheme.com
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Search