Questions tagged as 'css'

1
answer

The image with display none I want it not to load

I have a question, I am optimizing a website and in the mobile version I am putting smaller images and therefore I am hiding the desktop image with CSS display none. The problem of mine is that no matter how much you put a display none of the de...
asked by 19.01.2018 / 15:39
1
answer

Can you put text to an input type radio? [duplicate]

I have a form with several radio-type inputs (only one can be selected). The code is as follows: <div class="form-group"> <label><strong>Visible</strong></label><br> @if...
asked by 18.09.2017 / 10:57
1
answer

How to integrate font in my web?

I have the following fonts : Rubik-Bold.ttf Rubik-MediumItalic.ttf Rubik-Black.ttf I want to use these fonts for example in each one: <p class="bold">Hola</p> <p class="medium">Hola</p> <p class="bl...
asked by 29.01.2018 / 12:41
2
answers

Help with my css code

* *, *::before, *::after{ box-sizing: border-box; padding: 0; margin: 0;} body { background: #000000; color: #000000; } header, footer { background: #000000; width: 90%; max-width: 100%; max-height: 20% margin:20% auto...
asked by 25.01.2018 / 20:27
3
answers

Align vertically inside div

Good! Could you tell me how to vertically align the green square that is inside the red? The thing is that this green square contains in turn an image (logo) and this if I can align it with the label line-height: 200px , but said squ...
asked by 03.09.2017 / 16:26
1
answer

How to refuse to surpass the father div

If I have a div inside another, like this: #padre{ width:300px; height:300px; background-color:lightpink; position:absolute; top:20%; left:15%; border-radius:150px; border: 2px solid purple; } #hijo{ width:300px; height:1...
asked by 13.09.2017 / 02:16
4
answers

Pass a JavaScript variable to CSS

What I want is to catch the total height of the page and apply a CSS depending on the result. JS: $altura = document.body.scrollHeight; CSS: #id{ height: $altura; } Something like that, how should it be done?     
asked by 08.09.2017 / 16:05
3
answers

Hide in bootstrap 4

I am trying to hide a text in the following way <ul class="col-6 col-lg-4"> <li> <i class="fa fa-briefcase" aria-hidden="true"></i> <div class="contenedor-eleccion "> <h4>Aplicacio...
asked by 18.05.2017 / 10:03
2
answers

CSS style does not work for me in Chrome

Friends, I have a style that does not work for me in Chrome, but it does work in Firefox. It is a style to enlarge a little more the option of a select and I apply it directly to the option element. I leave the style: <div class="fo...
asked by 25.05.2017 / 18:41
1
answer

How to create a modal window with just HTML and CSS?

Hello friends, could you please explain me in detail how to create a modal window with just HTML and CSS. What I plan is that when I fill out a form and click on the button, a modal window will open saying that the information has been sen...
asked by 25.05.2017 / 02:29