Jump to content

MadsKaiser

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by MadsKaiser

  1. Hi!

    I started 2 days ago on css. I have mainly used html :) I ran into a little problem with hovering. 

    I have an title and an subtitle. I want the title to move up a little and the subtitle to fade in when hovering over the background picture. So when "img-text-wrapper:hover" activates, i want to have it to have action in both ".subtitle" and ".subtitle2". I think it is because the padding of the subtitle is overlapping the padding of the title, so i cant do something like this, cause then the subtitle wont activate. I hope you understand :/ :/

    .country:hover .subtitle2{

        font-weight: 600;

        color: black;

        padding-bottom: 60%;

    }

     
    .img-text-wrapper:hover .subtitle{
        font-weight600;
        colorlightseagreen
    }
     
    .country .subtitle2{
        transition0.5s;
        font-weight600;
        font-size3.5em;
        colorrgb(197241239);
        padding0%;
    }
     
    .img-text-wrapper .subtitle{
        transition0.5s;
        font-weight600;
        colortransparent;
    }
×
×
  • Create New...