<a class="btn btn-warning btn-xs" data-toggle="modal" data-target="#myModalSync">Sync</a>
=> how to hide html tag without using display: none or js, just using pure css
Asked
Active
Viewed 254 times
0

Đỗ Ngọc Sơn
- 1
- 2
2 Answers
1
You can hide any div using visibility CSS but it's stayed in same position and same same space then you need to simply use height 0 and width 0 when you visible that's div then you can resize the height width, Css is here, Hope it will help you
div{
visibility: hidden;
opacity: 0;
width: 0;
height: 0;
}

iqbal hossain
- 103
- 5
0
You could set the z-index to negative value so it's covered up by other content.

Ethan Brown
- 683
- 6
- 11
desc
,..., but i am getting error when using bootstrap modal, it doesn't let me open the modal when there is no Sync in the row, this happens when i use framework yii2 – Đỗ Ngọc Sơn Jun 21 '22 at 03:48