center site

fjaes68 / 2012-09-12 14:56:40   

does anybody know how to center your site in 2.0, I did try with the code suggestions in the forum, on how to do it in the legacy version. it work with the content part, but not with exhibit format - and the menu stayed to the left also

thanks

arsondpi / 2012-09-12 16:19:18   

post your url address so we can be "of further assistance" (!!!)

fjaes68 / 2012-09-15 06:13:55   

Sorry I forgot, Here it is : formargument.dk

arsondpi / 2012-09-15 07:07:52   

This seems to do the trick:

  1. #index {
  2.     bottom: 0;
  3.     height: auto;
  4.     left: auto;
  5.     margin: auto;
  6.     overflow: auto;
  7.     position: absolute;
  8.     top: 0;
  9.     width: 270px;
  10. }
  11. #exhibit {
  12.     margin: 0 0 0 270px;
  13. }

Note that certain rules are there to override stuff set in base.css - also that the width of #index should be equal to the left margin of #exhibit (so they don't overlap)

fjaes68 / 2012-09-15 07:19:33   

thanks alot arsondpi, that did the trick

fjaes68 / 2012-09-15 09:43:47   

now I'm getting a problem with visual index (i guess), formargument.dk/index.php/test/ when I click on a picture the site jumps back into left align & the text in the menu gets centered. is there a way to configure the visual index or is the problem elsewhere -

fjaes68 / 2012-09-18 20:31:09   

can anybody help please, my site is centered except for the slideshow which is align to the left - I have look allover for a solution, but no luck. so the slideshow has some way of working around the style.css, but how.

formargument.dk/index.php/test/

btw the new indexhibit is great - thanks

vitaminico / 2012-09-19 10:13:54   

hi all! i use the posted code in my own website, nothing change. Still the same position.

uda.robertomarchesini.net/

why?

thank you!

arsondpi / 2012-09-19 13:12:20   

beacuse your site is in a frameset... don't know why did you do this but it is...

farber / 2012-09-19 16:03:46   

Did the same but no changes,
Please advice

arsondpi / 2012-09-19 20:59:15   

can you please post a url address of your site?

farber / 2012-09-19 21:30:06   

rdoeditions.com
Thanks for your valuable time

fjaes68 / 2012-09-20 06:25:11   

in addition to the code from arsondpi, you need to but this wrapper in your style.css, place it under body:

#wrapper {
    width: 960px;
    margin: 0 auto;
    text-align: left;
}

AND in your index.php you put this wrapper div, just under the line that says :

hope it works for you

fjaes68 / 2012-09-20 06:35:09   

sorry for this posting, I cant seem to get the line of code posted:

body class='{{object}} section-{{section_id}} exhibit-{{id}} format-{{format}}'
fjaes68 / 2012-09-20 06:42:37   

here is the wrapper, just put some tags around it < > and place it under ( body class='{{object}} section-{{section_id}} exhibit-{{id}} format-{{format}}' )

div id='wrapper'

arsondpi / 2012-09-20 06:53:07   

Use the <code>...</code> tags to include code in the forum (with no empty lines in between your code...)
:-)

fjaes68 / 2012-09-20 07:13:57   

:) thanks for cleaning up my mess, code tags from now on

farber / 2012-09-20 17:21:39   

Thanks guy
its working except for some sections:
menu stay wrapped in the margin on the left but in some section like publications the content goes far on the right side.

plus on the top of the page there's a strange code showing up

thanks again

fjaes68 / 2012-09-20 20:10:26   

hi faber

  1. in your index.php you are missing a < in front of body class='{{object}} section-{{section_id}} exhibit-{{id}} format-{{format}}'

vitaminico / 2012-09-24 09:32:11   

Sorry for the wrong short link, but it's not the reason.

lnx.studiosantarsiero.it/rob/indexhibit2/index.php/project/

Still not working.

Thank you!

fjaes68 / 2012-09-29 03:25:05   

formargument.dk/index.php/test/

my site is centred using the code in this thread except when in slideshow mode, I click on a picture the site jumps back into left align & the text in the menu gets centered.

Can anybody please help, thank you

kickassdonkey / 2012-12-06 17:50:46   

Hi,

Thanks for the threads guys. It's working great.

Could anyone assist me in getting my pre-nav image centred at the top whilst leaving the sections titles/menu on the left. I'm struggling to figure it out.

Any help would be much appreciated.

This thread has been closed, thank you.