I want to make the PrimeFaces fileload button smaller than the default, and I want to adjust the positions of the buttons. This is the xhtml file.
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title></title>
<style>
.ui-fileupload-buttonbar .ui-icon {
margin: 0px 0px 0px 0px !important;
padding: 0px 0px 0px 0px !important;
border: none;
visibility: hidden !important;
}
.ui-button-text-icon-left .ui-button-text {
font-size: 0.5em;
color: #339966;
}
/* Icon */
.ui-button-text-icon-left .ui-icon {
display: none;
}
.ui-fileupload {
margin: 0px 0px 0px 0px !important;
padding: 0px 0px 0px 0px !important;
display: inline-block;
border: none;
}
.ui-fileupload-content {
display: none;
}
</style>
</h:head>
<h:body>
<h:form>
<p:fileUpload fileUploadListener="#{fileUploadView.handleFileUpload}"
mode="advance" dragDropSupport="false" multiple="true"
update="messages" sizeLimit="100000" fileLimit="3"
allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
<p:growl id="messages" showDetail="true" />
</h:form>
</h:body>
</html>
My current button is attached. How to get rid of the outer layer of the box? And how to adjust the distance between "choose" and "upload"?