Questions tagged as 'css'

2
answers

Sort styles with prefixes in CSS

Sometimes when I see CSS prefixes like -webkit , -moz and even -ms . So I had some questions about them: Why do some styles do not need prefixes (like background , for example)? Is there a correct (or recommended)...
asked by 13.10.2017 / 18:39
1
answer

How to center a binary tree?

I need to properly center this binary tree template. jQuery or JavaScript can be used. I'm going to need to generate the code with PHP , so you need to have some logic in html . Another detail is that you need...
asked by 09.01.2015 / 04:23
1
answer

How to put the scrollbar inside the body?

I styled the scrollbar of my website for webkit, and I put the background of the track as transparent, however I would like the thumb to overlap the body content, simulating a position absolute effect, and the body 100% without leaving the paddi...
asked by 15.12.2016 / 14:16
2
answers

What are the differences between the units of font sizes "vw", "in" and "%"?

I am having second thoughts about using the units of size vw , em , % . Searching the internet I always saw that some used one or other size units, but I never understood the difference between them. For example, I would not kn...
asked by 06.01.2016 / 14:14
1
answer

How to customize a select arrow

I have a price list, it has a select for the person to choose the payment cycle as shown in the image:  beingthatIdidwithCSS:-webkit-appearance:none;background:#E9E9E9url("../imagens/bgs/seta.png") 95.5% 50% no-repeat; As shown in t...
asked by 01.05.2014 / 21:57
3
answers

Margin in percent is relative to what?

I'm currently seeing a video on youtube on how to create a responsive website . He, at a certain point (minute 24.55), sets the margin of an image in percent rather than using the normal pixels. What I do not understand is what width or...
asked by 11.10.2014 / 12:51
3
answers

Overlay a button to an img

The idea is to do a "tumbnail" where the play button is (centered) on the image ... <div> <img src='imagems/imagem1.png'> <button>Play</button> </div> Thank you for your suggestions and your availability.     
asked by 08.07.2014 / 15:15
5
answers

How to center a div with position: fixed?

I wonder if it's possible to center a div with position:fixed ? Currently I tried to centralize it using margin:0 auto but it did not work ... unfortunately as the width of my div fixed will be dynamic I can not use left and...
asked by 22.09.2014 / 23:15
2
answers

Submit form with href="" instead of input="submit"

I was given a layout of a form: <form method="post" action="" id="mail_form"> <div id="newsletter"> <input type="text" name="email_newsletter" /> <div class="newslink"> <input type="hidden" n...
asked by 01.04.2014 / 14:02
3
answers

Change class with javascript when resizing screen

I need a javascript code that changes the menu class to the responsivemenu class when the screen resolution is less than 750px .     
asked by 30.11.2015 / 17:54