Topic: Centering Vertical Text shouldn't be this difficult...CSS (Page 1 of 1) |
|
|---|---|
|
Paranoid (IV) Inmate From: Willaimsport, PA, US of A the hole i |
posted 09-11-2005 14:26
code: <ul id="sideNav"> <li><a href="#" class="unselected" onclick="initMenu(2,0)">Products & Services</a> <li><a href="#" class="unselected" onclick="initMenu(2,0)">Products & Services</a> <ul> <li><a href="#" class="subMenu selected" onclick="initMenu(2,0)"><div class="linkName">Engineering</div><div class="linkArrow">&187;</div></a></li> <li><a href="#" class="subMenu" onclick="initMenu(2,1)"><div class="linkName">Business Management</div></a></li> <li><a href="#" class="subMenu" onclick="initMenu(2,2)"><div class="linkName">Worldclass Software</div></a></li> <li><a href="#" class="subMenu" onclick="initMenu(2,3)"><div class="linkName">Networking</div></a></li> </ul> </li> </li> </ul>
code: #sideNav, #sideNav ul
{
padding: 0;
margin: 0;
list-style: none;
float : left;
width : 150px;
}
#sideNav li
{
position : relative;
float : left;
line-height : 1.25em;
width: 150px;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: orange;
background-image: url('./images/SideMenuDots.gif');
background-repeat: no-repeat;
background-position: bottom;
margin: 2px;
}
#sideNav li h5
{
font-size: 12pt;
font-weight: 800;
color: #000000;
background-color: white;
text-align: left;
}
#sideNav li a
{
width: 150px;
display : block;
color : black;
font-size: 10pt;
text-decoration : none;
padding: 0px;
text-align: left;
}
#sideNav li a.selected
{
/*color: #0066CC;*/
}
#sideNav div.linkArrow
{
display: inline;
vertical-align: middle;
color: #CC3300;
background-color: red;
height: 40px;
text-align: right;
}
#sideNav div.linkName
{
display: block;
vertical-align: middle;
background-color: green;
margin-left: 5px;
}
|
|
Paranoid (IV) Inmate From: Florida |
posted 09-11-2005 19:53
code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
margin: 0;
padding: 8px;
}
#nav,
#nav
ul {
list-style: none;
margin: 0;
padding: 0;
}
#nav {
font: bold small arial, sans-serif;
border-bottom: 2px dotted #dcdcdc;
}
#nav
li {
display: inline;
}
#nav
a {
text-decoration: none;
color: black;
line-height: 3em;
display: block;
}
#nav
ul
a {
border-top: 2px dotted #dcdcdc;
}
</style>
</head>
<body>
<ul id="nav">
<li>
<big>
<a href="#products/"
>Products & Services</a>
</big>
<ul>
<li>
<a href="#engineering/"
>Engineering</a>
</li>
<li>
<a href="#business/"
>Business Management</a>
</li>
<li>
<a href="#worldclass/"
>Worldclass Software</a>
</li>
<li>
<a href="#networking/"
>Networking</a>
</li>
</ul>
</li>
</ul>
</body>
</html>
|
|
Paranoid (IV) Inmate From: Willaimsport, PA, US of A the hole i |
posted 09-11-2005 23:29
reisio, thank you for the help, but you seem to have left out the part that I am having a problem with. |
|
Maniac (V) Inmate From: under the bed |
posted 09-12-2005 00:11
quote:
|
|
Paranoid (IV) Inmate From: Willaimsport, PA, US of A the hole i |
posted 09-12-2005 00:45
Sorry DL, I wasn't clear, |
|
Paranoid (IV) Inmate From: Florida |
posted 09-12-2005 01:08
text-align: right; or float: right; or position: absolute; right: 0; - pick one |
|
Maniac (V) Inmate From: under the bed |
posted 09-12-2005 18:08
updated: http://www.in-dented.com/temp/mask.html |
|
Paranoid (IV) Inmate From: Willaimsport, PA, US of A the hole i |
posted 09-12-2005 18:17
Hey thanks you two! |