Questions tagged as 'css'

1
answer

How important is it really to validate codes by the W3C?

I understand that validating the code can be important and especially help those who are starting to correct errors and become more informed about obsolete elements in current versions of the languages. But how much should I worry about valid...
asked by 24.10.2017 / 15:05
3
answers

How do I bind events to dynamically created elements and pass parameters?

I have a table that is generated via ajax and a certain column generates a link. As it was implemented, it currently writes a html with javascript intrusive. Something like below: return "<a href=\"#\" id=\"detalhe-nota-" + record.dat...
asked by 25.11.2015 / 19:34
2
answers

Center one Div between two others, one at each end

Despite the discontinuation of the <center> tag, it still solved this simple problem for me, but I would like to know how to solve it by using css . The idea is to put two buttons (or div's ) on each end, and in the m...
asked by 02.10.2014 / 10:34
1
answer

Use ": last-child: after" in Internet Explorer 8

I have a graph where some elements are generated via CSS, namely the trace below the quantity scale: CSS Used: #results .chart-scale li{ font-size:16px; line-height:18px; padding-top:38px; font-family:'latolight', sans...
asked by 20.01.2014 / 13:02
4
answers

Divs floats in a container with height auto

I'm having a problem structuring a layout with some divs side by side and when it does not fit any more, they go down. And the main container needs to increase according to how many boxes you have. More or less like this: ButIdonot...
asked by 03.04.2014 / 18:55
2
answers

Leave two Divs always with the same height [duplicate]

I'm using bootstrap, I already tried to use display:table-cell and display:cell in divs children, however, nothing worked, I have two divs , and both have dynamic content, but I need both to stay of the same size....
asked by 28.04.2015 / 03:18
3
answers

Fix first line table

I need to set the first row of my table always at the top of the page. I have read several questions about this same problem, but I could not solve ... My code: <table border="2px"> <tr bgcolor="0099FF" id="topo"> <th...
asked by 19.12.2014 / 02:17
1
answer

How to use the first-child selector for a specific class

Hello, I have several divs and some of them have a 'test' class, I would like the first-child selector to highlight only the first DIV that has the 'test' class, however, it only works if the 'test' class is in the first div. From what I underst...
asked by 30.12.2015 / 23:03
1
answer

What are the rules for building an HTML email?

I am about to build an HTML email, but I see that there are differences to an ordinary website page. I want the HTML email to have css and to appear both in desktop access and on tablet and mobile, and it should show some images in the body of t...
asked by 29.03.2016 / 17:42
1
answer

My CSS file is too large and it is difficult to keep readability

My CSS file is close to 10,000 lines. It is getting very complicated to maintain this file. in its version of Development the file "weighs" 170kb and in its minified version, "only" 128kb Some points to consider: Avoid unnecessary network...
asked by 11.02.2016 / 17:09