Questions tagged as 'css'

1
answer

How do I change background-image of the site dynamically? [closed]

So, I wanted to make a bg-image change dynamically the same in this example: link The background changes every 5 seconds. Does anyone know how?     
asked by 23.03.2017 / 01:58
1
answer

Is it a bad practice to create a CSS file for each screen? [closed]

I find it more practical and easier to maintain if I create a CSS file per screen. Is this a bad practice? Can the same be done with JS files?     
asked by 09.05.2017 / 19:22
1
answer

hide / show div

I am creating a website for a travel agency, and at the beginning of the site I have created 3 prominent sites. When the user passes the mouse on the images, the image should darken and appear "more details" . The problem is that not being abl...
asked by 20.03.2017 / 21:43
1
answer

How to set Height of the DIV Son, through the depth of the Scroll of the Father DIV

I'm having a bit of trouble applying the depth size of the% dynamic% of the first scroll to the second div overlapped. Code: // Vamos criar a segunda Div, no qual ficará sobreposta a primeira Div var sobrepor = document.c...
asked by 05.04.2017 / 21:17
1
answer

How to horizontally center a responsive div with multiple objects inside

I'd like to put the maximum of Rectangle possible within mainDiv , and then center mainDiv horizontally. For example, in this image we can see eight Rectangle within mainDiv , but there is a space on the right si...
asked by 05.04.2017 / 05:35
2
answers

How do I upload content to a page based on a previously clicked element?

I have a simple gallery where each image leads to a new page with its description. It turns out that the page layout for the descriptions is the same, just changing the content. How do I make only a few fields on this page change based on the it...
asked by 04.04.2017 / 14:18
1
answer

Use screen size at 100%

I have two divs, DIV 1 with 80% width, centralized and I have the DIV 2 that is inside the DIV 1, I want it to be 100% wide, but since it is inside the DIV 1 that has 80% 100% becomes 100% of the DIV 1 (Turning 80%). But I want DIV 2 to have...
asked by 19.05.2017 / 14:38
3
answers

Paste data attr from DataTables / jQuery element

I'm developing a project in PHP, MySQL, jQuery and CSS, and I came across the following bug (in quotation marks because it's not a bug in fact) using the dataTables + bootstrap + ajax plugin: First a table with some data is loaded, and when a...
asked by 13.04.2017 / 15:45
3
answers

How to align a text in the middle of the height of an image?

I tried several ways and still could not, I'm kind of new with CSS, I wanted this "Name" to be at the time it hits the middle of the image next.     
asked by 13.04.2017 / 17:51
2
answers

Run css while loading Javascript CSS page

I'm developing a web application and would like to take the border off loading page, but it has the following error. Uncaught TypeError: Cannot set property 'border' of undefined JS <script> $(document).ready(function(){ d...
asked by 23.10.2017 / 02:03