coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: trackman on February 21, 2007, 09:28:44 PM

Title: Search
Post by: trackman on February 21, 2007, 09:28:44 PM
I've recently added a search field to the main page but cannot get it to align center, here's the coding:

Quote
<!-- add search box -->

               <div>
   <form method="get" action="thumbnails.php" name="searchcpg">
   <input type="hidden" name="album" value="search">
   <input type="hidden" name="type" value="full">
   <input type="text" style="vertical-align: bottom" style="height: 16px" style="width: 250px" name="search" maxlength="400" value="" class="textinput">
   <input type="submit" style="height: 22px" value="Quick Search">
   </form>
            </div><!-- End search box -->

http://cdcoverhideout.com/gallery

Thanks ;D
Title: Re: Search
Post by: trackman on February 21, 2007, 09:38:02 PM
I've sorted it, I've added the following tag to the code <center></center>

<!-- add search box -->

Quote
               <div><center>
   <form method="get" action="thumbnails.php" name="searchcpg">
   <input type="hidden" name="album" value="search">
   <input type="hidden" name="type" value="full">
   <input type="text" style="vertical-align: bottom" style="height: 16px" style="width: 250px" name="search" maxlength="400" value="" class="textinput">
   <input type="submit" style="height: 22px" value="Quick Search">
   </form>
            </center></div><!-- End search box -->
Quote

With the tags in place the search box aligns in the center ;D