Help me centering the objects/elements.

by 3 replies
4
Ok so I'm trying to make a responsive theme. But I have a problem with centering the objects within <div id="post-detail">. But centering the things within <div id="sharethis" > and <div id="long-desc" > when the screen is less than 611px wide wasn't any problem when I added this code to my style.css:

You can check out the site here: AlphaCore Survival Kit | Alpha Survival Gear



Please help me centering the objects within <div id="post-detail">.

Thank you,

Jimmy
#website design #centering #objects or elements
  • You can just center the featured part (image, title, description)

    Code:
    @media screen and (max-width: 615px)
    .feature-content {
    float: none;
    margin: 0 auto;
    padding-right: 10px;
    max-width: 302px;
    width: 100%;
    line-height: 20px;
    }
    
    @media screen and (max-width: 611px)
    .slideshow-image-post {
    float: none;
    position: relative;
    margin: 0 auto;
    top: 0px;
    left: 0px;
    height: 250px;
    width: 300px;
    text-align: center;
    }
    • [ 1 ] Thanks
    • [1] reply
    • Mother of God, you solved it! Thank you so much!

      You know, I've been trying to solve this for like a week now
  • Glad I could help!

Next Topics on Trending Feed

  • 4

    Ok so I'm trying to make a responsive theme. But I have a problem with centering the objects within <div id="post-detail">. But centering the things within <div id="sharethis" > and <div id="long-desc" > when the screen is less than 611px wide wasn't any problem when I added this code to my style.css: @media screen and (max-width: 611px) {