Announcement

Collapse
No announcement yet.

Decorating the postbit title

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Decorating the postbit title

    I'm trying to add a box shadow to the post title on the postbit. The class .b-post__title seems to be what I need, but it's not doing much other than letting me change the font size, which I needed to do anyway. Tried this so far without much result:

    Code:
    .b-post__title {
      display: block;
      box-shadow: 10px 10px white;
    }
    I also tried the same in the .b-media__body class, but all that ended up doing was putting a white block to the right of the title.

    I thought that would've been fairly easy. Guess I was wrong there.

    #2
    Try this:

    Code:
    .b-post__title {
        box-shadow: 4px 5px 5px 0px rgba(0,0,0,0.5);
        margin-bottom: 15px;
        padding: 5px 10px;
        background: #eee;
        width: -webkit-calc(100% - 35px);
        width: calc(100% - 35px);
    }
    You can use this box shadow generator to adjust the shadow style

    This website is for sale! cssmatic.com is your first and best source for information about cssmatic. Here you will also find topics relating to issues of general interest. We hope you find what you are looking for!
    Buy me a coffeePayPal QR Code
    My Amazon Affiliate Link
    Fast vBulletin VPS Host:
    This site is hosted by IONOS

    Comment


      #3
      That mostly gets it. 100% doesn't mean 100% in this case though. I think I can live with that though.

      Comment


        #4
        Yeah I just guessed what you were trying to do without knowing how you would want it to look like.
        Buy me a coffeePayPal QR Code
        My Amazon Affiliate Link
        Fast vBulletin VPS Host:
        This site is hosted by IONOS

        Comment


          #5
          Still trying to figure out why I can't get that thing to go all the way across the post. Might have to swap it for a div.

          Comment


            #6
            Can you post a screenshot of what you're trying to do? Changing the tag into div would mean editing the template which is not recommended. Should be doable with CSS without changing tag name.
            ​​​​
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment


              #7
              Sure can.

              Comment


                #8
                Are you using my suggested CSS? I set the width there using calc to accommodate the post # but since you moved that up, you can simply use width:100%.
                Buy me a coffeePayPal QR Code
                My Amazon Affiliate Link
                Fast vBulletin VPS Host:
                This site is hosted by IONOS

                Comment


                  #9
                  The parent tag has width of 50% that's why the title doesn't span the entire post width.

                  Try this:

                  Code:
                  .b-post__content .b-media__body {
                      width: 100%;
                  }
                  .b-post__title {
                      font-size: 20px;
                      box-shadow: 4px 5px 5px 0px rgba(0,0,0,0.5);
                      margin-bottom: 15px;
                      padding: 5px 10px;
                      background: #222;
                      width: 100%;
                  }
                  Buy me a coffeePayPal QR Code
                  My Amazon Affiliate Link
                  Fast vBulletin VPS Host:
                  This site is hosted by IONOS

                  Comment


                    #10
                    The CSS I'm using is mostly yours, except for the font size and the background color.

                    Code:
                    .b-post__title {
                        font-size: 20px;
                        box-shadow: 4px 5px 5px 0px rgba(0,0,0,0.5);
                        margin-bottom: 15px;
                        padding: 5px 10px;
                        background: #222;
                        width: -webkit-calc(100% - 35px);
                        width: calc(100% - 35px);
                    }
                    I also tried width: 100% with no calc, same effect. I'll keep fiddling with it, but if you've got ideas, let me know.

                    Thanks a bunch Glenn.

                    Comment


                      #11
                      Did you see my previous post? The parent tag is only 50% wide. You have to also set it to 100%.
                      Buy me a coffeePayPal QR Code
                      My Amazon Affiliate Link
                      Fast vBulletin VPS Host:
                      This site is hosted by IONOS

                      Comment


                        #12
                        Ugh, my eyes went straight over that parent tag. Sorry about that.

                        Comment

                        Latest Posts

                        Collapse

                        Working...
                        X
                        Searching...Please wait.
                        An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                        Please push the back button and reload the previous window.'
                        An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                        Please push the back button and reload the previous window.'
                        An internal error has occurred and the module cannot be displayed.
                        There are no results that meet this criteria.
                        Search Result for "|||"