I have been working on an app in ionic3. I have created a ion-footer with buttons. I need to pop out a middle button but ion-footer is hiding it like it has CSS overflow: hidden applied on it.
I want to make my ion-footer something like this:
but getting this:
What I'm trying is:
.middle-nav-icon {
color: $appRed;
border: $appRed 1px solid;
width: 55px;
height: 55px;
line-height: 55px;
border-radius: 50%;
background: #ffffff;
font-size: 30px;
margin-top: -50px;
margin-bottom: 7px;
}
You should use z-index
in your CSS. It define the importance (priority) of each div. If you put a big z-index
the div will be push up and appear in the top of the div's stack. You may consult the documentation .
Try something like this:
.middle-nav-icon {
color: $appRed;
border: $appRed 1px solid;
width: 55px;
height: 55px;
line-height: 55px;
border-radius: 50%;
background: #ffffff;
font-size: 30px;
margin-top: -50px;
margin-bottom: 7px;
z-index: 1;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.