WordPress.org

Support

Support » Themes and Templates » Trouble getting AMM images to align with CSS

Trouble getting AMM images to align with CSS

  • OrchidRed

    @orchidred

    Could you please help me with a CSS question? I’m setting up my library page here using AMM but I can’t get the thumbnail to align inside the white border.

    Here is the output code I’m using for AMM:


    <?php
    }
    function amm_library_style($amm){
    /* @var $amm amm_Output */
    ?>

    <?php for ($x = 0; $x < $amm->totalItems(); $x++ ) :?>
    <div class="boxes2"><div class="thumbnail"><?php echo $amm->imageLink(40);?></div>

    <u><?php echo $amm->title();?></u>
    by <?php echo $amm->autoAuthor();?>
    <?php echo $amm->fancyRatings();?>

    <?php echo $amm->userComments();?>
    <div class="space"></div></div>

    <?php
    $amm->nextItem();
    endfor;
    ?>

    Here is my CSS:


    .thumbnail{width: 40px; height: 40px; float: right; border: 3px double #FFFFFF;"}

    Thank you for your help!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You have two declarations for .thumbnail in your style sheet. This work with FF on Mac.

    .thumbnail img {width: 40px; height: 40px; float: right; border: 3px double #FFFFFF;”}

    I just added img and erased the first .thumbnail declaration you had.

    OrchidRed

    @orchidred

    Oh! Thank you ryan, that fixed it. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trouble getting AMM images to align with CSS’ is closed to new replies.