web88js
22 Apr 2006, 07:00 PM
hello everyone:
I have a question rearding image alignment. I want to display the picutre at the center of the web page
I did two experiments.
a) first I try to use <p> tag to align the image it won't work
<p style = "text-align: center">
<!-- using link lead to picture display -->
<a href = "c:/local_sites/table_exer1/images/jeff.jpg" style = "text-align: center"> Jeff's Picture</a>
</p>
b) I tried to use table to align the image it won't work as well :(
<table align = center border = 10>
<tr>
<td>
<p style = "text-align: center">
<a href = "c:/local_sites/table_exer1/images/jeff.jpg"> Jeff's Picture</a>
</p>
<td>
</tr>
</table>
both a) and b) display image defalut to the left
Please give me some advises on how to make the image display at the center of the page.
I just want to use plain HTML code, no CSS. Thanks!
Jeff
4-22-06
I have a question rearding image alignment. I want to display the picutre at the center of the web page
I did two experiments.
a) first I try to use <p> tag to align the image it won't work
<p style = "text-align: center">
<!-- using link lead to picture display -->
<a href = "c:/local_sites/table_exer1/images/jeff.jpg" style = "text-align: center"> Jeff's Picture</a>
</p>
b) I tried to use table to align the image it won't work as well :(
<table align = center border = 10>
<tr>
<td>
<p style = "text-align: center">
<a href = "c:/local_sites/table_exer1/images/jeff.jpg"> Jeff's Picture</a>
</p>
<td>
</tr>
</table>
both a) and b) display image defalut to the left
Please give me some advises on how to make the image display at the center of the page.
I just want to use plain HTML code, no CSS. Thanks!
Jeff
4-22-06