B
B
BASSA2016-10-13 22:06:34
css
BASSA, 2016-10-13 22:06:34

How to make, implement the output of additional information when hovering the mouse cursor?

Can it be done with HTML/CSS, Javascript?
for example: there is a block with some product and there are pictures, and when you hover the cursor or click the mouse, additional information about the product appears under it. Like an online store

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2016-10-13
@xmoonlight

Can it be done with HTML/CSS, Javascript?
Can!

K
Konstantin Krayushkin, 2016-10-13
@kostanakis

Can. It is enough to write a rule in CSS for the :hover pseudo-class of this block.

A
Alexander Alekseev, 2016-10-14
@shure348

set an attribute for the block, for example data-tip="Hint text"
design a pseudo-element with the content property: attr(data-tip);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question