.path {
stroke-dasharray: 500;
animation: dash 5s linear infinite;
}
@keyframes dash {
to {
stroke-dashoffset: 1000;
}
} <form>
<div class="form-group">
<input type="text" name="name" class="form-control" placeholder="Your Name">
</div>
<button type="submit"><span>Submit</span></button>
</form>* {
box-sizing: border-box;
}
.form-group {
position: relative;
background: #fff;
}
.form-control {
width: 100%;
height: 2.5rem;
background: transparent;
border: none;
}
button {
border:none;
background: transparent;
position: relative;
padding: 1rem 2rem;
}
button span {
position: relative;
z-index: 3;
}
button:after,
.form-group:after {
content: '';
position: absolute;
top: -2px;
left: -2px;
bottom: -2px;
right: -2px;
background: linear-gradient(0deg, rgb(255, 174, 0) 0px, rgb(249, 232, 102) 100%);
z-index: -1;
-webkit-animation: animatedgradient 1s ease alternate infinite;
animation: animatedgradient 1s ease alternate infinite;
background-size: 100% 200%;
background-position: 0 100%;
}
@-webkit-keyframes animatedgradient {
100% {
background-position: 0 0;
}
}
@keyframes animatedgradient {
100% {
background-position: 0 0;
}
} <div>
<img src="https://images.unsplash.com/photo-1610405317849-43e74311fcac?ixid=MXwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw2fHx8ZW58MHx8fA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=600&q=60" alt="">
</div>div {
display: block;
width: 200px;
height: 200px;
}
div img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
} margin на placeholder никак не влияет, потому что задает внешние отступы!input(font-size, line-height, padding) или стилизация placeholder:::-webkit-input-placeholder {
...
}
:-moz-placeholder {
...
}
::-moz-placeholder {
...
}
:-ms-input-placeholder {
...
} var $file = $('.form__input-file');
$file.on('change', function(event){
var $this = $(this),
$label = $this.next('label'),
$labelText = $label.find('span'),
labelDefault = $labelText.text();
var fileName = $this.val().split( '\\' ).pop();
if( fileName ){
$labelText.text(fileName);
}else{
$labelText.text(labelDefault);
}
}); position:relative;position: absolute; + позиционируем с помощью top, right.position:relative; или position: static; :first-of-type *:.footer_header_text:first-of-type {
text-align: left;
}.footer_header_text:first-of-type * {
text-align: left;
}:first-child работает если есть общий родитель, у Вас в разметке его нет, блок один без обертки! flexflexflexfloat?!flexflex.grid grid на замену не придут, но в помощь точно вольются, поэтому их тоже стоит разбирать на будущее! @media screen and (max-width: XXXpx) { ... } @media screen and (min-width: XXXpx) { ... }rem, vh, vw, ...%, vh,vw, vmin для всего ( ширины,высоты, размера шрифта, отступы, ....)transform: scale(XX);