css uniform,css - Uniform bootstrap cards - Stack Overflow

My cards have different title lengths, causing the cards to be just a bit randomly sized width wise. I want them all to be the same size. I've messed with things like min-width and other things like that but no dice. I will continue searching until I fix it or find help with it.

thank you!

note: i pulled these cards from bootstrap studio

{

transition: all 0.3s ease-out;

}

html, body {

height: 100%;

font-family: "Nunito", sans-serif;

font-size: 16px;

}

.container {

width: 100%;

height: 100%;

display: flex;

flex-wrap: wrap;

align-items: center;

justify-content: center;

}

h3 {

color: #262626;

font-size: 17px;

line-height: 24px;

font-weight: 700;

margin-bottom: 4px;

}

p {

font-size: 17px;

font-weight: 400;

line-height: 20px;

color: #666666;

}

p.small {

font-size: 14px;

}

.go-corner {

display: flex;

align-items: center;

justify-content: center;

position: absolute;

width: 64px;

height: 50px;

overflow: auto;

top: 0;

right: 0;

background-color: #00838d;

border-radius: 0 4px 0 32px;

}

.go-arrow {

margin-top: -4px;

margin-right: -4px;

color: white;

font-family: courier, sans;

}

.card1 {

display: block;

position: relative;

max-width: 262px;

background-color: #f2f8f9;

border-radius: 4px;

padding: 32px 24px;

margin: 12px;

text-decoration: none;

z-index: 0;

overflow: hidden;

}

.card1:before {

content: "";

position: absolute;

z-index: -1;

top: -16px;

right: -16px;

background: #00838d;

height: 32px;

width: 32px;

border-radius: 32px;

transform: scale(1);

transform-origin: 50% 50%;

transition: transform 0.25s ease-out;

}

.card1:hover:before {

transform: scale(21);

}

.card1:hover p {

transition: all 0.3s ease-out;

color: rgba(255, 255, 255, 0.8);

}

.card1:hover h3 {

transition: all 0.3s ease-out;

color: #ffffff;

}

.card2 {

display: block;

top: 0px;

position: relative;

max-width: 262px;

background-color: #f2f8f9;

border-radius: 4px;

padding: 32px 24px;

margin: 12px;

text-decoration: none;

z-index: 0;

overflow: hidden;

border: 1px solid #f2f8f9;

}

.card2:hover {

transition: all 0.2s ease-out;

box-shadow: 0px 4px 8px rgba(38, 38, 38, 0.2);

top: -4px;

border: 1px solid #cccccc;

background-color: white;

}

.card2:before {

content: "";

position: absolute;

z-index: -1;

top: -16px;

right: -16px;

background: #00838d;

height: 32px;

width: 32px;

border-radius: 32px;

transform: scale(2);

transform-origin: 50% 50%;

transition: transform 0.15s ease-out;

}

.card2:hover:before {

transform: scale(2.15);

}

.card3 {

display: block;

top: 0px;

position: relative;

max-width: 262px;

background-color: #f2f8f9;

border-radius: 4px;

padding: 32px 24px;

margin: 12px;

text-decoration: none;

overflow: hidden;

border: 1px solid #f2f8f9;

}

.card3 .go-corner {

opacity: 0.7;

}

.card3:hover {

border: 1px solid #00838d;

box-shadow: 0px 0px 999px 999px rgba(255, 255, 255, 0.5);

z-index: 500;

}

.card3:hover p {

color: #00838d;

}

.card3:hover .go-corner {

transition: opactiy 0.3s linear;

opacity: 1;

}

.card4 {

display: block;

top: 0px;

position: relative;

max-width: 262px;

background-color: #ffffff;

border-radius: 4px;

padding: 32px 24px;

margin: 12px;

text-decoration: none;

overflow: hidden;

border: 1px solid #cccccc;

}

.card4 .go-corner {

background-color: #00838d;

height: 100%;

width: 32px;

padding-right: 9px;

border-radius: 10px;

transform: skew(6deg);

margin-right: -36px;

align-items: start;

background-image: linear-gradient(-45deg, #8F479A 1%, #DC2A74 100%);

}

.card4 .go-arrow {

transform: skew(-6deg);

margin-left: -2px;

margin-top: 9px;

opacity: 0;

}

.card4:hover {

border: 1px solid #CD3D73;

}

.card4 h3 {

margin-top: 8px;

}

.card4:hover .go-corner {

margin-right: -12px;

}

.card4:hover .go-arrow {

opacity: 1;

}

.scroll{

/*background-color: #784B92;*/

width: 80%;

height: 40rem;

overflow-x: hidden;

overflow-y: auto;

text-align: center;

padding: 20px;

}

#container {

overflow:scroll;

} /* Vertical scrolling only */

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值