I have HTML code like: -
<!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" > <head> <title></title> <style type="text/css"> body { font-family:"Verdana",Arial,Helvetica,sans-serif; } .myfont { font-family:"Verdana",Arial,Helvetica,sans-serif; } </style> </head> <body> Hello <select> <option> Hello </option> </select> <select class="myfont"> <option> Hello </option> </select> </body> </html>
Why does the first "select" not inherit the "font family" from the specification for "body"?
If I need to change the font for "select", why do I need to copy the style?
html css stylesheet
Sabya
source share