box-shadow

How to apply box-shadow only on 3 sides? [duplicate]

不羁的心 提交于 2021-01-29 14:11:59
问题 This question already has answers here : Creating a CSS3 box-shadow on all sides but one (9 answers) Closed 11 months ago . I use my CSS page below. He applies a box-shadow on the 4 sides. I want it to be applied only to the right, bottom and left. How to apply box-shadow only on 3 sides ? -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.22); -moz-box-shadow: 0 0 10px rgba(0,0,0,0.22); -ms-box-shadow: 0 0 10px rgba(0,0,0,0.22); -o-box-shadow: 0 0 10px rgba(0,0,0,0.22); box-shadow: 0 0 10px rgba(0,0

Show box-shadow of child element while parent element has overflow hidden?

老子叫甜甜 提交于 2021-01-28 08:05:44
问题 You can see the problem I'm having here : https://jsfiddle.net/xa6b8qmm/ I'm using overflow: hidden because I want to hide the scrollbar However, this hides the left & right shadow of the elements. I can't find a way to hide the scrollbar while at the same time allow for left/right sides of the box-shadow property to be visible. Any ideas ? CSS : .noscrollbar { position: relative; float: left; height: 300px; width: 500px; overflow: hidden; } .scroller { position: relative; float: left; height

How can I make box shadow show over the next element in a container?

戏子无情 提交于 2021-01-27 12:00:09
问题 Please see this code: http://codepen.io/Varin/pen/kkGgVd <div class="container"> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> </div> And CSS $color1 : rgba(123,223,12,0.66); $color2 : rgba(23,43,122,0.66); body { box-sizing: border-box; background-color: #222222; display:flex; flex

How can I make box shadow show over the next element in a container?

时光怂恿深爱的人放手 提交于 2021-01-27 11:57:36
问题 Please see this code: http://codepen.io/Varin/pen/kkGgVd <div class="container"> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> </div> And CSS $color1 : rgba(123,223,12,0.66); $color2 : rgba(23,43,122,0.66); body { box-sizing: border-box; background-color: #222222; display:flex; flex

android cardview showing border around card

心不动则不痛 提交于 2020-12-05 05:00:22
问题 Android cardview is showing unnecessary border around the card. I have tried different things but I am not able to remove it. It happens when I give the card a custom background color. When I remove the cardBackgroundColor, and when default is used. Then unnecessary border is not visible. I have to use shadow and tranparent color code. Here is my layout CardView <RelativeLayout android:id="@+id/rlUserNamePassword" android:layout_width="match_parent" android:background="@android:color

Adding Shadows at the bottom of a container in flutter?

北城余情 提交于 2020-08-24 06:11:17
问题 I have a simple screen with a container about 100 in height and with blue color. I want to add a shadow or elevation at the bottom of the container. This is my code below import 'package:flutter/material.dart'; import 'package:finsec/utils/strings.dart'; import 'package:finsec/utils/dimens.dart'; import 'package:finsec/utils/colors.dart'; void main() { runApp(new IncomeFragment()); } class IncomeFragment extends StatelessWidget { @override Widget build(BuildContext context) { return new Stack

Css Shadow box ::after arrox with border method

 ̄綄美尐妖づ 提交于 2020-06-16 19:22:12
问题 I’m trying to realise a couples of element with this design : I also want to have a border radius like this : What I managed to do : For the first div, I didn’t managed to do inner box shadow for the ::before arrow and box shadow for the ::after arrow For the last div, I managed to do it but when I try to change the size of the arrow to make it larger, the box-shadows is not working anymore... body { background-color: white; } .test{ margin-top: -30px!important; } .test2{ z-index:13; } .test3

Double box/border? Is this possible in CSS?

南笙酒味 提交于 2020-05-23 12:15:06
问题 I'm trying to recreate this image in CSS. This is what I got from experimenting, so far. I used box-shadow to act as the second box. I'm not sure if there's a better way to do this? h4 { font-family: sans-serif; text-transform: uppercase; text-align: center; border: solid 3px black; border-radius: 5px; text-decoration: none; font-weight: 600; color: black; letter-spacing: 2px; padding: 20px 15px; background: white; box-shadow: 10px 5px 0px 0px #ffffff, 11px 7px 0px 2px #000000; } <h4>3.

关于box-shadow属性的一点心得

白昼怎懂夜的黑 提交于 2020-04-06 10:23:45
  一般我用到box-shadow都是用于诸如按钮,文本块,某些图标,css类似为: box-shadow: 1px 1px 5px rgba(0, 0, 0, .8);   这样,样式看上去会更加柔和,或者增加了立体感。   我个人的理解上,box-shadow的本质就是本体的形状的复制。   因此,当我们要给样式增加立体感的时候,就可以做的更加逼真。 HTML: <div class="box shadow"></div> CSS:    .box {      width: 300px;     height: 100px;       background: #ccc;       border-radius: 10px;              margin: 10px;         }        .shadow1::before,     .shadow1::after {       content:"";       position:absolute;       z-index:-1;       bottom:15px;       left:10px;       width:50%;       height:20%;       box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);       transform

web前端入门到实战:前端高手在CSS 开发效率的必备片段

╄→尐↘猪︶ㄣ 提交于 2020-04-02 05:52:03
这篇文章会记录我们平时常用到的 CSS 片段,使用这些 CSS 可以帮助我们解决许多实际项目问题中遇到的,墙裂建议点赞收藏再看,方便日后查找 清除浮动 浮动给我们的代码带来的麻烦,想必不需要多说,我们会用很多方式来避免这种麻烦,其中我觉得最方便也是兼容性最好的一种是,在同级目录下再创建一个<div></div>;不过这样会增加很多无用的代码。此时我们用:after这个伪元素来解决浮动的问题,如果当前层级有浮动元素,那么在其父级添加上 clearfix 类即可。 // 清除浮动 .clearfix:after { content: "\00A0"; display: block; visibility: hidden; width: 0; height: 0; clear: both; font-size: 0; line-height: 0; overflow: hidden; } .clearfix { zoom: 1; } 垂直水平居中 在 css 的世界里水平居中比垂直居中来的简单一些,经过了多年的演化,依然没有好的方式来让元素垂直居中(各种方式各有优缺点,但都不能达到兼容性好,破坏力小的目标),以下是几种常见的实现方式 绝对定位方式且已知宽高 专门建立的学习Q-q-u-n: 784783012 ,分享学习的方法和需要注意的小细节,不停更新最新的教程和学习技巧