Log in

View Full Version : simple gallery how to aline central



Travlast
03-06-2013, 09:22 AM
Hi,

I still don't seem to be able to find where to adjust the aliment to make it central? I have tried a few things but unsuccessfully!! Please help with I'm sure this simlpe task.

I tried change this and the paddings (but this is for text of title's and not the box I guessing?: text-align: left;
padding: 2px 5px;

Thanks, P.S code bellow:http://www.globalglam.co.uk/GallerySider1.php

<style type="text/css">

/*Make sure your page contains a valid doctype at the top*/
#simplegallery1{ //CSS for Simple Gallery Example 1
position: relative; /*keep this intact*/
visibility: hidden; /*keep this intact*/
border: 10px solid darkred;
}

#simplegallery1 .gallerydesctext{ //CSS for description DIV of Example 1 (if defined)
text-align: left;
padding: 2px 5px;
}

</style>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>

<style type="text/css">

/*Make sure your page contains a valid doctype at the top*/
#simplegallery1{ //CSS for Simple Gallery Example 1
position: relative; /*keep this intact*/
visibility: hidden; /*keep this intact*/
border: 3px solid;
border-top-color: #666666;
border-right-color: #999999;
border-bottom-color: #666666;
border-left-color: #999999;
}

#simplegallery1 .gallerydesctext{ //CSS for description DIV of Example 1 (if defined)
text-align: left;
padding: 2px 5px;
}

</style>

<script type="text/javascript" src="simplegallery.js">

/***********************************************
* Simple Controls Gallery- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>

<script type="text/javascript">

var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [800, 533], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [

Beverleyh
03-06-2013, 10:56 AM
The solution was here: http://www.dynamicdrive.com/forums/showthread.php?72994-I-need-icons-for-Simple-Controls-Gallery-v1-4&p=291095#post291095

See the second code snippet from that post.

Travlast
03-06-2013, 01:49 PM
Great got it thanks!