B
B
BonBon Slick2016-05-26 20:48:09
css
BonBon Slick, 2016-05-26 20:48:09

How to apply effects to a specific HTML tag?

I'm using Bootstrap 3. I want to put an effect on a tag.
Here is an example code:

<a href="#cool_slider" class="left carousel-control" data-slide="prev">
   <span class="glyphicon glyphicon-chevron-left"></span>
</a>
СSS
#cool_slider .carousel-control span:hover{
  border-radius:10px;
  border:1px solid red;
} ( хочу взять шеврон  в кружок бордером )

If you impose on a span by class, then it works crookedly, the border and other styles are not displayed as they should. Can you please recommend the best and correct way to implement CSS overlay on the tag?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
atis //, 2016-05-26
@BonBonSlick

Few details.
If so as I think then...
The height and width of the element should be the same + border-radius: 50%;
For example

height: 30px;
width: 30px;
border-radius: 50%;
border: 1px solid #fff;

X
xmoonlight, 2016-05-26
@xmoonlight

border at first write without hover

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question