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. Thumbnail-Title width the same width as project thumbnail

Thumbnail-Title width the same width as project thumbnail

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 756 Views
  • 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.
  • J
    J
    j.varela
    wrote on last edited by
    #1

    Hi there Lay theme!

    Let me first thank you for the amazing work put into Lay Theme. As I am building my portfolio site, it has been by far the best tool for it!

    I am not very comfortable with custom CSS and Html, but took the opportunity to learn a bit and do some customizations. I am happy with the overall design and functionality but I cannot seem to do one last thing.

    My projects thumbnails are organized in a thumbnail grid with 3 columns. All the thumbnails are squares. My goal is to show the project title, only with a hover on the thumbnail. The title should ideally appear in one line, centred in a box that would fill the width of the project thumbnail.

    To exemplify, I did a version where it is working, but not in a responsive way.

    Screenshot 2020-06-29 at 17.35.32.png

    Screenshot 2020-06-29 at 17.23.17.png

    I used this code:

    .title{
    padding-top: 5px;
    padding-bottom: 6px;
    padding-left: 239px;
    padding-right: 240px;
    max-width: 80px;
    }

    Any insight into how I can do it?

    Thank you so much!
    Best
    João

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dear @j-varela
      Can you post a link to your website?
      We will then have a look and inspect that!
      Many wishes!
      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • J
        J
        j.varela
        wrote on last edited by
        #3

        Hi @mariusjopen Thank you for the quick reply!

        Of course, my bad for not including it on the initial post.
        The link is http://www.joaoistyping.com/

        Thank you so much!

        Best
        João

        1 Reply Last reply
        0
        • CyberSlayersC
          CyberSlayersC
          CyberSlayers
          wrote on last edited by
          #4

          Hello @j-varela ,

          To achieve this, you need to give a width of 100% to the title wrap.
          Then get rid of padding left and right. The text is already centered and responsive like this :)

          <div class="lay-textformat-parent titlewrap-on-image on-image-bottom-left" style="
              width: 100%!important;
          "><span class="title " style="
              width: 100%; 
          
          ">CaisTodosContam</span></div>
          

          Hope this helped,
          Many wishes,

          Audrey

          ✦ Audrey@CyberSlayers.work ✦
          www.cyberslayers.work

          J 1 Reply Last reply
          0
          • CyberSlayersC CyberSlayers

            Hello @j-varela ,

            To achieve this, you need to give a width of 100% to the title wrap.
            Then get rid of padding left and right. The text is already centered and responsive like this :)

            <div class="lay-textformat-parent titlewrap-on-image on-image-bottom-left" style="
                width: 100%!important;
            "><span class="title " style="
                width: 100%; 
            
            ">CaisTodosContam</span></div>
            

            Hope this helped,
            Many wishes,

            Audrey

            J
            J
            j.varela
            wrote on last edited by
            #5

            Hi @audreybelaud !

            Thank you for your response and amazing help!
            In fact, I couldn't figure out how to use the Html code, but with a bit of playing around I ended up using this part:

            .lay-textformat-parent{
            width: 100%;
            }

            in the Custom CSS and it seemed to work just fine 😁😁

            Thank you so much!
            My best wishes

            João

            1 Reply Last reply
            0
            • mariusjopenM
              mariusjopenM
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Dear @j-varela
              Nice!
              Thank you for letting us know!
              Best and have a wonderful day!
              Marius

              www.mariusjopen.world

              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
              J
              j.varela
              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