|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
align an image
Hello,
I'm trying to load an image and place it in the center of the page. -align'RIGHT' puts in the top right. -align'MIDDLE' doesn't seem to do anything. #!/usr/bin/perl #image.cgi use CGI; use strict; my $q = new CGI; print $q->header; print $q->start_html('images'); print $q-> img({-src=>'images/tiger.jpg', -align=>'CENTER', -border=>'0', -width=>'419', -height=>'98', -alt=>'Tiger'}); print $q->end_html; Thanks for your help, Paul |
|
#2
|
|||
|
|||
|
Well...
Theres always the traditional method...
print "<CENTER>" |
|
#3
|
|||
|
|||
|
Horizontal alignment: align=>left,right or center
Vertical alignment: valign=>top,middle or bottom Cheers, Bob |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > align an image |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|