Hello
I have a Web page that allows users to upload their files to a server.
I have the following TextBox (VB.NET):
:
Label2.Text = "Please upload your file(s)"
The CSS that adds style to Label2.Text is:
.upload
{
color:#05C6FC;
font-family:'Segoe UI','trebuchet ms', 'News Cycle', Helvetica;
font-size:1.1em;
margin-left:0;
margin-top:30px;
text-align:center;
position: Absolute;
}
When the 'Upload' button is clicked, I would like to replace that 'Please upload your file(s)' text (that is, to make it invisible) with a Progress Bar. The Progress Bar itself is in JavaScript (it shows the percentage of the file being uploaded), but is stylised in CSS as follows:
#numValue
{
color: #05C6FC;
font-family: 'Segoe UI','trebuchet ms', 'News Cycle', Helvetica;
font-size: 14px;
padding-top: 10px;
text-align: center;
}
#prog
{
color:#05C6FC;
margin-left:100px;
width:250px;
margin-left:auto;
margin-right:auto;
text-align:center;
}
p.progress
{
color: #05C6FC;
font-family: 'Segoe UI','trebuchet ms', 'News Cycle', Helvetica;
font-size: 14px;
padding-top: 25px;
text-align: center;
}
I am still working on positioning the bar in page but I just wondered if it is possible to do in CSS what I have indicated above? The Progress Bar would need to be invisible at all times until the 'Upload' button has been pressed; at all other times, the 'Please upload your file(s)' would be shown.
If it is possible to do that in CSS, I can post the rest of the code.
Thank you.