asked on
select.list1
{
background-color: #D3D3D3;
}
ASKER
<select class = "list1" name = "Up_North">
<?php
//Iterate through Street File and populate drop down
$SqlString1 = "SELECT * FROM street_grid order by STREET desc";
$Street_Data = $conn->query($SqlString1);
while ($ROW = $Street_Data->fetch_array())
{
echo "<option value = \"";
echo $ROW['STREET'];
select.list1{
background-color: #D3D3D3;
}
select.list1 option{
color: #000; /* For text color */
}
ASKER
<select class = "list1" name = "Up_North">
<?php
//Iterate through Street File and populate drop down
$SqlString1 = "SELECT * FROM street_grid order by STREET desc";
$Street_Data = $conn->query($SqlString1);
while ($ROW = $Street_Data->fetch_array())
{
echo "<option value = \"";
echo $ROW['STREET'];
select.list1
{
background-color: #D3D3D3;
}
select.list1 option{
color: #000;
}
echo "<option value = \"";
echo $ROW['STREET'];
echo "\"";
ASKER
<!-- North -->
<td>
<div id="Body_Labels">
<p style="margin-bottom: 0px;">North:</p>
</div>
</td>
<td>
<select class = "list1" name = "Up_North">
<?php
//Iterate through Street File and populate drop down
$SqlString1 = "SELECT * FROM street_grid order by STREET desc";
$Street_Data = $conn->query($SqlString1);
while ($ROW = $Street_Data->fetch_array())
{
echo "<option value = \"";
echo $ROW['STREET'];
echo "\"";
if ($ROW['STREET'] == $Up_North)
{
echo " selected";
}
echo ">";
echo $ROW['STREET'];
echo "</option>";
}
?>
</select>
</td>
<!-- End North -->
ASKER
Cascading Style Sheets (CSS) is a language used for describing the look and formatting of a document written in a markup language. Usually used to change web pages and user interfaces written in HTML, it can also be applied to any kind of XML document. CSS is designed primarily to distinguish the content of a document from its presentation.
TRUSTED BY
Open in new window