CSS Triangle + “After” Implementation
Changing the triangle to position: absolute; and adding position: relative; to the .box fixes it. It seems to be inheriting the height of the box.
Changing the triangle to position: absolute; and adding position: relative; to the .box fixes it. It seems to be inheriting the height of the box.
Apparently it’s a bug on Chrome which detailed here: https://github.com/rachelandrew/gridbugs#10-some-html-elements-cant-be-grid-containers And tracked here: https://bugs.chromium.org/p/chromium/issues/detail?id=375693 (I don’t see a progress here. If it fixed, please edit the answer or I will if I remember)
Here’s a script which can do it. It isn’t pretty, but maybe you can hack it to meet your needs. (Updated to handle resizing) function SplitText(node) { var text = node.nodeValue.replace(/^\s*|\s(?=\s)|\s*$/g, “”); for (var i = 0; i < text.length; i++) { var letter = document.createElement(“span”); letter.style.display = “inline-block”; letter.style.position = “absolute”; letter.appendChild(document.createTextNode(text.charAt(i))); node.parentNode.insertBefore(letter, node); … Read more
Reference: <svg alt=””> <use xlink:href=”shapes.svg#circle”></use> </svg> <svg alt=””> <use xlink:href=”shapes.svg#square”></use> </svg> <svg alt=””> <use xlink:href=”shapes.svg#triangle”></use> </svg> shapes.svg: <?xml version=”1.0″ encoding=”UTF-8″ ?> <!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1//EN” “http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd”> <svg xmlns=”http://www.w3.org/2000/svg” xmlns:xlink=”http://www.w3.org/1999/xlink”> <symbol id=”circle”> <circle cx=”100″ cy=”50″ r=”40″ stroke=”black” stroke-width=”2″ fill=”red” /> </symbol> <symbol id=”square”> <rect width=”100″ height=”100″ style=”fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)” /> </symbol> <symbol id=”triangle”> <line x1=”50″ y1=”0″ … Read more
You need to set the height of the td to 100% too: <td style=”height: 100%”> jsFiddle
Old post but still relevant, so adding an answer to help those with similar issue While not inherently possible in CSS modules alone, the author of the react-toolbox library has actually solved this particular problem very nicely Read their github docs which are more in depth on the subject at https://github.com/react-toolbox/react-toolbox#customizing-components A list of the … Read more
You need to consider flex-shrink. As you can read here: The flex-shrink CSS property specifies the flex shrink factor of a flex item. Flex items will shrink to fill the container according to the flex-shrink number, when the default size of flex items is larger than the flex container. body { margin: 0; } * … Read more
display:inline means a element is will “stack” next to other items, like images, spans or the bold tag. This is opposed by block level elements (display:block) which take up horizontal space, imply a line break, and will not sit next to one another, like divs, paragraphs, or tables. Think of it this way… <img /><img … Read more
Apparently phone number detection was introduced in Internet Explorer 11, but not on desktops. Here are ways to control it, taken from this MS article: Phone number format recognition To disable the behavior for an element (and its child elements), set the x-ms-format-detection attribute to “none”. To disable the behavior for a webpage, use the … Read more
<iframe style=”overflow:hidden;”></iframe>