Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html input with icon right

<div class="input-icon-wrap">
  <span class="input-icon">
    <span class="fa fa-user"></span>
      
    </span>
  <input type="text" class="input-with-icon" id="form-name">
</div>  	


// css
.input-icon-wrap {
  border: 1px solid #ddd;    
  display: flex;
  flex-direction: row;
}

.input-icon {
  background: #ddd;
}

.input-with-icon {
  border: none;
  flex: 1;
}

.input-icon, .input-with-icon {
  padding: 10px;
}
Comment

PREVIOUS NEXT
Code Example
Html :: parse html with regex 
Html :: html add image from folder 
Html :: angularjs input checked conditional 
Html :: coloring and size of text in html 
Html :: how to add an html anchor 
Html :: clear form value after submit 
Html :: where we can store image in django project to so that t can work in html file 
Html :: social security number validate regex 
Html :: how to link a website in html 
Html :: html mobile app template 
Html :: html writing shortcuts 
Html :: checkbox group 
Html :: html input autocomplete=off not working 
Html :: a new tab attribute 
Html :: what is haml 
Html :: select required 
Html :: input type=number 01 
Html :: bootstrap hide row 
Html :: bootstrap tabs 
Html :: filled input in form 
Html :: html info on hover 
Html :: git print commit tree html 
Html :: vue if echo class 
Html :: html email button 
Html :: how to increase font size in html 
Html :: Text displayed over an image 
Html :: svelte bind store to input 
Html :: font color html 
Html :: bootstrap css 
Html :: change button color in html 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =