css

Firefox-CSS: border-radius issue for pseudo-element “before”

家住魔仙堡 提交于 2021-02-17 04:46:16
问题 I have a card-element (bootstrap-4) with a front and back, on hover the back side is shown. In order to create a "folded corner effect" I am using a pseudo-element(:before) on the front card, which works fine for all browsers except of firefox. The bottom-left corner of the pseudo-element should also be rounded, so I set a border-radius. Unfortunately in Firefox the corner is not rounded, instead there is a strange box shown in the pseudo-element. Any ideas what is causing this issue in

How do the JavaScript function toUpperCase vs CSS transform-text:uppercase compare with respect to performance?

别来无恙 提交于 2021-02-17 04:44:14
问题 Is there any performance difference between using Javascript function toUpperCase vs using CSS text-transform: uppercase ? To clarify, let's take the simplest case: <h1 id="greetings"></h1> <script> var name = "Nour" document.getElementById("greetings").innerHTML="Hello" + name.toUpperCase(); </script> rather than: <script> var name = "Nour" document.getElementById("greetings").innerHTML="Hello" + name; </script> <style> #greetings { text-transform:uppercase } </style> What's the performance

How do the JavaScript function toUpperCase vs CSS transform-text:uppercase compare with respect to performance?

≯℡__Kan透↙ 提交于 2021-02-17 04:42:58
问题 Is there any performance difference between using Javascript function toUpperCase vs using CSS text-transform: uppercase ? To clarify, let's take the simplest case: <h1 id="greetings"></h1> <script> var name = "Nour" document.getElementById("greetings").innerHTML="Hello" + name.toUpperCase(); </script> rather than: <script> var name = "Nour" document.getElementById("greetings").innerHTML="Hello" + name; </script> <style> #greetings { text-transform:uppercase } </style> What's the performance

Material-ui v4 shows component names in html DOM class attributes?

瘦欲@ 提交于 2021-02-17 03:32:32
问题 After migrating from material-ui v3 to v4, noticed the react component/function name in the class attribute inside the HTML. Is that expected? Might this somehow affect overriding class properties already noticing issues when trying to override with new styles which do not apply. Also is there a possibility to remove those? The component names are: WrapperComponent, withRouter, CustomerDetailsContainer among others. 回答1: Material-UI uses class name generator to generate unique class names for

How to center text horizontally and vertically in cojunction with 'writing-mode: sideways-lr'?

可紊 提交于 2021-02-17 03:28:33
问题 I have a TD/DIV with some text inside. I made so that the text is displayed in the center of TD/DIV . But I want the text to be in center using writing-mode: sideways-lr . How can I do this? div { width: 200px; height: 100px; text-align: center; vertical-align: middle; border: solid; display: table-cell; } .side { writing-mode: sideways-lr; } <div>My text</div> <br> <div class="side">My text</div> Code here 回答1: Consider an extra span where you apply the property and better use writing-mode:

How to create a curve on the top of a background?

丶灬走出姿态 提交于 2021-02-17 03:27:39
问题 Please help me change the cutout from .top so that it is on top and not on the right. As shown in the image. Thank you very much in advance. I really hope for your help, I'm new to this business. Source code: Source code .box { margin-top:120px; width:200px; height:100px; background:white; } .box .top { height:100px; width:150px; transform:translateY(-100%); position:relative; background:#fff; } .top:before, .top:after{ content:""; position:absolute; top:0; width:50px; left:100%; bottom:50%;

flexbox column wrap list without overlapping items

≡放荡痞女 提交于 2021-02-17 03:22:46
问题 I have a list that I'd like to wrap to show on a pop-up modal which has a maximum width of 540px. Typically, it looks like this: But if too many names are added, then it'll overlap like this: My goal is to prevent the names from overlapping either by hiding the overflow (only show the maximum possible columns based on the data), or by making it scrollable. How can I wrap the list to take up the horizontal and vertical space (as showed below) but prevent the items from overlapping when the

Change format of a specific word using CSS

喜欢而已 提交于 2021-02-17 03:18:45
问题 Text can come form different source. After getting text it will display on site. From this text I need to change format of a specific word using CSS. In following example database word have to change: It is easily done by JavaScript JSFiddle but I need it by CSS not by JavaScript. Any idea? 回答1: You cannot select content with CSS, but with jQuery you can. You could wrap "database" in span and then use CSS to style it. For example: HTML: <p>A <span class="database">database</span> is a

I need help making CSS for a modern vertical navbar

这一生的挚爱 提交于 2021-02-17 03:06:30
问题 I have been playing around with a (I think) pretty modern vertical nav bar, I've gotten it pretty much down, however its like not really responsive, like at all. And its better off if its rewritten. Any help is appreciated :), or if you have any video that you know of or found that'll gear me in the direction that'll work too! I've tried making a two normal sections one section thats about 8vw wide and goes all the way down and then having a second section thats, well, for the rest of my

I need help making CSS for a modern vertical navbar

谁说胖子不能爱 提交于 2021-02-17 03:04:19
问题 I have been playing around with a (I think) pretty modern vertical nav bar, I've gotten it pretty much down, however its like not really responsive, like at all. And its better off if its rewritten. Any help is appreciated :), or if you have any video that you know of or found that'll gear me in the direction that'll work too! I've tried making a two normal sections one section thats about 8vw wide and goes all the way down and then having a second section thats, well, for the rest of my