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

    • HotButton
      Comment on Flyer Crtitique
      HotButton
      It's just what I call it when people use an expression that actually says or means the opposite of what is intended; ''could care less'' would be another prime example.
      Yesterday, 11:44 PM
    • B
      Reply to Flyer Crtitique
      B
      That makes sense, I guess. Off is the inverse of on, which makes based off the inverse of based on. Got it. ...
      Yesterday, 08:50 PM
    • B
      Reply to Flyer Crtitique
      B
      Okay, I know what a colloquialism is, but what is an inverse colloquialism?

      Probrien, in addition to HotButton's comments, which I agree with, the ad is a bit confusing. Maybe it's lacking...
      Yesterday, 08:48 PM
    • PrintDriver
      Reply to Flyer Crtitique
      PrintDriver
      ''Based off'' is inverse of ''based on.'' ''Based on'' is a colloquialism.
      I think.
      I have not had enough to drink to play this game.

      o O
      Yesterday, 08:27 PM
    • pobrien
      Reply to Flyer Crtitique
      pobrien
      Thanks for the feedback. That all makes a lot of sense. I'll take these points and re-work things....
      Yesterday, 04:06 PM
    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