JSFiddle - React, Tailwind, and code Playground
HTML
<div id="share-something">
<form method="post" action="share.php">
<div id="share-top">
<textarea name="story"> share something.... </textarea>
</div>
<div id="share-bottom">
<button type="button" class="photo-button" onclick="document.getElementById('upload-field').click();"><p> Upload A Photo </p></button>
<div id="upload-wrap">
<input type="file" id="upload-field"/>
</div>
<select name="view">
<option> Public </option>
<option> Private </option>
</select>
</div>
</form>
</div>
CSS
#share-something {
padding: 10px 10px 10px 10px;
height: auto;
width: 580px;
border-bottom: 1px solid #ddd;
overflow: auto;
}
#share-something form {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
#share-top {
margin: 0px 0px 10px 0px;
height: 30px;
width: 580px;
}
#share-something textarea {
resize: none;
outline: none;
float: left;
padding: 5px 0px 0px 5px;
height: 30px;
width: 490px;
col: 10;
border: 1px solid #ddd;
border-radius: 4px 4px 4px 4px;
-webkit-box-shadow: #EEE 0px 3px 6px 0px inset;
font-family: calibri;
font-size: 16px;
color: #aaa;
}
.share-button {
cursor: pointer;
float: left;
margin: 0px 0px 0px 10px;
height: 30px;
width: 80px;
border: none;
border-radius: 4px 4px 4px 4px;
background-color: #608AB0;
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
}
.share-button p {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: calibri;
font-size: 16px;
color: #fff;
}
#share-bottom {
height: 30px;
width: 580px;
}
.photo-button {
cursor: pointer;
float: left;
margin: 0px 10px 0px 0px;
height: 30px;
width: 150px;
border: none;
border-radius: 4px 4px 4px 4px;
background-color: #608AB0;
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
}
.photo-button p {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: calibri;
font-size: 16px;
color: #fff;
}
#upload-wrap {
float: left;
height: 30px;
width: 200px;
display:none;
}
#share-bottom select {
outline: none;
height: 30px;
width: 100px;
border: 1px solid #ddd;
border-radius: 4px 4px 4px 4px;
font-family: calibri;
font-size: 16px;
color: #444;
}