• Resolved frankentoast

    (@frankentoast)


    Hello,

    I am using Webcomic plugin with WordPress 3.0 and learning a lot as I go. One thing that bugs me is that the next and previous buttons move up and down the page as I click through my comics, depending on how tall my comic image is. Is there a way to specify an exact height of that post box so that it does not vary from comic to comic?

    Please see what I am talking about on frankentoast.com, just click previous a few times and you’ll keep having to move your mouse to the previous link’s new location.

    Thanks in advance!

Viewing 10 replies - 1 through 10 (of 10 total)
  • I’d suggest you start by setting a min-height that is equal to the height of your largest image. So something like:

    .home .comic {min-height:350px}

    in style.css should do it.

    Thread Starter frankentoast

    (@frankentoast)

    I tried that, and used a min-height of 450 so I could really tell if it was working. But it didn’t do anything. I should mention I am using inkblot theme and editing the style.css in the inkblot-child folder. Any other ideas?

    Thanks.

    Did you remember to press CTRL and F5 simultaneously when viewing the updated page? Or try emptying your browser cache? This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    I can’t see the CSS I suggested on the site.

    Thread Starter frankentoast

    (@frankentoast)

    I tried the code, and it didn’t work. I did ctrl+F5 to clear cache while refreshing and it did not work. The code is currently commented out in the css file. I’ll re-enable it and try again, since I am on a different computer.

    Thread Starter frankentoast

    (@frankentoast)

    The code is back in, and enabled. Please let me know if it works on your end. It would be surprising, since it does not work over here in Chrome or Firefox, after clearing both browser caches. Thanks.

    You’re right. It needs tweaking. Try:

    .home .comic objct {min-height:450px}

    Thread Starter frankentoast

    (@frankentoast)

    I was able to get it with:

    .home .comic .object {min-height:450px}

    This only affects the front page, so I also added a line under that with

    .single .comic .object {min-height:450px}

    This got it to 450px height on all the single comic pages! Thank you very much for the help, now I will just figure out what height I actually want it to be! 😀

    Thread Starter frankentoast

    (@frankentoast)

    I have one more question, now that it’s a specific height. How would I align the comics down to the middle of that box? The first thing I tried was putting vertical-align:middle; into the final snippets of code above. I also tried:

    .home .comic { vertical-align: middle; }
    and
    .home .object { vertical-align: middle; }
    and even
    .home { vertical-align: middle; }

    I’m pretty sure the vertical-align is what I’m supposed to use, I just don’t know what class it should be tied to. Unless I’m wrong on both counts. Let me know.

    Are you using the Add Media option to insert the comic? If so, simply selecting “Center” for 2Alignment” should centre the image for you.

    Thread Starter frankentoast

    (@frankentoast)

    I am not. The Webcomic plugin has a separate box that it uses for inserting “comics” into the post. This is why I’m thinking I’ll have to add it to the CSS itself.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Setting static height for webcomic single posts’ is closed to new replies.