CSS Style

Galli

Registered
Въпросът ми е как да направя бутона Browse да е черен със сив текст
като Upload?
Ето картинка: http://img133.imageshack.us/img133/4792/untitledjl2.jpg
Ето го и кода:
Код:
<html>
<head>
<style type="text/css">
.buttons { 
font-size: 12px; 
background-color: #000000; 
border: 0px solid #8f8f8f; 
color:#8f8f8f;
font-family: verdana;
width: 90px;
}
.text { 
font-size: 12px; 
background-color: #000000; 
border: 0px solid #8f8f8f; 
color:#8f8f8f;
font-family: verdana;
width: 200px;
}
</style>
</head> 
<body>

<form enctype="multipart/form-data" action="00.php" method="post">
<input name="uploaded" type="file" class="text"/><br/>
<input type="submit" value="Upload" class="buttons"/>
</form> 

</body>
</html>
 

DJCharge

Registered
Я виж това устройва ли те ;)

<html>
<head>
<style type="text/css">
input.hide
{
position:absolute;
left:-137px;
-moz-opacity:0 ;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;
cursor:hand;
}
input.black
{
font-family:verdana;
background-color:#000000;
color:#999999;
z-index:1;
width:75px;
height:20px;
font-size:11px;
cursor:hand;
}
</style>


<script type="text/javascript">
function buttonPush (buttonStatus)
{
if (buttonStatus == "depressed")
document.getElementById("pseudobutton").style.borderStyle = "inset";

else
document.getElementById("pseudobutton").style.borderStyle = "outset";
}
</script>
</head>

<body>
<form enctype="multipart/form-data" action="00.php" method="post">
<input name="uploaded" type="button" class="black" id="pseudobutton" value="Open File">
<input type="file" class="hide" id="openssme" onmousedown="buttonPush('depressed');" onmouseup="buttonPush('normal');" onmouseout="buttonPush('phased');">
<br>
<input type="submit" value="Upload" class="black"/>
</form>
</body>
</html>
 

Galli

Registered
Не, не искам това. Сега изчезна ето това:
http://img457.imageshack.us/img457/1347/untitledjl2av5.jpg
Сигурно с CSS няма да стане. :cry:
 

mute

Registered
<input type="submit" style="background:#000;color:#ccc" name="Upload" />

за brows бутона Бафиту беше дал ето този линк
http://dreamincode.net/forums/index.php?s=64d3cb761218d65e9cddc43b14a
 

Горе