0

I want to leave space among file input which has png browse image.

  <input type="text" id="file12" name="file12" size=18 maxlength=500> 
   <div class="upload_wrapper" style="float: left;" id="up0">
  <img src="image/browse.png" style="height:30%,width:40%;"/>
  <input  style="width: 100px;height:10px;" id="uploadbtn4" name="pic[]" type="file" class="upload" name="bfile12" onchange="CopyMe(this, \'file12\');"/>
  </div><br>

css code

 <style type="text/css">
 input[type='file'] {
 color: transparent;
 float: right;
 margin-right:23%;
 }
 </style>

This is working finely for button without image.image upload button is look like as screen shot.enter image description here

1
  • 2
    Can you explain exactly what the problem is? I don't really understand what you mean. Thanks Commented Jan 24, 2015 at 12:01

1 Answer 1

1

Firstly, you need to use semicolon instead of a comma while using multiple styling properties like style="height:30%,width:40%;" is wrong, should be style="height:30%;width:40%;"

Secondly, why don't you use margin in image itself?

<img src="image/browse.png" style="height:30%;width:40%;margin:0 23%;"/>

Finally, I would like to recommend you to use a class in the image and use styling there in your stylesheet:

<img src="image/browse.png" class="your_class" />

.your_class{
  height:30%;
  width:40%;
  margin: 0 23%;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.