Questions tagged as 'div'

5
answers

How to print content inside an HTML div?

I have a page and in it the content I want to print. I created a command in JavaScript, but this command makes the whole page print. Is there any way to print only the contents of a div ?     
asked by 21.12.2013 / 04:20
3
answers

How to horizontally center one div within another?

How can I horizontally center a div that is inside another div using only CSS? In this case, we can assume that div external outer has width of 100%. <div id="outer"> <div id="inner">Este é o elem...
asked by 21.12.2013 / 16:27
3
answers

Insert video or HTML or external JS into a div

In the site I'm developing, I'd like to call an external video within a div , just using the video ID. Example: https://www.youtube.com/watch?v=UJAwNkhbYWM In case the video ID is this: UJAwNkhbYWM . Whenever you create...
asked by 06.08.2014 / 23:23
11
answers

Center image vertically within a div

I need to center images within a div . I can do this horizontally with text-align:center; , however I want to centralize vertically . I tried vertical-align: middle; and display: table-cell; and it did not work. Is...
asked by 11.02.2014 / 14:48
5
answers

How to increase or decrease div proportional to 720x540?

I'm trying to solve this question because I have a .ppt slide with dimensions of 720w and 540h and my page is cleared, so the reason to increase or decrease proportionally. Example:     
asked by 31.01.2014 / 14:57
8
answers

How to make a DIV fill all the available width

I have two divs, one with fixed width, 250px; which is on the left, will be a set menu, always left. And another div on the right that I want to make it 100%, whenever the user manipulates the corners of the screen, it was 100%. Something lik...
asked by 24.02.2014 / 13:32
3
answers

CSS DIV diagonal

I recently received a layout to develop, in which I have a specific aside that I can not do, I need a div that is tilted, as in the example, the more that the text flows normally, the text is not turned over in case of using transform. Anyon...
asked by 24.01.2015 / 18:21
6
answers

How to invert the position of a div (and its contents and attributes) with another div?

I want to do this with jQuery, what is the most elegant way to do this? Assuming the following scenario, what would happen if I wanted to change position to div2 with div3? (I will not post my actual code that is too large) <body>...
asked by 19.12.2013 / 18:40
3
answers

Show and hide content in list form. with Javascript

I'm trying to make a list of Youtube videos as follows. (ps:Eu sei que o Youtube ja tem uma playlist dele.) Example: List with video names. 1 - Trailer Reaction: Star Wars: Episode VII - The Force Awakens 2 - Star War...
asked by 13.12.2015 / 00:57
2
answers

How to keep the divs aligned one on top of the other?

- I am extremely new to the subject and do not know much, I'm going from internet searches, videos and readings, I say this in case there is any unnecessary code or rule in my doubts p> I would like some help in this situation: I'm traini...
asked by 04.03.2017 / 00:11