Questions tagged as 'html'

2
answers

How to animate the divs and caption arrangement, when hovering in one of these elements?

I'm creating a website, they asked me to play a joke on the team part. According to this image, when it is done: hover in one of the parts, all text and image are sorted: Idonotknowhowtotakeoffthisboot,becausejavascriptisnotmystrong.Iwishyouc...
asked by 20.03.2014 / 21:54
2
answers

Remove banner depending on window size

I'm using a template with the Responsive layout. I have a banner on the right side of a website. What I'm doing is that by scrolling the page the banner accompanies the page. When I lower the window, the banner goes over the content. What he wan...
asked by 06.03.2014 / 10:52
2
answers

Best way to get HTML + text from an array

Function I am using: $(".push-description-top").each(function() { var text = $(this).text(); var carac = text.length; if (carac > 0) { var query = text.split(" ", 14); query.push('<a href="">... Veja mais...
asked by 23.10.2017 / 18:18
2
answers

How to insert an HTML file with [innerHtml] and maintain the attributes of the Angular

In my Componente I get HTML in the form of a String and use [innerHtml] to insert this HTML into the Component View. Component: test(){ alert('Teste :D'); } html_string = '<input type="button" (click)="test()">'; View:...
asked by 16.03.2018 / 23:18
1
answer

How to display only the first row of a table?

I have a table with summaries about a particular client, where the first line is the main content to be displayed, and the rest is a mere complement. I know I could apply display: none , but I do not think that should be the best way to...
asked by 04.05.2016 / 21:14
3
answers

Should I use Em everywhere or only in Fonts?

I know that in should be used instead of px in sources for good application performance on mobile phones, but I only use this in font size. Should I use in also in places like margins, paddings, line-height, etc? Thanks     
asked by 05.07.2016 / 14:23
1
answer

HTML - How to get values from a tag

Hello, I need some help. I would like to know how to get values from an html tag using javascript. such as: grabbing the marginLeft value of an image that was determined by a css file. I hope I have been clear, thank you ...     
asked by 02.08.2016 / 14:06
2
answers

Do I need to include jQuery on all pages?

Is it necessary to put the script of the production jQuery each time it starts a new encoding?     
asked by 06.04.2015 / 04:47
3
answers

get element after being inserted into the DOM with jQuery Append

My page has a selectbox, with some segments, when a user selects a segment, through the on change event of jQuery, it takes the value of the selected <option> and inserts an input hidden with the value of this option within a...
asked by 15.05.2015 / 21:18
1
answer

JavaScript: how to count the characters of an html text?

The problem: I have a html formatted text and I need to count how many characters (ringtones for journalists) I have. I'll use JavaScript. Some solutions came to mind, but as this will be done repetitively, I decided to analyze better before lea...
asked by 09.03.2015 / 15:22