css - How to make negative margin element responsive -
currently, have html structure
here current css code
@media screen , (max-width: 1000px) { #main-banner span{ left:55%; } #case_tagline{ width:100%; font-size:35px; margin-top:0; margin-bottom:-11%; padding-top:0; padding-bottom:0; padding:10px 20px 15px 15px; margin-top:-5.5%; margin-bottom:-5%; } #case_tagline span{ display:block; } #case_tagline span.big{ font-size:100%; } #case_study_slider{ margin:0px 0px 0px 0px !important; padding-top:0; padding-bottom:0; } #case_study_slider .ms-container{ width:100%; } #case_study_slider .empty_case{ height:0; padding-bottom:10%; width:100%; } #case_study_slider .ms-nav-prev{ top:127px; /*left:-35%;*/ } #case_study_slider .ms-nav-next{ top:127px; /*right:32%;*/ } section.projects_showcase{ width:100%; } #case_study_slider .projects_showcase figure{ padding:30px 7% 30px 6.33%; width:20%; /*margin-top:110px;*/ /*margin-top:14%;*/ } }
what want accomplish want move case tagline box top of empty div , want scale normal element responsively (the element want move outside image slider's html, have tried both absolute positioning , negative margin none of them can scale normal element on mobile screen, want case tagline textbox fill empty div , act normal element when scaling responsively). on css empty div .empty_case , case tagline textbox #case_tagline.
Comments
Post a Comment