Created
October 17, 2020 08:19
-
-
Save notsonoobie/15a4a5e6b6997fe26755c6d62fb44f37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React JSX | |
<div className='posbtn'> | |
Password | |
<a className='text-absolute' href='/'>Reset</a> --------> The text is given position absolute | |
</div> | |
<Form.Control className='input-relative' type='text' /> --------> The input is given position relative | |
/* css | |
.input-relative{ | |
position: 'realtive'; | |
} | |
.text-absolute{ | |
position: 'absolute'; | |
right: 0; | |
top: -10px; ------------> Negative Spacing So that it can be placed at the top of the input box | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment