.outSideDiv{ position: relative; text-align: left; width: 100%; .bgimage{ height: auto; overflow: auto; z-index: 1; } .inSideItem{ position: absolute; cursor: move; z-index: 10; // color: #000; user-select: none; // padding-left: 10px; // padding-right: 10px; // font-size: 14px; // line-height: 28px; border: 1px solid gray; // background-color: #CCC; } } .outSideDivPrint{ position: relative; width: auto; //margin-bottom: 10px; page-break-after: always; .bgimagePrint{ height: auto; overflow: auto; z-index: 1; } .inSideItemPrint{ position: absolute; z-index: 10; padding-left: 10px; padding-right: 10px; font-weight: bold; } }