CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: Simple CSS label hover colour when hovered over! checked/not checked  (Read 123 times)

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 792
  • Karma: +8/-0
    • Grumpy Young Man
The 'pen

Basically when the mobile main menu is show/expanded (under 50em width) the close (red cross) doesn't change colour on hover, and I can not remember how to make it work, please help...

Many thanks, again....
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 792
  • Karma: +8/-0
    • Grumpy Young Man
I thought it was something to do with the document flow and the CSS colour changes, but I tried different orders and it still will not change from the red...  :-\
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

coothead

  • Sr. Member
  • ****
  • Posts: 392
  • Karma: +89/-0
  • I smile benignly
    • coothead's stuff ~ an eclectic collection
Hi there GrumpyYoungMan,

try it like this...

Code: [Select]
    #ctl_mainMenu:checked ~ nav label:hover:after,
    #ctl_mainMenu:checked ~ nav label:active:after {
        color:#0ff;
    }

coothead
~ the original bald headed old fart ~

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 792
  • Karma: +8/-0
    • Grumpy Young Man
Hi there GrumpyYoungMan,

try it like this...

Code: [Select]
    #ctl_mainMenu:checked ~ nav label:hover:after,
    #ctl_mainMenu:checked ~ nav label:active:after {
        color:#0ff;
    }

coothead
Thanks, I forgot the :active! :/

Should stick to the day job!

Thank you!!!
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

coothead

  • Sr. Member
  • ****
  • Posts: 392
  • Karma: +89/-0
  • I smile benignly
    • coothead's stuff ~ an eclectic collection

...you may also find that this modification...

Code: [Select]
#headliners {
    font-weight: bold;
    font-variant: inherit;
    font-style: inherit;
    font-size: 1.5em;
    display:flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:0.5em;
    padding:0.5em;
    /*margin:1em;*/
}

...works a little bit better.

coothead

~ the original bald headed old fart ~

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 792
  • Karma: +8/-0
    • Grumpy Young Man

...you may also find that this modification...

Code: [Select]
#headliners {
    font-weight: bold;
    font-variant: inherit;
    font-style: inherit;
    font-size: 1.5em;
    display:flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:0.5em;
    padding:0.5em;
    /*margin:1em;*/
}

...works a little bit better.

coothead
Thank you for your help and assistance, I appreciate it!

The 'Pen has been updated with both the fixes you suggested! :)
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

 

SMF spam blocked by CleanTalk

Advertisement