How to hide Fileupload with simple span by using css

Tags: css

Problem :

I am using this file uploader But due to some reason Add Files button also show the file upload. I want to hide them like a link. Current look

I copied the same css which they use

 <span class="btn btn-success fileinput-button">
        <i class="glyphicon glyphicon-plus"></i>
        <span>Add files...</span>
        <input type="file" name="files[]" multiple>

.fileinput-button {
  position: relative;
  overflow: hidden;

 .btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.428571429;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;

input[type="file"] {
display: block;      

Solution :

Try with : visibility: hidden ;)

    CSS Howto..

    CSS - How to remove white

    How to center social buttons in bootstrap login page?

    Liferay: how to avoid rebuilding/redeploying CSS files

    How to make a footer stay on the bottom?

    CSS: On hover show and hide different div's at the same time? [duplicate]

    How to apply css class to a based on respective $value in a of that row in a repeat region

    How to load content in a “virtual window” like “LightBox”

    How to better write complex styles to an element via javascript?

    How to remove a element after animation?

    How to set a css class to table header cell

    How to show Bootstrap 3 popover scroll only when needed

    How to reset CSS3 *-transform: translate(…)?

    Bootstrap CSS How To: Create a ContentBox with a Title Bar

    How to hide text present inside search box?

    how can i center the text inside my css div circle

    How to download CSS file through JQuery

    How can I get rid of the the gap below absolutely positioned content?

    How to target CSS module classes after they are hashed?

    How to add a border-bottom similar to Yahoo! when you scroll the page?

    How to edit and see live CSS effect in IE8 like we see in Firefox > Web developer toolbar > Edit CSS function?

    the tab's content shows abnormal under IE7

    In the ordered sequence of words: “Word1, Word2, Word3”: how to have 1 and only 1 hyperlink on “Word1” & “Word3”? Thus, skip a word in a single link?

    Rails 4: how to identify and format links, hashtags and mentions in model attributes?

    How to define a set of CSS class names so Vim knows how to autocomplete

    How to show Only 4 slides in a row using Bxslider

    HOW TO check if an external (cross-domain) CSS file is loaded using Javascript

    How to style Repeater item background color ontap?

    How do I correct overlapping spacing error in CSS when it wraps text?

    How do negative margins in CSS work and why is (margin-top:-5 != margin-bottom:5)?

    How can I get divs inside a div to continue on a new row when the current row (screen horizontally) is full?