Announcement

Collapse
No announcement yet.

CSS rollover

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • CSS rollover

    I am new to CSS and am having a difficult time formatting the rollover effect on a navigation bar. It is a simple rollover effect, just changing the background color. However i dont know how to control the size of the effect. Currently it is off center on the word, meaning it is extending below the word farther than it is extending above word. How do i control the size and positioning of the effect. would really appreciate some learning. thanks.

    this is my current code:
    .navigation {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    background-color: #267400;
    display: inline;
    text-align: left;
    vertical-align: middle;
    padding-right: 15px;
    padding-left: 15px;
    }
    .navigation:hover {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    background-color: #C69A03;
    display: inline;
    text-align: left;
    vertical-align: middle;
    padding-right: 15px;
    padding-left: 15px;
    }
    Its not "Mitch-ed" stupid....its Me-Show.

  • #2
    You just need Height and Width values to control the size of your rollover effect.
    Ned Yeung, A.C.E.
    mediamainline.com
    cyclopsphoto.ca

    Comment

    Search

    Collapse

    Sponsor

    Collapse

    Incredible Stock

    Latest Topics

    Collapse

    • Kdigennaro
      Reply to Feedback for a poster design
      Kdigennaro
      I like that you are answering the 'why' questions. Why is the text background red, why are you using the crumbled paper texture etc.

      This shows that you are thinking threw what you are doing...
      Today, 08:38 PM
    • Kdigennaro
      What - If any - Certifications are taken seriously these days?
      Kdigennaro
      Hey guys,

      I have been designing for about 10 years now as a freelancer and am entertaining the idea of trying to find a job at a creative firm. Right now I'm building my resume and portfolio...
      Today, 07:30 PM
    • Kdigennaro
      Reply to Business card logo feedback
      Kdigennaro
      Hey @someguy,

      Thanks for sharing your designs! I would encourage and challenge you to try to narrow your design focus. Right now none of the designs are 'bad' but none are 'good'. Design,...
      Today, 07:10 PM
    • someguy
      Business card logo feedback
      someguy
      Hi all,

      Got some really smart and creative advice on some early business card designs from this forum, went away and worked on one of the designs and two new ones.

      Could I ask...
      Today, 11:56 AM
    • nes_bambi
      Feedback for a poster design
      nes_bambi
      Hi all, I am very new to graphics design and I am currently taking my first ever elective in design.

      Here is the brief for my assignment:

      This studio project explores typography...
      Today, 09:38 AM
    GDF A division of Mediabistro Holdings Adweek | Mediabistro | Clio | Film Expo Group Contact Us | Terms of Use | Privacy Policy Copyright 2016 Mediabistro Holdings
    Working...
    X