--- title: Input with prefix type: snippet tags: [interactivity,visual] cover: flower-portrait-4 dateModified: 2021-10-13T19:29:39+02:00 --- Creates an input with a visual, non-editable prefix. - Use `display: flex` to create a container element. - Remove the border and outline from the `` field. Apply them to the parent element instead to make it look like an input box. - Use the `:focus-within` pseudo-class selector to style the parent element accordingly, when the user interacts with the `` field. ```html