Tim said:
and use > > > some HTML5 element.dataset fields to store the data I
a > > horizontally styled list, a row of list items in a UL.
a bit > of border style using inset/outset so they look pressed (or
not). As > long as I can do that with a list it might even be easier
than <div>s, > which when floated tend to have minds of their own.
Horizontal lists are not too hard to style and they behave pretty
well. And you can get pressed looks and all sorts of things. Not sure
they are *easier* than floated DIVs but I would be inclined to use
them instead, it is something that is more regularly done (in
navigation bars) and so there would be a lot more examples.
Righto - thanks - more research to do then.
[/QUOTE]
Didn't we discuss "buttonized" links recently in another thread. I
remember doing a mockup without a table, it was vertical:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Use CSS</title>
<style type="text/css">
div#nav {
width: 11em; float: left; font-family: sans-serif;
}
/* smaller subtext */
div#nav a span { font-size: .7em; }
div#nav a {
text-decoration: none; display: block; margin: 5px;
padding: .5em; text-align: center;
/* one liner added beveled borders! */
border: 3px outset #1c508c;
}
/* you can add a CSS3 rule non-supporting browsers will ignore */
div#nav a { text-shadow: 2px 2px 2px #000; }
div#nav a:link, div#nav a:visited {
color: #ffffff; background: #1c508c;
}
div#nav a:hover, div#nav a:focus {
border-width: 2px 4px 4px 2px ;
color: #ffff00; background: #7c9ec4;
}
div#nav a:active {
border-width: 4px 2px 2px 4px;
border-style: inset;
color: #ff0000; background: #3c4e64;
}
</style>
</head>
<body>
<div id="nav">
<a href="#nav">Home</a>
<a href="#nav">Race Results <span>(presented by Runners Den)</span></a>
<a href="#nav">Even Calendar/<br>Online Registration</a>
<a href="#nav">Results Questions<br>Or Problems</a>
<a href="#nav">Timing Services</a>
<a href="#nav">About Us</a>
<a href="#nav">Contact Us</a>
</div>
<p>The rest of your page....</p>
</body>
</html>
But you can make it horizontal easily:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Use CSS</title>
<style type="text/css">
div#nav {
font-family: sans-serif;
}
/* smaller subtext */
div#nav a span { font-size: .7em; }
div#nav a {
text-decoration: none; display: inline-block; margin: 5px;
padding: .5em; text-align: center;
/* set a static width if you wish */
width: 11em;
/* one liner added beveled borders! */
border: 3px outset #1c508c;
}
/* you can add a CSS3 rule non-supporting browsers will ignore */
div#nav a { text-shadow: 2px 2px 2px #000; }
div#nav a:link, div#nav a:visited {
color: #ffffff; background: #1c508c;
}
div#nav a:hover, div#nav a:focus {
border-width: 2px 4px 4px 2px ;
color: #ffff00; background: #7c9ec4;
}
div#nav a:active {
border-width: 4px 2px 2px 4px;
border-style: inset;
color: #ff0000; background: #3c4e64;
}
</style>
</head>
<body>
<div id="nav">
<a href="#nav">Home</a>
<a href="#nav">Race Results <span>(presented by Runners Den)</span></a>
<a href="#nav">Even Calendar/<br>Online Registration</a>
<a href="#nav">Results Questions<br>Or Problems</a>
<a href="#nav">Timing Services</a>
<a href="#nav">About Us</a>
<a href="#nav">Contact Us</a>
</div>
<p>The rest of your page....</p>
</body>
</html>
And maybe further refinements to make the buttons all the same height:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Use CSS</title>
<style type="text/css">
div#nav {
font-family: sans-serif;
}
/* smaller subtext */
div#nav a span { font-size: .7em; }
div#nav a {
text-decoration: none; display: inline-block; margin: 5px;
padding: .5em; text-align: center;
/* set a static width and height if you wish */
width: 11em; height: 3em; vertical-align: bottom;
/* one liner added beveled borders! */
border: 3px outset #1c508c;
}
/* you can add a CSS3 rule non-supporting browsers will ignore */
div#nav a { text-shadow: 2px 2px 2px #000; }
div#nav a:link, div#nav a:visited {
color: #ffffff; background: #1c508c;
}
div#nav a:hover, div#nav a:focus {
border-width: 2px 4px 4px 2px ;
color: #ffff00; background: #7c9ec4;
}
div#nav a:active {
border-width: 4px 2px 2px 4px;
border-style: inset;
color: #ff0000; background: #3c4e64;
}
</style>
</head>
<body>
<div id="nav">
<a href="#nav">Home</a>
<a href="#nav">Race Results <span>(presented by Runners Den)</span></a>
<a href="#nav">Even Calendar/<br>Online Registration</a>
<a href="#nav">Results Questions<br>Or Problems</a>
<a href="#nav">Timing Services</a>
<a href="#nav">About Us</a>
<a href="#nav">Contact Us</a>
</div>
<p>The rest of your page....</p>
</body>
</html>