php - [Resloved]Font size won't grow big -
i have been trying make fonts size bigger in website. trying css,html , php not work. need big,i have tried coding in other website website won't work in website,am doing wrong or missing something?
here code trying add in
css
body { background-color: #d0e4fe; } h1 { color: orange; text-align: center; } p { font-family: "times new roman"; font-size: 2100; }
which works in other website not in my.
html
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>spelling bee 2015</title> <link rel="stylesheet" type="text/css" href="style.css"/> </head> <body> <?php $usernames = filter_input(input_get, "words"); switch($usernames){ case '1': echo "<p><center><fornt size='100'>spell prophylactic</p></center></fornt>"; break; case '2': echo "<b><center><fornt size='100'>spell irascible</b></center></fornt>"; } ?> </body>
the code above show words(which want make them big), comes field set below.
<center> <div class="popupboxcontent"> <form method="get" action="data.php"> <fieldset> <lable> enter number: </lable> <input type = "text" name = "words" value = ""/> <input type ="submit"> </input> </fieldset> </div> </center>
please tell me if doing wrong,thanks
first off:
font-size: 2100;
needs measurement, such em
, %
or px
, change to
font-size: 2100px;
which large font size!
next up:
echo "<p><center><fornt size='100'>spell prophylactic</p></center></fornt>";
you've spent font
wrong (there's no r
). change to:
echo "<p><center><font size='100'>spell prophylactic</p></center></font>";
finally:
it's not advisable use "font" - give p
element class, , change css
of class.
add css
code:
p.custom { text-align: center; font-size: 100px; }
and change p
tag to:
echo "<p class='custom'>spell prophylactic</p>";
Comments
Post a Comment