WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Percentage height not working. (7 posts)

  1. MangledLollipop
    Member
    Posted 4 years ago #

    On my site http://www.justblahsome.com, I'm trying to make the View Cart/Check Out link a % height. I've tried doing it on 4 different divs and it doesn't seem to be working. I've also tried adding position:absolute and position:relative which failed to solve my issue as well.

    Any suggestions are welcome!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Right now you can't target that link and apply specific CSS as it doesn't have a unique class or id.

  3. MangledLollipop
    Member
    Posted 4 years ago #

    Ok. I made a class for it and updated my CSS. It's still not working. =[

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    There's still no unique class in that link. Only the same "menu" class that's on all of the links.

  5. MangledLollipop
    Member
    Posted 4 years ago #

    I think I worded it wrong. I'm trying to change the height of the View Cart/Checkout page, not the link. The link is fine the way it is. If you do not add an item to the cart and click on the View Cart/Checkout link, the page is all smooshed and says "Oops, there is nothing in your cart. Please visit our shop" and the navigation sidebar covers and goes past the left hand side of the footer.

    If I set an actual height, the content on the page, after an item is added, goes below the footer and doesn't look all that hot. Which is why I want to use a percentage. Unless there is another method.

    Sorry if I confused you, I'm very new to this.

  6. Andrei Olsen
    Member
    Posted 4 years ago #

    Remove height:90%; and margin-left:20px; from .checkout and height:auto; plus position:absolute; from #menu

  7. MangledLollipop
    Member
    Posted 4 years ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags