Questions tagged as 'css'

1
answer

Problem with background animate + css

"use strict"; window.onload = function() { setTimeout(start, 200); }; function start() { //Helpers function lineToAngle(x1, y1, length, radians) { var x2 = x1 + length * Math.cos(radians), y2 = y1 +...
asked by 30.12.2017 / 23:24
1
answer

Why does not my mode close?

Why does not my modal close? I could not find anything wrong, especially when compared to other similar modals I have. When I click the close button, it does not dismiss, I do not understand. The JS is added and I have other similar mod...
asked by 31.12.2017 / 22:46
1
answer

Problem leaving a responsive section

I'm having trouble leaving a 100% responsive section it looks like this: Whenyouzoomoutofthepageitlookslikethis: Code: .fundoserv { display: block; overflow: hidden; background-position: top center; background-color: #F0F0F0; width:...
asked by 03.01.2018 / 01:51
1
answer

How to use line-height with percentage?

There are two examples one with PX and the other with% but I do not know how to do it using% what I put in everything2 to be equal to everything1? #tudo1{ background: blue; width: 20%; height: 50px; margin-bottom: 30px; } #ma...
asked by 30.12.2017 / 13:42
1
answer

How to Set Max Height and Exact Position of a Button on a DIV on Page

   I would like to know how to put the red X button on top of the div How are you? HowIwantyoutostay: Currentlytheclassofmybuttonislikethis:position:absolute;top:9%;right:2%;Whenputtingthisclass:top:-9%;right:2%;width:24px;height:24px;...
asked by 02.01.2018 / 14:18
1
answer

Problem with body and tag background-attachment: fixed;

@import url('https://fonts.googleapis.com/css?family=Paytone+One'); html,body { height: 100%; /* é necessário definir o height 100% no html, body ou qualquer elemento que estiver entre o body e o .container */ padding: 0; ma...
asked by 03.01.2018 / 21:42
1
answer

HTML5 Video not running on mobile

I'm creating a project in which I have a video scrolling in the page in the background, the desktop version is working perfectly, but in mobile the video does not execute and only the blue screen (div I put to give an opacity in the video). &l...
asked by 27.01.2018 / 02:54
1
answer

Get attribute with JS

I'm trying to make a product cart, and that's fine, it's already working, beautiful thing, but, as always, there are problems, I'm kind of new to JS, so I'm picking up a lot, HTML <button class="add-to-cart" data-price="25.99">...
asked by 13.12.2017 / 02:06
1
answer

Side div with 100% height with Bootstrap 4

Good afternoon, everyone. I'm breaking my head with the side menu of my site, I want it to have 100% height (using height: 100% did not work), the problem is this, searching the internet saw the tip of using the margin-bottom: -9999px; padding-b...
asked by 28.02.2018 / 20:25
1
answer

How to remove inner shadow from button or input

Clicking the button pops a gray shadow at the top, creating a 3d effect, but I want to remove it. How I want it to be clicked: Howareyou? MyHTML:<divclass="container"> <div class="row"> <div class="col-sm-4 col-sm-...
asked by 09.12.2017 / 17:37