Forums

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

Home Forums CSS buttons bug

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #248271
    Seth-666
    Participant

    I tried to copy a websites just for learning and something happens that I can’t understand why, take a look pls https://www.youtube.com/watch?v=UrfH7P5NlWo and tell me why the buttons are getting biger when a hover ..

    #248272
    Paulie_D
    Member

    Videos aren’t much use since we can’t inspect the code.

    Please create a minimal demo in Codepen.io that shows the issue.

    #248276
    Seth-666
    Participant

    http://codepen.io/Seth-666/pen/NbvbXL

    i mest up a little the cod .. but the problem is the same , when a i hover on a button it get bigger … why ?

    #248277
    Shikkediel
    Participant

    It’s because of this:

    .moreinfo a:visited, a:hover {
      border: solid 2px white;
      border-radius: 2px;
      padding: 10px 53.5px 10px 53.5px;
      color: white;
    }
    
    #248278
    Seth-666
    Participant

    so i have to be careful with the width and height bouth to be smaller than its container sizes?

    #248292
    Shikkediel
    Participant

    Looks like you figured things out when I check the example…

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