
June 17th, 2003, 07:00 PM
|
|
Contributing User
|
|
Join Date: Sep 2002
Location: Canberra, Australia
Posts: 348
  
Time spent in forums: 1 Day 34 m 44 sec
Reputation Power: 12
|
|
|
CSS - Text Transform
I have set up a simple A-Z list which runs
A | B | etc.... to | Z
I have them in lowercase, but on mouse over they change UPPERCASE with a background around them.
Problem Im having is that when changing to UPPERCASE they take up more or less width then the lowercase version.
This causes the A-Z text to step out to the right or left.
I have tried adding padding to the controlling class and I still can't get anywhere... Any ideas how to get around this..
CSS
//
/* I transform the text here cause Im lazy and I originally wrote the list in uppercase */
.azList {
text-transform: lowercase;
}
.azList a:link{
text-decoration: none;
text-transform: lowercase;
padding: 20px;
}
.azList a:visited{
text-decoration: none;
}
.azList a:hover{
text-decoration: underline;
text-transform: uppercase;
background-color: #99CC66;
}
HTML
//
<h1 class="azList"><a href="#a">A</a> | <a href="#b">B</a> | <a href="#c">C</a> | <a href="#d">D</a> | <a href="#e">E</a> | <a href="#f">F</a></h1>
|