Skip to content

Instantly share code, notes, and snippets.

@notsonoobie
Created October 17, 2020 08:19
Show Gist options
  • Save notsonoobie/15a4a5e6b6997fe26755c6d62fb44f37 to your computer and use it in GitHub Desktop.
Save notsonoobie/15a4a5e6b6997fe26755c6d62fb44f37 to your computer and use it in GitHub Desktop.
// 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