Centre slider image in header block

Permalink Browser Info Environment
New to concrete5 and addons. Would like to centre the image in the header block like shown in the demo with the wood background.
I have checked out the FAQ's and tried one but all that happened was the first slide started in the centre and then they moved to the LH side
This was the code I used in the slider view.php

timeout: '<?php echo $slideDelay ?>000',
before: centerImg
});

function centerImg() {
$('.powerSlide').css({left: '50%', marginLeft: -$(this).width()/2});

I like this slider so hope someone has a suggestion.

Type: Discussion
Status: New
Globetrotter101
View Replies:

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
Amiant Image Gallery (0.7.3.1), Awkward Slider (1.0.4), Example FAQ (1.2.0), Galleria image gallery (2.0), Image Slider (1.1), Login (1.1.1), Nivo Slider (2.0.1), Opt-In Free (0.9.12), Power Slider Lite (1.1.1), tcSlider (2.2.9), Vimeo Player (1.0.6), Whale Nivo Image Slider (1.2).

# concrete5 Overrides
blocks/autonav

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - Off

# Server Software
LiteSpeed

# Server API
litespeed

# PHP Version
5.3.29

# PHP Extensions
bcmath, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imap, ionCube Loader, json, ldap, libxml, litespeed, mbstring, mcrypt, mhash, mssql, mysql, mysqli, nps, odbc, openssl, pcre, PDO, pdo_dblib, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 180
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 50M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 50M
ldap.max_links - Unlimited
mssql.max_links - 1
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - 4096
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - 1
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - 5
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; Win64; x64; Trident/7.0; rv:11.0) like Gecko

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.