Questions tagged as 'css'

1
answer

Parent css selector [duplicate]

Is there any way to select using only css images whose parent is a <div class="img-parent" ></div> , that is, from a child element? <div class="img-parent" > <img src="/teste.png"> </div> Something...
asked by 13.12.2017 / 19:29
1
answer

Contact form

Good evening. Galera, next. I'm just starting out in HTML5 so I still do not handle it very much. I've done all the visual part (CSS) of a contact form (like course work), however I'm not very good with the html itself, so my question i...
asked by 16.12.2017 / 02:15
1
answer

Dealing with height in percent [HTML / CSS] [duplicate]

Good evening. I am learning technology for front-end programming and came across a program when setting the page size in percent. I have a DIV and within these DIV I have two more, thus: <div class="pai"> <div class="Filho-1">...
asked by 06.12.2018 / 22:12
3
answers

Change background color when clicking

I need the button to change color every time I clicked, I used the focus but it does not bring me the expected result, because after the button is clicked, the user needs to click on another corner, so the background color back to normal....
asked by 23.07.2018 / 18:24
4
answers

CSS - Bootstrap min [closed]

When I open for editing, the CSS of the bootstrap.min is a tab without a tab. Can you solve this? I would like to make a simple edit in the source of a class and even identifying the line by the browser inspection, it is still diffi...
asked by 18.08.2015 / 20:25
2
answers

Change the background color of an element when scrolling the page

I have tried this code without success. $(document).ready(function(){ $(document).scroll(function() { var alpha = Math.min(0.5 + 0.4 * $(this).scrollTop() / 210, 0.9); var channel = Math.round(alpha * 255); $(\"body\").css('backg...
asked by 06.04.2017 / 13:31
2
answers

How to use the style tag in part of a text? [duplicate]

I want to do something like this: <p style="color:red;">Esse texto é vermelho e <style="color:blue;">esse texto é azul</style> mas esse outro continua vermelho</p> I believe you have understood. I want to g...
asked by 03.10.2018 / 04:30
2
answers

System of tabs in CSS with 2 lines of tabs - code using "float"

I am using the code below for a form with multiple "tabs", and I would like tabs 1-4 to appear above tabs 5-8 on two lines. However, tabs 1-4 appear normally, but tabs 5-8 are truncated, they do not appear on the bottom line as I would expect to...
asked by 26.03.2018 / 14:08
2
answers

Change the file (jpeg, gif or swf) according to screen size?

I have a Website in PHP and it has a field for commercials (Where I can paste codes) As a resizing site I have no idea how to make an HTML or JAVA code use different images for the same ad space (multiple files for different dimensions - Pc o...
asked by 01.06.2017 / 21:13
2
answers

How to put an effect: focus on div

I have 5 input and each one falls within a div , I would like to know how to put a focus effect on each div which holds the input and when clicking outside the div remove the effect. <div class="input"> <span>Nome <s...
asked by 06.10.2017 / 05:10