It’s pretty easy, you just have to use type=”image” in your <input /> tag:
<input type=”image” src=”http://i.bnet.com/images/200806/btn-submit-CAST-182×24.gif” />
It’s pretty easy, you just have to use type=”image” in your <input /> tag:
<input type=”image” src=”http://i.bnet.com/images/200806/btn-submit-CAST-182×24.gif” />
It’s never good practice to use HTML elements as presentation elements, but sometimes you gotta use an <hr />.
color: #000;
background-color: #000;
height: 4px;
border: none;
Note that you have to specify the color and background color so it works in IE.
You can’t get very far with CSS unless you have some standard HTML. My favorite flavor of hypertext markup is XHTML 1.0 Transitional. Here is a fresh template:
<!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" xml:lang="en" lang="en">
<head>
<title>Blank XHTML 1 Transitional Page</title>
</head>
<body>
[…]
Many times, when you click on someone’s logo, you see that little dotted border around the image when you click it. I think it looks sloppy.
There is an easy CSS fix for this:
a { outline: none; }
Try it.
Kevin Cupp posted earlier about a way to style everything at once using the universal selector (*). That is not my method of choice though because:
It’s too general. I don’t think there should be a rule that applied to EVERY element. Especially margin and padding because those are modified all throughout the cascade.
It’s slower. The […]
The pre tag stands for preformatted text, but it acts differently in all browsers. Here is a snippet of code that should cover all bases:
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
[…]
What’s up with the <sup> tag? It’s a semantic way of marking up superscripts, but it acts funny in IE6 (are you surprised?).
You will notice here that the screenshot on the left looks a little cramped. Here is the fix:
sup {
text-align: vertical
}
If you want to move the number higher […]