Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #172873

    Hi, here is my website : http://tinyurl.com/qhkcguv, I want to properly align my grid so I add a custom css

    .grid-content {
    min-height:75px;
    }

    Now I am struggling to vertical-align the portfolio title, I tried everything I could think of but none of my attempts worked ;(

    I would be grateful if you could give me a hint :)

    Many thanks in advance

    Olivia

    #172999

    Hi oliviad!

    You can use this to move the title downwards:

    .grid-entry-title {
    position: relative;
    top: 10px;
    }

    Regards,
    Ismael

    #173438

    Tried it but it does not vertically align title, is there a way to do so? The reason why is that some titles are 1 lines and some are 2 or 3 lines. Want them to be positioned in the middle vertically speaking. Is there a CSS way to do so?

    Thanks for your help

    #173879

    Hello!

    Please add following code as well

    .grid-entry-title { text-align: left!important; }

    Cheers!
    Yigit

    #173917

    Hello,

    Thanks for your answer but I am trying to “center center” the title meaning text-align: center; vertical-align: middle; but it does not work for the vertical align. Any idea why?

    Thanks

    #173963

    Hello Olivia!

    This will do it:

    .grid-content .entry-content-header{
    	min-height: 35px;
    	display: table;
    	text-align: center;
    	width: 100%;
    }
    .grid-entry-title{
    	display: table-cell;
    	vertical-align: middle;
    }

    ‘vertical-align’ works on table/table-cell elements.

    Cheers!
    Josue

    #178965

    Thanks so much it works like a charm !!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Vertical align portfolio title in a grid’ is closed to new replies.