LordGarfield
IS-IT--Management
hi,
I'm trying to create some squares with text in it. the text should be aligned in the center of the square.
the squares are links to difrent pages.
this is my CSS for one of the squares.
a.vz
{
position:absolute;
top:50%;
left:50%;
margin-left: 230px;
margin-top: 22;
BORDER-TOP: 1px solid #000000;
BORDER-BOTTOM: 1px solid #000000;
BORDER-LEFT: 1px solid #000000;
BORDER-RIGHT: 1px solid #000000;
background: #004990;
text-align: center;
color: #FFFFFF;
font-weight: bold;
width:150;
height:150;
vertical-align: middle;
text-decoration: none;
}
the problem here is that the text is aligned at the top. not in the center. the horizontal align works fine but vertical it doesn't. Has anybody an idee howcome?
best regards
roel.
tank you,
(>" "<)
(='o'=)
-(,,)-(,,)-----
|LORD_GARFIELD|
---------------
I'm trying to create some squares with text in it. the text should be aligned in the center of the square.
the squares are links to difrent pages.
this is my CSS for one of the squares.
a.vz
{
position:absolute;
top:50%;
left:50%;
margin-left: 230px;
margin-top: 22;
BORDER-TOP: 1px solid #000000;
BORDER-BOTTOM: 1px solid #000000;
BORDER-LEFT: 1px solid #000000;
BORDER-RIGHT: 1px solid #000000;
background: #004990;
text-align: center;
color: #FFFFFF;
font-weight: bold;
width:150;
height:150;
vertical-align: middle;
text-decoration: none;
}
the problem here is that the text is aligned at the top. not in the center. the horizontal align works fine but vertical it doesn't. Has anybody an idee howcome?
best regards
roel.
tank you,
(>" "<)
(='o'=)
-(,,)-(,,)-----
|LORD_GARFIELD|
---------------