Oldalak

Tuesday, April 22, 2014

Input BOX formázása CSS


A CSS stílus csak az inputra vonatkozik .


igen nem







<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Input box és Submit gomb formázása .</title>

<style>

input{
    background-color:#900; /* Input box hátér színe */
    color:#FFF; /* Betű színe*/
    text-align:center; /* Szöveg igazitás */
    font-size:24px; /* Betű mérete*/
    border-radius:25px; /* Box lekerekitése */
}

</style>


</head>

<body>
<center>
A CSS stílus csak az inputra vonatkozik .<br />
<input name="valami" size="50" value="hello" maxlength="5" /> <input type="submit" value="send" /><br />
<br />
<input type="checkbox" value="ez1" checked="checked" />igen <input type="checkbox" value="ez2" />nem<br />
<br />
<input type="button" value="ez egy sima gomb" /><br />
<br />
<input type="file" name="ez_egy_file" size="25" />
</center>
</body>
</html>

No comments:

Post a Comment