Thread: Html Question
View Single Post
Old 30-01-2006, 11:08 AM   #2
Reup
10 GOSUB Abandonia
20 GOTO 10
 
Reup's Avatar

 
Join Date: Dec 2004
Location: Eindhoven, Netherlands
Posts: 1,508
Default

Use css!

Code:
<html>
<head>
<style type="text/css">
img.middle {vertical-align:middle}
</style>
</head>

<body>
<p>
This is an 
<img class="top" border="0" 
src="logocss.gif" width="95" height="84" />
inside a paragraph with centered text.
</p>

</body></html>
Check out:
this example. If you change the code to the stuff above, you'll see the text aligned to the center of the image (or rather: the image is aligned to the text with its center).
Reup is offline                         Send a private message to Reup
Reply With Quote