Add border-bottom to table row

Add border-collapse:collapse to your table rule: table { border-collapse: collapse; } Example table { border-collapse: collapse; } tr { border-bottom: 1pt solid black; } <table> <tr><td>A1</td><td>B1</td><td>C1</td></tr> <tr><td>A2</td><td>B2</td><td>C2</td></tr> <tr><td>A2</td><td>B2</td><td>C2</td></tr> </table> Link

How can I expand floated child div’s height to parent’s height?

For the parent element, add the following properties: .parent { overflow: hidden; position: relative; width: 100%; } then for .child-right these: .child-right { background:green; height: 100%; width: 50%; position: absolute; right: 0; top: 0; } Find more detailed results with CSS examples here and more information about equal height columns here.

How to force a line break in a long word in a DIV?

Use word-wrap:break-word; It even works in IE6, which is a pleasant surprise. word-wrap: break-word has been replaced with overflow-wrap: break-word; which works in every modern browser. IE, being a dead browser, will forever rely on the deprecated and non-standard word-wrap instead. Existing uses of word-wrap today still work as it is an alias for overflow-wrap … Read more

How to center an element horizontally and vertically

Approach 1 – transform translateX/translateY: Example Here / Full Screen Example In supported browsers (most of them), you can use top: 50%/left: 50% in combination with translateX(-50%) translateY(-50%) to dynamically vertically/horizontally center the element. .container { position: absolute; top: 50%; left: 50%; -moz-transform: translateX(-50%) translateY(-50%); -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); } <div class=”container”> <span>I’m … Read more

What does the “>” (greater-than sign) CSS selector mean?

> is the child combinator, sometimes mistakenly called the direct descendant combinator.1 That means the selector div > p.some_class only matches paragraphs of .some_class that are nested directly inside a div, and not any paragraphs that are nested further within. This implies that every element matching div > p.some_class necessarily also matches div p.some_class, with … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)