css3

Use CSS to target any element that has ANY two classes on it?

一曲冷凌霜 提交于 2020-01-01 10:48:11
问题 Our production environment is using an adaptation technology that is incompatible with multiple css classes. This means it's easy to forget and use two classes when styling HTML, and have it break once it gets to production. I would like to use CSS as a way to highlight when someone forgets and accidentally applies two classes to an element. Something like this is my intent, although of course this is invalid. It should highlight any element that has two classes applied to it: .*.* { /* not

How can I control the number of items per column in flexbox?

瘦欲@ 提交于 2020-01-01 10:48:05
问题 In a flex container I have 5 items with a column direction but in a certain width I want to display 3 per column and force the others to wrap is there any way to do that without fixed height ? my code : <div class="container"> <div class="item-1 item">Item 1</div> <div class="item-2 item">Item 2</div> <div class="item-3 item">Item 3</div> <div class="item-4 item">Item 4</div> <div class="item-5 item">Item 5</div> </div> .container { display: flex; flex-flow: column wrap; } @media (min-width:

How to align bootstrap dropdown and others together in a grid layout?

白昼怎懂夜的黑 提交于 2020-01-01 10:05:15
问题 I am trying to create filters whose layout should match something like below screenshot. So far I am able to achieve something like the given below screenshot. Problem is I am unable to evenly distribute items in terms of space as shown in 1st screenshot. Also is it good way to create this kind of layout using table? Please help me in understanding and creating this layout. Below is my code <div class="panel panel-default"> <div class="panel-heading" style="padding: 20px;"> <div class="panel

IE9 filter gradient and border-radius conflict

十年热恋 提交于 2020-01-01 09:47:07
问题 I'm trying to use gradient effect and border radius on same element, but there is a conflict between them. Gradient works fine, but it makes border radius not working. here is the script .selector { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4317',endColorstr='#891a00'); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } I don't want to use any .htc files. Is this known issue between filter and border radius? Thanks. 回答1: You can use an SVG

IE9 filter gradient and border-radius conflict

China☆狼群 提交于 2020-01-01 09:47:05
问题 I'm trying to use gradient effect and border radius on same element, but there is a conflict between them. Gradient works fine, but it makes border radius not working. here is the script .selector { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4317',endColorstr='#891a00'); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } I don't want to use any .htc files. Is this known issue between filter and border radius? Thanks. 回答1: You can use an SVG

Angular ui-grid can not copy cell text

混江龙づ霸主 提交于 2020-01-01 09:42:07
问题 I have an ui-grid where I want to select row by clicking any where on any row. I also want to copy a cell content to clip board. I did the following code, but while enableFullRowSelection is true , I can not select cell content by mouse draging. Please see the plunker. After further investigating I found .ui-grid-disable-selection class is being added to my grid. So can any one suggest how to solve this? EDIT : If I change enableFullRowSelection to false , I can select the content. var app =

Angular ui-grid can not copy cell text

我的梦境 提交于 2020-01-01 09:41:11
问题 I have an ui-grid where I want to select row by clicking any where on any row. I also want to copy a cell content to clip board. I did the following code, but while enableFullRowSelection is true , I can not select cell content by mouse draging. Please see the plunker. After further investigating I found .ui-grid-disable-selection class is being added to my grid. So can any one suggest how to solve this? EDIT : If I change enableFullRowSelection to false , I can select the content. var app =

Blurry text on Chrome when using CSS -webkit-transform

為{幸葍}努か 提交于 2020-01-01 09:36:12
问题 I'm using -webkit-transform: skew(-15deg, 0deg); to skew a div, and then -webkit-transform: skew(15deg, 0deg); to deskew the text-containing child. The skewing looks ugly and pixlated in google chrome, so I use -webkit-backface-visibility: hidden; to make it look OK. Now the container is skewed very nice and the inside text is "unskewed" but the text itself is blurry and ugly! (problem only exists only in chrome who uses -webkit) Demo Any ideas how to make the text clear again? HTML <div

How can I use Bootstrap button addons in my MVC view

我是研究僧i 提交于 2020-01-01 09:17:34
问题 I'm having difficulty getting Bootstrap's button addons to work in my MVC view. I'm using the latest NuGet version of ASP.NET MVC (5.1 rc1) and Bootstrap (3.03). I have the following in my view (now that I've pared it back to just hand-coded HTML rather than using Html.EditorFor() , in an attempt to getting it to work): @using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class="form-horizontal"> @Html.ValidationSummary(true) <div class="row"> <div class="col-lg-6"> <div class="input

How can I use Bootstrap button addons in my MVC view

拥有回忆 提交于 2020-01-01 09:17:10
问题 I'm having difficulty getting Bootstrap's button addons to work in my MVC view. I'm using the latest NuGet version of ASP.NET MVC (5.1 rc1) and Bootstrap (3.03). I have the following in my view (now that I've pared it back to just hand-coded HTML rather than using Html.EditorFor() , in an attempt to getting it to work): @using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class="form-horizontal"> @Html.ValidationSummary(true) <div class="row"> <div class="col-lg-6"> <div class="input