Forums

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

Home Forums CSS CSS Help: Img & Div

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42265
    pedram
    Member

    Hi,

    and here is css:

    .user_avatar {
    width: 75px;
    height: 75px;
    border: 1px solid #000000;
    overflow: hidden;
    margin: 2px 10px 0px 0px;
    }

    .user_avatar.img {
    width: 75px;
    height: auto;
    position: absolute
    }

    div is ok but “.user_avatar.img” not working, and img not resize to 75px, what’s the problem?
    i also change the css to:

    user_avatar.img

    and

    #user_avatar.img

    or

    #user_avatar.img.avatar

    but neither working!

    #122396
    pedram
    Member

    yes, my problem was ‘.’ symbol.
    Thanks for your help, it works, here:
    http://codepen.io/Pedram/pen/rEibv

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