The following will center the text from left to right.
How do I center the text from left to right and top to bottom.
I would use padding but is there another way to do this.
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mozilla Firefox Start Page</title>
<style>
body {font-size: .75em; font-family:arial;margin:0;padding:0;}
ul,li {margin:0;padding:0;}
ul {}
li {margin-bottom: 2px;background-color: #CCCCCC; height: 50px;width: 200px; list-style: none;text-align: center;}
</style>
</head><body>
<div id="menu">
<ul>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
</ul>
</div>
</body></html>
How do I center the text from left to right and top to bottom.
I would use padding but is there another way to do this.
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mozilla Firefox Start Page</title>
<style>
body {font-size: .75em; font-family:arial;margin:0;padding:0;}
ul,li {margin:0;padding:0;}
ul {}
li {margin-bottom: 2px;background-color: #CCCCCC; height: 50px;width: 200px; list-style: none;text-align: center;}
</style>
</head><body>
<div id="menu">
<ul>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
<li>test1</li>
</ul>
</div>
</body></html>