Questions tagged as 'css'

1
answer

Upper alignment with a centralized element

I have div and I need to put text on the left, another on the right, and a icon centered, all aligned on top. I was able to get to this point, but so far I can not align them on top: <div style="width=40%"> <a>...
asked by 08.10.2015 / 22:18
2
answers

PHP result within a modal with CSS

Hello, I'm trying to put the result of a quiz done with PHP and a bit of JS (used only to hide the previous question and show the next one) within a modal, done only with HTML and CSS, since I am building a website in which I have only HTML, PHP...
asked by 20.08.2015 / 13:56
1
answer

How to control the placement of a div with position fixed?

How can I make it so that when my right div gets to the comment area div it gets fixed again? When it arrives at an X number of distance from the top I apply a position fixed for it to follow the content: Link of the stuff <script type="...
asked by 27.07.2015 / 19:55
1
answer

section does not work correctly

I need my <section> to look like this site here follow the image of the part I need ItriedcodingbutitdoesnotstaythatwayIdonotknowwhereI'mgoingwrong.Followmycode:CSSulli{list-style-type:none;}.imagem{background-image:url(http://ner...
asked by 30.07.2015 / 19:43
2
answers

Get first line element and last

I have a li and wanted to get the elements that are written MARKED below. But I used the nth-of-type, it works to get the 4 element always, but I could not get the next one. Could someone help me to always get 1 after the first item where it is...
asked by 03.02.2016 / 18:14
1
answer

overflow overlapping padding

I have a div where I use padding and overflow, but when the overflow is activated and the scroll bar appears, the text goes over the padding area, there is a way to cause the overflow to start from the area initial padding? link visual...
asked by 08.02.2016 / 00:52
1
answer

Bootstrap sass, what is the best way to avoid attribute redundancy

I'm using the sass version of the boostrap, and I'd like to know the recommended practice. I have the original% bootstrap% and I have my personal assets that I believe overwrite those of the boostrap, so I do not move in the boostrap o...
asked by 18.11.2015 / 02:48
1
answer

Skip Page of 5 in 5 Blocks

Good afternoon, I'm returning data from a table and showing it in CSS, however I need to display 5 blocks per page and every 5 blocks I need to insert a piece of code to force the browser to go to another page. Example: while($row = mysq...
asked by 18.07.2015 / 17:40
1
answer

DOM element identification pattern

What is the pattern of HTML identifier names, eg: <form id="alterar-nome-form" th:action="@{/conta/alterarnome}" th:method="put"> </form> Or <form id="alterarNomeForm" th:action="@{/conta/alterarnome}" th:method="put">...
asked by 24.09.2015 / 15:54
1
answer

Dropdown Menu Selection

I would like to show the dropdown menu, the li containing it is still selected. I would like to know if there is any way to do this with CSS only. Follow the example. Thanks! link <!DOCTYPE html> <html lan...
asked by 12.07.2015 / 03:27