border-top-color

Establece el color del borde superior del objeto.

Sintaxis

{ border-top-color: sColor }

Valores posibles

sColor

Variante que especifica uno de los nombres de colores HTML o valores RGB predeterminados.

Esta propiedad no tiene un valor predeterminado y no se hereda.

Observaciones

Algunos exploradores no reconocen nombres de colores pero todos los exploradores deberían reconocer los valores de colores RGB y mostrarlos correctamente.

Ejemplos

En el siguiente ejemplo se usa la propiedad border-top-color para especificar el color del borde superior. Se utiliza una llamada a una hoja de estilo incrustada (global) para cambiar el color del borde superior de red a blue cuando se produzca un evento onmouseover :

<head>
<style>
    td { border-top-color: red; border-width: 0.5cm; border-style: groove; }
    .blue { border-top-color: blue; }
</style>
</head>
<body>
<table border >
<tr>
    <td onmouseover="this.className='blue '" onmouseout="this.className=''">
        <img src="sphere.jpg">
    </td>
</tr>
</table>

Información sobre estándares

Esta propiedad se define en la especificación Cascading Style Sheets (CSS), Level 2 (CSS2) (Hojas de estilos en cascada (CSS), nivel 2 (CSS2)) Ee371286.xtlink_newWindow(es-es,Expression.40).png.

Aplicable a

a, abbr, acronym, b, bdo, big, blockquote, body, button, caption, center, cite, code, custom, dd, defaults, del, dfn, div, dl, dt, em, embed, fieldset, font, form, frame, hn, hr, i, iframe, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, li, object, ol, p, q, s, span, sub, table, td, th, tt, u, ul, var, xmp

Vea también

Conceptos

border
border-top
border-color
Colores