WordPress.org

Ready to get started?Download WordPress

Forums

Trouble getting AMM images to align with CSS (3 posts)

  1. OrchidRed
    Member
    Posted 7 years ago #

    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!!

  2. Ryan Fitzer
    Member
    Posted 7 years ago #

    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.

  3. OrchidRed
    Member
    Posted 7 years ago #

    Oh! Thank you ryan, that fixed it. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags