Tagged: x
-
AuthorPosts
-
January 29, 2017 at 9:07 am #1349590
thaiunderdogParticipantI’ve used this code for putting floating element in center position between 2 content band
#crown .x-column {
position: absolute;
background-color: transparent !important;
padding: 100px !important;
top: -180px;
z-index: 1000;
max-width: 650px;
left: 25.95%;
height: 500px;
}btw left: 25.95%; is only worked on my laptop screen. Any idea to make it stay center between 2 content band on all screen sizes ?
January 29, 2017 at 11:14 am #1349710
RupokMemberHi there,
Thanks for writing in! Absolute positioning is never responsive for all devices. If you can provide your URL and a screenshot of what you are trying to achieve then we might be able to give you some suggestion.
Cheers!
January 29, 2017 at 7:42 pm #1350128
thaiunderdogParticipantSorry for late reply, here is my site url : http://nsm1.com
and “Choose your own king” image in the center is the floating element
January 29, 2017 at 11:09 pm #1350264
RupokMemberHi there,
Thanks for writing back. Let’s update your code to following :
#crown .x-column { position: absolute; background-color: transparent !important; padding: 100px !important; top: -180px; z-index: 1000; max-width: 650px; left: calc(50% - 325px); height: 500px; }Hope this helps.
January 30, 2017 at 12:22 am #1350319
thaiunderdogParticipantThanks for your support. Btw I just find easier method by changing floating element to section’s background image.
January 30, 2017 at 12:35 am #1350329
LelyModeratorYou’re welcome!
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1349590 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
