Questions tagged as 'css'

1
answer

What is the relationship between the Primefaces ajax and the events

In the face of certain problems during my development the following doubts arose for example. When I use the ajax tag in Primefaces , it has the event property where we pass events, so I had some questioning. Once I had...
asked by 06.08.2014 / 12:15
1
answer

How to pull the button of an input file (without JS) [duplicate]

I have the following input file and wanted to know how to get the button, so in the box just show the file name * I do not need JS, I have already seen some examples and I remember that they did not use JS, but I also do not re...
asked by 17.08.2016 / 23:44
2
answers

Image alignment with CSS

I have a div that contains another div inside, but this second div (inside) contains a <img src=""> , how can I do to leave this div with the image aligned in the center of the first div ? I already...
asked by 12.08.2015 / 16:55
1
answer

How to work with CSS media queries?

I would like information on how to use media queries . How do I set media of a site below? 2560 x 1440 2560 x 1080 1920 x 1080 1366 x 768 1280 x 1024 1280 x 768 As my site is extended to the entire screen, it's a layout th...
asked by 05.06.2014 / 21:20
1
answer

Custom resize of a div

How to customize resize so you can resize anywhere in the bottom of div Example of stackoverflow itself: .caixa { background-color: #444; /* margin: 100px auto; */ height: 100px; width: 400px; resize: vertical;...
asked by 11.08.2018 / 03:06
1
answer

How to create a placeholder when loading page content, same as facebook, youtube, etc.

This is a question asked on various websites, and before I came here, I asked a lot, even on the stackoverflow in English. Well the part of the placeholder in html and css is already ready, I got following tutorials on several sites, missing...
asked by 16.06.2018 / 19:51
2
answers

What's the difference between top and margin-top in css?

This is a subject that always confuses me a lot. What is the real difference between them? When to use both? I usually go through trial and error, but I need to understand how it really works.     
asked by 17.12.2014 / 13:31
1
answer

Height of the div is greater than the height of the image. Because?

I have the following pure HTML, without CSS <div> <img src="_img/_banner/banner1.jpg" /> </div> The banner1.jpg image has 300px height and div has not been set. Looking at inspector to imagem...
asked by 16.11.2017 / 12:31
1
answer

Mobile First: Appear image only on the desktop

What is the best way to make an image appear only on the desktop ? Usually I add media query to put display: none when opening in mobile . But this image is processed by the cell phone, it just is not displayed. What is the be...
asked by 24.11.2017 / 14:35
2
answers

textarea with lines of notebook style

I need to make a print form that could be typed in the browser or printed for writing. As can be written on the printed sheet, I need a bookmark in the textarea that draws the lines as if it were a notebook. I need this model: body {...
asked by 20.03.2016 / 16:12