Questions tagged as 'css'

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

How to rotate an img 90º occupying 100% of the element?

I have the following image for example: Thelineinblackisthecontainerofthepage(mobile)andinredtheimage,Inexample1iswhatIhavetoday,and2theresultI'mtryingtoreach,Icannotfindasolutionwithoutdistortingtheimage,doesitworkanyway?followcode: img {...
asked by 06.09.2018 / 13:46
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
1
answer

Using shapes with CSS

I would like to do a layout in this way, where the green part and the text is done with CSS I used rotate and skew, but could not do it. Could someone help me ??     
asked by 29.06.2018 / 18:22
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
2
answers

Turn the sidebar menu into a fixed menu

I'm having a problem that for those who handle it should be relatively simple, but being a little new to the Front branch I'm having some problems, it's the following, I need to make a site with a fixed side menu, as I'm using bootstrap, get a m...
asked by 16.05.2018 / 13:21
3
answers

Break line after an IMG with CSS

I am making the mobile version of a website, but I can not force a line break after an image that is inside a modal. This is the part that matters in the modal: <div class="modal-content"> <div class="modal-header">...
asked by 14.05.2018 / 16:03