The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Need Help Adding Ribbon to Menu

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #177248

    Hey guys (and ladies),

    This is my first post here, with many more to come I’m sure. I’m trying to add a ribbon to a WordPress site’s navigation. I have it nearly complete, but I can’t seem to get the right CSS triangle to show up using #menu-nav:after. Like I said, I did the left side with absolutely no problem. Why am I having a problem with the right? Is it something to do with the margins?

    Thanks for you feedback. It is MORE than appreciated.

    The website is and below is the CSS I’m applying. You will need to use Firebug or Chrome to apply it yourself (obviously):
 li a {
         border: medium none ! important;
         margin-bottom: 1em;
         margin-top: -1em;
    #menu-nav:before, #menu-nav:after {
         content: "";
         display: block;
         position: relative;
         top: 58px;
         z-index: -10;
    #menu-nav:before {
         border-color: rgba(0, 0, 0, 0) #008000 rgba(0, 0, 0, 0) transparent;
         border-style: solid;
         border-width: 0px 22px 25px 0px;
         height: 0px;
         left: -10px;
         width: 0px;
    } {
         background-color: #029202 ! important;
         border: medium none ! important;
         padding-left: 1em ! important;
         padding-right: 1em ! important;
         position: relative;
         right: 24px;
         width: 103%;
    #page {
         box-shadow: 0px 2px 18px #191919 ! important;
    #footer {
         height: 0px ! important;
    body {
         background-color: #ffffff ! important;
         background-image: url("") ! important;
         background-position: left top ! important;
         background-repeat: repeat ! important;

    A tip on how to apply CSS to a forum post would be great too! :)


    Please use CodePen for your code.


    Thanks Chris, I will be sure to do that from now on. And I will update this post when I get home.

    If anyone has any tips on this before I get back, I’d really appreciate it. Thanks!


    Okay, I’ve created a CodePen for this entry. If anyone knows how to create the right side CSS triangle that goes on the menu, I would be MORE than grateful!


    Here is an updated CodePen. I’ve made sure that my #menu-nav:before, #menu-nav:after are positioned absolute.

    It may just be a matter of positioning that right triangle at this point. But I don’t see it anywhere on the page.


    Well, I got it sorted out thanks to Stack Overflow. In case anyone else is having a similar issue, the answer to my problem is here:

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.