add profile picture to a form in html and css

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="profile-container">
   <image id="profileImage" src="http://lorempixel.com/100/100" />
</div>
<input id="imageUpload" type="file" 
       name="profile_photo" placeholder="Photo" required="" capture>

4.2
5
Steel 115 points

                                    #imageUpload
{
    display: none;
}

#profileImage
{
    cursor: pointer;
}

#profile-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
}

#profile-container img {
    width: 150px;
    height: 150px;
}

4.2 (5 Votes)
0
3.83
6

                                    &lt;div class=&quot;signup-w3ls&quot;&gt;
    &lt;div class=&quot;signup-agile1&quot;&gt;
        &lt;form action=&quot;#&quot; method=&quot;post&quot;&gt;
        
            &lt;div class=&quot;form-control&quot;&gt;
                &lt;label class=&quot;header&quot;&gt;Profile Photo:&lt;/label&gt;
                
                &lt;input id=&quot;image&quot; type=&quot;file&quot; name=&quot;profile_photo&quot; placeholder=&quot;Photo&quot; required=&quot;&quot; capture&gt;
            &lt;/div&gt;
            
            &lt;div class=&quot;form-control&quot;&gt;
                &lt;label class=&quot;header&quot;&gt;Store Name :&lt;/label&gt;
                &lt;input type=&quot;text&quot; id=&quot;store_name&quot; name=&quot;store_name&quot; placeholder=&quot;Store Name&quot; title=&quot;Please enter your First Name&quot; required=&quot;&quot;&gt;
            &lt;/div&gt;
            
            &lt;div class=&quot;form-control&quot;&gt;
                &lt;label class=&quot;header&quot;&gt;Store Type :&lt;/label&gt;
                &lt;input type=&quot;text&quot; id=&quot;store_type&quot; name=&quot;store_type&quot; placeholder=&quot;Store Type&quot; title=&quot;Please enter your Last Name&quot; required=&quot;&quot;&gt;
            &lt;/div&gt;

            &lt;div class=&quot;form-control&quot;&gt;
                &lt;label class=&quot;header&quot;&gt;Owner Type :&lt;/label&gt;
                &lt;input type=&quot;text&quot; id=&quot;owner_type&quot; name=&quot;owner_type&quot; placeholder=&quot;Owner Type&quot; title=&quot;Please enter a valid email&quot; required=&quot;&quot;&gt;
            &lt;/div&gt;

            &lt;div class=&quot;form-control&quot;&gt;
                &lt;label class=&quot;header&quot;&gt;Website :&lt;/label&gt;
                &lt;input type=&quot;url&quot; id=&quot;website&quot; name=&quot;website&quot; placeholder=&quot;Website&quot; id=&quot;password1&quot; required=&quot;&quot;&gt;
            &lt;/div&gt;

            &lt;div class=&quot;form-control&quot;&gt;
                &lt;label class=&quot;header&quot;&gt;Contact Number :&lt;/label&gt;
                &lt;input type=&quot;text&quot; id=&quot;contact_number&quot; name=&quot;contact_number&quot; placeholder=&quot;Contact Number&quot; required=&quot;&quot;&gt;
            &lt;/div&gt;

            &lt;div class=&quot;form-control&quot;&gt;
                &lt;label class=&quot;header&quot;&gt;Contact Email :&lt;/label&gt;
                &lt;input type=&quot;email&quot; id=&quot;contact_email&quot; name=&quot;contact_email&quot; placeholder=&quot;Contact Email&quot; required=&quot;&quot;&gt;
            &lt;/div&gt;
            
            &lt;input type=&quot;submit&quot; class=&quot;register&quot; value=&quot;Register&quot;&gt;

        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;

3.83 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
profile image html css file upload input show image custom input for image upload image upload input html forms to add profile picture input field for upload image how to add profile picture in html form how to add image show image input file image upload input field using image what should be given in input tag to upload image input type image upload html how to upload image using input type file input type image upload show image how to get the image with input upload html profile image form upload image file input upload image input type file input tag upload image input file images profile photo upload images using links as input in html upload input with image how to upload image src input input type for uploading image input field for image upload how to add image upload input input type for image upload in html take a profile picture html css image input upload html display image uploaded with input upload picture with input type profile picture html css what happens when we upload an image in the file input field in html input upload image add a profile picture in form in html and css input file image to url image for upload image input input form with image upload option input form with image upload how to display upload images on input html input type file image input type image upload image upload style input add a profile image html css how to make input upload image nice html file upload input show image input field to upload img html upload image input upload image from user input upload image from input type file upload image using input type file input image upload custom input type file upload add image on it using html and css image upload type input input upload image show user information with profile pic html picture upload input type image for image upload button choose profile photo and display in html show filled profile form page in js upload profile picture bootstrap change profile picture html css upload profile photo design html css javascript profile picture upload center how to put a profile pic in html jquery uploading profile picture from device html download profile photo html code profile photo upload jquery profile photo jquery profile photo html javascript profile picture icon in form code profile picture icon in form in html profile form with profile pic in js image porofil html css profile image upload button with image web dev easiest way to upload profile pic profile image upload jquery how to add a profile picture on html and css profile pictures for html set in profile html code upload profile photo html css html user profile photo upload html account image add profile picture placeholder html src space for uploading image html how to make a edit profile page with profile picture in html profile page avatar design html css to set a profile photo in web application html code replica profile image in a form of a banner css html profile picture profile frame css profile upload in js coding how to update profile picture html profile image input how to add profile picture to a form with css js html add profile picture to a form in html and css profile picture upload html css How do I add a profile picture to HTML? upload profile image html upload profile picture html css upload profile picture in html how to make a place to show users profile pic in html profile image upload css css profile image upload profile photo upload in html add profile picture in html template upload profile picture html code profile image submition in form html html form profile pic html input file upload image for profile picture how did we make profile picture section html and css
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source