• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

hover [How to control the extent of hover highlighting?]

Enthusiast ,
Jul 16, 2019 Jul 16, 2019

Copy link to clipboard

Copied

Hi,

Q1.

Upon hover, the yellow rectangle becomes too wide.

How can I narrow it?

Q2.

Upon hover, the heights of the yellow rectangles become different.

How can I make them identical?

Global Invisible Hand

Hosun Kang

Q_Dw_41_hover.png

Views

225

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 16, 2019 Jul 16, 2019

The colour change is aimed at the 'h3' selector. The 'h3' element is a block level element that occupies the full width of the container. An 'a' element is an inline level element which occupies the space that is required for the content. It would be bettr to select the 'a' elemnt as the selector.

Votes

Translate

Translate
Community Expert ,
Jul 16, 2019 Jul 16, 2019

Copy link to clipboard

Copied

LATEST

The colour change is aimed at the 'h3' selector. The 'h3' element is a block level element that occupies the full width of the container. An 'a' element is an inline level element which occupies the space that is required for the content. It would be bettr to select the 'a' elemnt as the selector.

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines