Questions tagged as 'css'

5
answers

If the image is large in the vertical, is it with height: 100%, if it is large horizontally, is width: 100%?

I have a question, how can I insert images with different sizes inside a div, and if the image is very large vertically, it has height: 100% , and if is very large horizontally with width: 100% ? An example image:     
asked by 24.09.2015 / 13:56
1
answer

Comments with the license in CSS or JavaScript files should be maintained or not?

This question comes up when I finalize a bundle mechanism for CSS and JS files with consequent cache . In many projects we all use mechanisms that allow us to reduce the size of CSS and JS files in our projects, however a legal issue arises....
asked by 12.08.2015 / 16:49
1
answer

How do I display / hide content on a page based on the site's "HTTP status"?

I have the following problem ... Scenario: A site with HTML-only page delivery (we can not use a server-side language). We do a YouTube embed video, but some companies, as we know, block their employees' access to social networks. It happe...
asked by 30.04.2014 / 19:59
1
answer

Is there any way to calculate a pattern of extra space from a source? [duplicate]

I'm trying to make a layout as "pixel perfect" as possible, but I've always come across this problem, using large fonts, there is a space above and below the font, like a padding / margin. I searched the subject, trying to relate to line-heigh...
asked by 16.01.2017 / 20:22
5
answers

How to remove input and textarea borders from all browsers when clicked?

Look at the image to get an idea: When clicked this border with blue shadow is visible. I think it's standard for all browsers. Any solution?     
asked by 11.02.2014 / 14:35
4
answers

Create button with icon next

I'm trying to create a button with an icon next to it, I'm using bootstrap framework icons, I'm breaking my head to do it, I know bootstrap has a component that does this, but it stays in another style, EX:     
asked by 17.12.2014 / 03:14
3
answers

Change border thickness with CSS

Can you make a border with CSS less than 1px? Because in my layout it was very thick.     
asked by 28.10.2016 / 14:16
1
answer

Attribute dir, html or css

The dir attribute is usually omitted for LTR and is used for RTL - which are written from right to left (arabic and related), with the purpose of changing the direction, but I did not find anything relevant besides. Using PHP to f...
asked by 02.11.2014 / 11:42
1
answer

How to apply! important in a property with multiple values

I'm having some difficulties with the precedence of CSS selectors to create a dynamic background (transition of images.) in the first section / div displayed on the site. I currently have the following scenario: HTML: <section id...
asked by 02.01.2015 / 19:13
1
answer

What is the maximum and minimum value for z-index?

I was discussing with some friends about putting 99999 on z-index to ensure that the element has the highest degree of overlapping priority over another element. But when I thought about it, I had a little curiosity: What is...
asked by 03.07.2018 / 14:07