finstah1
08-06-2007, 09:13 PM
I'm almost there but my text is wrapping below the images:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<style type="text/css">
.tabs {list-style:none; padding:15px 0; margin:4px 0; width:190px;}
.tabs li {display:block; margin:4px 0; border: 1px solid black;}
.tabs img { vertical-align: middle; }
.tabs li a {display:block; width:190px; height:76px; font:normal 12px verdanan; text-decoration:none; color:#000;}
.tabs li a:hover {color:#050;}
.tabs li a.selected, .tabs li a.selected:hover {color:#000; border-color:#fff;cursor:default;}
</style>
</head>
<body>
<ul class="tabs">
<li><a href="#"><img src="images/sas.jpg" alt="Student Account Services" /> Student<br />Account <br />Services</a></li>
<li><a href="#"><img src="images/procurement.jpg" alt="Procurement Services" /> Procurement<br />Services</a></li>
<li><a href="#"><img src="images/realestate.jpg" alt="Real Estate" /> Real<br />Estate</a></li>
<li><a href="#"><img src="images/riskmgmt.jpg" alt="Risk Management" /> Risk<br />Management</a></li>
</ul>
</body>
</html>
Does anyone know how to get the text to align in the middle vertically without it falling underneath the image?
Note: images are attached. Thanks for any help
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<style type="text/css">
.tabs {list-style:none; padding:15px 0; margin:4px 0; width:190px;}
.tabs li {display:block; margin:4px 0; border: 1px solid black;}
.tabs img { vertical-align: middle; }
.tabs li a {display:block; width:190px; height:76px; font:normal 12px verdanan; text-decoration:none; color:#000;}
.tabs li a:hover {color:#050;}
.tabs li a.selected, .tabs li a.selected:hover {color:#000; border-color:#fff;cursor:default;}
</style>
</head>
<body>
<ul class="tabs">
<li><a href="#"><img src="images/sas.jpg" alt="Student Account Services" /> Student<br />Account <br />Services</a></li>
<li><a href="#"><img src="images/procurement.jpg" alt="Procurement Services" /> Procurement<br />Services</a></li>
<li><a href="#"><img src="images/realestate.jpg" alt="Real Estate" /> Real<br />Estate</a></li>
<li><a href="#"><img src="images/riskmgmt.jpg" alt="Risk Management" /> Risk<br />Management</a></li>
</ul>
</body>
</html>
Does anyone know how to get the text to align in the middle vertically without it falling underneath the image?
Note: images are attached. Thanks for any help