html - Why can't I change the size of my profile picture in my Sign In and Sign Up code? -


so have been coding sign in/ sign form. have no clue why profile-img not changing height or width!

here css:

.form-signin { max-width: 330px; padding: 15px; margin: 0 auto; } .form-signin .form-signin-heading, .form-signin .checkbox { margin-bottom: 10px; } .form-signin .checkbox { font-weight: normal; } .form-signin .form-control { position: relative; font-size: 16px; height: auto; padding: 10px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .form-signin .form-control:focus { z-index: 2; } .form-signin input[type="text"] { margin-bottom: -1px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .form-signin input[type="password"] { margin-bottom: 10px; border-top-left-radius: 0; border-top-right-radius: 0; } .account-wall { margin-top: 20px; padding: 40px 0px 20px 0px; background-color: #f7f7f7; -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); } .login-title { color: #555; font-size: 18px; font-weight: 400; display: block; } .profile-img { width: 96px; height: 96px; margin: 0 auto 10px; display: block; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; } .need-help { margin-top: 10px; } .new-account { display: block; margin-top: 10px; } 

and here html:

<html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <link rel="stylesheet" type="text/css" href="main.css"> </head> <body> <center>  <div class="container">  <div class="row">     <div class="col-sm-6 col-md-4 col-md-offset-4">         <font face="arial narrow"><h1 class="text-center login-title">hello</h1>         <div class="account-wall">             <img class="profile-img" src="butterfly.jpg"                 alt="">             <form class="form-signin" method="post" action="">             <div class="about"><font face="arial narrow"><input type="text" class="form-control" name="username" placeholder="username" required autofocus></div></font>             <div class="about"><font face="arial narrow"><input type="password" class="form-control" name="password" placeholder="password" required></div></font>             <div class="about"><button class="btn btn-lg btn-primary btn-block" type="submit">                 <font face="arial narrow">sign in</button></div></font>                 <br>                 <div class="about">             <label class="checkbox">                 <input type="checkbox" value="remember-me">                 <font face="arial narrow">remember me</font>             </label>             </div>             </form>         </div>         <a href="mokhasignup.php" class="text-center new-account about">    <font color="black">become member! click here!</font> </a></font>     </div> </div> </div> </center> </body> 

i have no idea doing wrong. when add height , width, , change numbers, stays same.

what should do? no matter how many times change height , width won't change. if remove picture, result same. same size error saying no image available. missing? display image how looks, don't have enough reputation.

its working me, here fiddle https://jsfiddle.net/049lj4ll/8/

i changed size 96x96 200x200

.profile-img { width: 200px; height: 200px; margin: 0 auto 10px; display: block; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; } 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -