Center the Navigation

Permalink Browser Info Environment
Hi!
What a joy to work with your beautiful simple theme in 5.6! I've been mucking about in "Elemental" (5.7) and I can tell you that's like swimming through tar.

To the point. My client has only 4 main menu items (Home/Services/Company/Contact) and I would like to center the nav in the black bar. (soon to be grey bar!) Can you give me any insight as to how I could achieve this? I am a bit concerned about the mobile aspect. The nav bar can stay the same width.

you can take a look here:
http://stagingseydoux2.ch/
but I am working on it so don't get scared!

Any help is welcome.
Cheers
Arlene

Type: Pre-Sale
Status: In Progress
arlenesey
View Replies:
madesimplemedia replied on at Permalink Reply
madesimplemedia
Hi
Thanks for purchasing the theme, glad you are enjoying it!

So on screen.css in the theme I have changed the list item styles on line 124:

.site div#nav ul li {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
display: inline-block;
float: none;
list-style: outside none none;
margin: 0;
padding: 0;
position: relative;
z-index: 8;
}

Specifically, I removed the float: left and changed display: block to inline-block.
This seems to work fine when I try it on your site in Firebug, please let me know if it works ok when you apply it to the theme! :)

Thanks

Dave
arlenesey replied on at Permalink Reply
arlenesey
This seems to be working fine - thank you!

I also adjusted the margin further down by Tablet Main Nav from "0 0 0 37px" to "0 30px"
Hasn't broken it yet...
/*   Tablet (Portrait) 768px
***********************************************************************************************************************/
@media only screen and (min-width: 768px) and (max-width: 959px) {
    body:after {content: "768 to 959px Tablet Portrait";}
   .site div.container {width: 768px}
   /* Main Nav */
   .site div#nav ul li a {margin: 0 30px; font-size: 16px;}
   .site div#nav ul ul {margin: 0 0 0 28px}

concrete5 Environment Information

# concrete5 Version
5.6.3.2

# concrete5 Packages
Automatic Email Obfuscator (1.2.3), Street Theme (1.0.1).

# concrete5 Overrides
languages/el_GR, languages/nb_NO, languages/sv_SE, languages/it_IT, languages/fa_IR, languages/fr_FR, languages/es_MX, languages/ru_RU, languages/de_DE, languages/ja_JP, languages/es_AR, languages/pt_PT, languages/ro_RO, languages/es_ES, languages/vi_VN, languages/nl_NL, languages/tr_TR, languages/fi_FI, languages/sl_SI, languages/zh_TW, languages/cs_CZ, languages/sk_SK, languages/ar, languages/es_PE, languages/da_DK, themes/schneebeli

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

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.32

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 512M
sql.safe_mode - Off
upload_max_filesize - 512M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36

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.