Questions tagged as 'html'

1
answer

How to assign two values in ng-click?

I have this html body that will invert the Boolean variable d.expandedBlog when clicked. It is working normally. <div class="article-blog-icon-comment"> <i class="fa fa-commenting-o article-blog-menu-topbar" ng-click="...
asked by 23.08.2018 / 14:52
3
answers

How to keep the data of an html saved

Well, I need to get the value of a textarea and send it to a second textarea on the same page, but when I refresh I do not want the value to come from the second textarea sum, how to do this using javascript and Ajax? > My Code var textAre...
asked by 12.08.2018 / 23:21
1
answer

Configure CSS to generate a new column when it reaches overflow

I'm generating a list of links dynamically using PHP, but this list is very large and I would like it when it reaches a certain height in px the column would be broken by 2, 3, or as many as needed. Eg: Make a list even though it is in HTML...
asked by 17.07.2018 / 19:12
1
answer

How do I inherit a value from a given attribute in CSS?

Hello, everyone. How do I inherit a value from a given attribute in CSS? Example: <div class="flex" id="1" style="line-height: 100px; height: 100px; background-color: red;">1</div> <div class="flex" id="1" style="line...
asked by 17.09.2018 / 15:03
1
answer

CSS: nth-child (even) - Problems

Hello. I'm developing a program and on a page I had to use "col" to do a layout similar to the "tables". I can not use tables because the line needs to expand down when I click on a certain button. But I need to switch colors from one line to an...
asked by 17.09.2018 / 14:17
1
answer

Div's overlapping on mobile

I have a menu made with CSS that has a certain header spacing as can be seen below: However,whenIopenthephone,theylineupinawaythatendsupontopoftheheader: Andwithout"Expremo" the page a little more, many of the buttons end up becoming inaccessib...
asked by 12.09.2018 / 16:00
1
answer

How to set navbar with dropdown?

I want a navbar with dropdown menu and fixed at the top, but I can only leave it fixed or with dropdown working, follow the code: body { margin: 0; } ul { list-style-type: none; margin: 0; padding: 0; overflow...
asked by 18.09.2018 / 14:53
1
answer

CSS gradient with image

I need to develop a responsive web page, I will put a background image as "texture", but they can not occupy the entire screen, only halfway, giving a fade transition between the image and the white part on top . I tried to use linear gradien...
asked by 27.06.2018 / 17:01
2
answers

Escape HTML inside element code - No jQuery

Good evening. I'm developing a chat and I'm breaking my head here in one part. I get the text, I deal with it, I check what img or link is and I just put it inside the <img> and <a> tags, respectively. If it is not a li...
asked by 01.07.2018 / 02:37
1
answer

Make p adjust to image size

Good evening I am putting <img> inside <p> with 192x192 and when it has little text the image ends up leaving <p> that it belongs. How can I make the border fit with the image size? CSSCode:.retrato{...
asked by 30.11.2018 / 21:39