[resolved] css help pls. (5 posts)

  1. herbshirt
    Posted 7 years ago #


    Said page here: http://www.bradhalcrow.com/portfolio/

    I'm trying to get the image and text to align horizontally in the middle of each box.


  2. herbshirt
    Posted 7 years ago #

    Sorry guys, wrong link, it's here.

    Now you'll know what I'm talking about.

  3. Joni
    Posted 7 years ago #

    First of all, NEVER use IDs more than once on a page. Change #portblocks to .portblocks. Classes can be used any number of times on a pagesl IDs, never. That's *basic* CSS. And if you are a web designer or aspiring to be one, I would expect you to know that. :)

    I'd add this to .portblocks: vertical-align: middle

    That ought to do it.

  4. herbshirt
    Posted 7 years ago #

    Minus the dig, I appreciate your help.

  5. Joni
    Posted 7 years ago #

    Rather to be scolded here than to have a potential client point it out, no? Or someone waaay more important to you than me. ;)

    It's just a pet peeve of mine. There are far too many folks out there on the web calling themselves "web designers" who couldn't code their way out of a division. I'm not suggesting you are one such, but I do believe with all of my heart that the basics should be learned before hanging out one's shingle, so to speak.

    Someone hold my drink while I climb down off my soapbox. </rant>

    Oh, and I am happy to learn that you made the change and it looks like your image boxes are vertically centered. Looks great. :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.