SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    641
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Positiong images at bottom of div

    Hello,

    How can I place the pizza and cupcake at the bottom of the orange div, so the white touches the div below.

    Here is the link to the website...

    http://modocom.ca/eat/category/pizza/

    Thanks,

    Mike

  2. #2
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,835
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)
    Try adding a margin:

    HTML Code:
    <a href='http://modocom.ca/eat/wp-content/themes/eatlocal/img/pizza-button-active.png' style='margin: 0 0 -42px 0' alt='#' />
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Patche on earning Member of the Month for July 2014

  3. #3
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    641
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This doesnt work that well especially when theres more text on the left hand side. But thanks, hopefully can try to solve it.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,367
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    You could just have put them as a background image on the orange div and placed them at the bottom position.

    Or you could absolutely place them at the bottom but you will need to ensure content stays clear.

    Code:
    .row .buts{
    margin:0;
    position:absolute;
    left:75%;
    bottom:-10px;
    width:210px;
    }

  5. #5
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,519
    Mentioned
    61 Post(s)
    Tagged
    2 Thread(s)
    Concept, not polished solution, but it should get you in the ballpark.
    ADD the BLUE, DELETE the RED.

    1140.css, line 15
    Code:
    .row {
        margin:0 auto;
        max-width:1140px;
        min-width:755px;
        overflow:hidden;
        position:relative;
        width:100%;
    }
    styles.css, line 177
    Code:
    .buts {
        bottom:-8px;
        margin-top:80px;
        position:absolute;
        right:0;
    }

    EDIT:
    ninja'd by Paul (more efficiently, too )


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •