treehouse : what would you like to learn today?
Web Design Web Development iOS Development

CSS Rookie :(

  • Ok so I am trying to remove the underline from the text and add a vector image alongside. This is my second day attempting CSS so would really appreciate any help, thanks :) (ps the CSS font vectors are in a file called icomoon.svg)

    Who ever can help me is a champion, Kind Regards,

    HB

    
    HTML:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    
    
    Henry C Brown
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Home
    profile
    photography
    contact
    university
    
    
    
    
    
    
    
    
    
    CSS:
    
    ul , li {
      margin: 0;
      padding: 0;
    }
    
    .ringMenu {
      position: absolute;
      left: 15px;
      top: 15px;
      width: 100px;
      height: 30px;
      margin-bottom: 10px;
    }
    
    .ringMenu:hover {
      padding: 75px 75px;
      margin: -75px -75px;
    }
    .ringMenu ul {
      list-style: none;
      position: relative;
      width: 100px;
      color: white;
    }
    .ringMenu ul a {
      color: white;
    }
    .ringMenu ul li {
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
    }
    .ringMenu ul li a {
      display: block;
      width: 100px;
      height: 100px;
      background: rgba(50,50,50,0.7);
      text-align: center;
      line-height: 100px;
      -webkit-border-radius: 50px;
      -moz-border-radius: 50px;
      border-radius: 50px;
    }
    .ringMenu ul li a:hover {
      background: rgba(230,150,20,0.7);
    }
    
    .ringMenu ul li:not(.main) {
      -webkit-transform: rotate(-180deg) scale(0);
      -moz-transform: rotate(-180deg) scale(0);
      -o-transform: rotate(-180deg) scale(0);
      transform: rotate(-180deg) scale(0);
      opacity: 0;
    }
    .ringMenu:hover ul li {
      -webkit-transform: rotate(0) scale(1);
      -moz-transform: rotate(0) scale(1);
      -o-transform: rotate(0) scale(1);
      transform: rotate(0) scale(1);
      opacity: 1;
    }
    .ringMenu ul li.top {
      -webkit-transform-origin: 50% 52px;
      -moz-transform-origin: 50% 52px;
      -o-transform-origin: 50% 52px;
      transform-origin: 50% 52px;
      position: absolute;
      top: 102px;
      left: 0;
    }
    .ringMenu ul li.bottom {
      -webkit-transform-origin: 50% 52px;
      -moz-transform-origin: 50% 52px;
      -o-transform-origin: 50% 52px;
      transform-origin: 50% 52px;
      position: absolute;
      bottom: -204px;
      left: 0;
    }
    .ringMenu ul li.right {
      -webkit-transform-origin: 52px 50%;
      -moz-transform-origin: 52px 50%;
      -o-transform-origin: 52px 50%;
      transform-origin: 52px 50%;
      position: absolute;
      top: 0px;
      right: -102px;
    }
    .ringMenu ul li.left {
      -webkit-transform-origin: 52px 50%;
      -moz-transform-origin: 52px 50%;
      -o-transform-origin: 52px 50%;
      transform-origin: 52px 50%;
      position: absolute;
      top: 0;
      left: 204px;
    }
    
    CSS font vectors:
    
    @font-face {
      font-family: 'icomoon';
      src:url('fonts/icomoon.eot');
      src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
        url('fonts/icomoon.svg#icomoon') format('svg'),
        url('fonts/icomoon.woff') format('woff'),
        url('fonts/icomoon.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }
    
    /* Use the following CSS code if you want to use data attributes for inserting your icons */
    [data-icon]:before {
      font-family: 'icomoon';
      content: attr(data-icon);
      speak: none;
      font-weight: normal;
      -webkit-font-smoothing: antialiased;
    }
    
    /* Use the following CSS code if you want to have a class per icon */
    [class^="icon-"]:before, [class*=" icon-"]:before {
      font-family: 'icomoon';
      font-style: normal;
      speak: none;
      font-weight: normal;
      -webkit-font-smoothing: antialiased;
    }
    .icon-camera:before {
      content: "\21";
    }
    .icon-user:before {
      content: "\40";
    }
    .icon-comments:before {
      content: "\24";
    }
    .icon-book:before {
      content: "\25";
    }
    .icon-file-pdf:before {
      content: "\23";
    }
    .icon-phone:before {
      content: "\26";
    }
    .icon-compass:before {
      content: "\5e";
    }
    .icon-envelope:before {
      content: "\2a";
    }
    
  • Please put your code etc in Codepen We can work on it there.

    Be aware that you will have to provide links to images &/or fonts.

    Perhaps a reduced case highlighting your specific issue?

  • BTW, It's difficult to tell exactly what you are trying to achieve.

    An image of what you are after would help too!