Medwatch Screen 3 - Revised Slider
by sk8wt
HTML
<div class="top-bar">
<div class="nav-list">
Medwatch
</div>
</div>
<div class="container">
<div class="fda">
The FDA Safety Information and Adverse Event Reporting Program for Prescription and Over-the-Counter Medications.
</div>
<div class="detailed-info">
Find detailed information on thosands of drugs in our database including drug specs, common reactions, recent issue reports and more.
</div>
<div class="med-question">
Question 3 (of 5): What symptoms are you having that you think might be related to your medication or medications?
</div>
<div id="severity">
Slide for severity of symptom.
</div>
<div class="symptom-box">
<div id="symptoms">
<div class="enter-text">
<input type="text" name="symptom" placeholder="Enter first/worst symptom here" size=30>
</div>
<div class="enter-text">
<input type="text" name="symptom" placeholder="Enter second symptom here" size=30>
</div>
<div class="enter-text">
<input type="text" name="symptom" placeholder="Enter third symptom here" size=30>
</div>
</div>
<div id="slider-box">
<div>
<input type="range" name="weight" class="slider" min="1" max="3" value="1">
</div>
<div class="slider-text">
<div>
Mild
</div>
<div>
Moderate
</div>
<div>
Severe
</div>
</div>
<div>
<input type="range" name="weight" class="slider" min="1" max="3" value="1">
<span class="slider_label"></span>
</div>
<div class="slider-text">
<div>
Mild
</div>
<div>
Moderate
</div>
<div>
Severe
</div>
</div>
<div id="sliders">
<input type="range" name="weight" class="slider" min="1" max="3" value="1">
<span class="slider_label"></span>
</div>
<div class="slider-text">
<div>
...
CSS
.top-bar,
.nav-list {
font-family: Proxima Nova, helvetica neue, helvetica, sans-serif;
font-weight: bold;
font-size: 150%;
color: #ffffff;
}
.top-bar {
color: #FFFFFF;
height: 40px;
margin-left: 10px;
}
.nav-list {
list-style-type: none;
padding: 0;
display: inline;
color: #20639B;
}
.container {
padding: 10px;
}
.fda {
margin-bottom: 5%;
font-size: 90%;
}
.detailed-info {
margin-bottom: 5%;
}
.med-question {
font-size: 120%;
font-weight: bold;
}
.symptom-box {
display: grid;
grid-template-columns: auto auto;
}
.slider-box {
display: grid;
}
#severity {
float: center;
margin-right: auto;
padding: 10px;
}
.enter-text {
padding: 30px;
}
.slider {
padding: 25px;
width: 200px;
}
.slider-text {
display: grid;
grid-template-columns: auto auto auto;
}
.button {
background-color: #e7e7e7;
color: black;
border: none;
padding: 15px 20px;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
float: right;
}