Indexhibit

Login:

Created by:
Daniel Eatock &
Jeffery Vaska

Built with Indexhibit

set the image container width in horizontal exhibit format

 

Indexhibit version: 2.0
Thread is resolved.

lanourrice
FRANCE
1 year(s) ago
Permalink Post

Hello,
here is a page of the site i am building (trying to...) with indexhibit (lanourrice.fr/index.php/projects/bourges---chancellerie/) in horizontal exhibition format.
I custumized the position of the index and consequently the position of image and text (div.textor).
Now, I am woried with the img-container which is set for a maximum width smaller than the content I expect to show. It results that the last image is sent to the line below.
I try to assign an attribute { width : auto; } in base.css but it seems the exhibit format overwrite this. Then how can I menage to have all my images on one horizontal line whatever there is three four or five of them ?

Any help for this would be very gratefull !! Olivier

Vaska A
UNITED STATES
1 year(s) ago
Permalink Post

You can't set the width to auto because that would only be the width of the browser window or it's outlying div (assuming it had an explicit width).

There is no reason to change the setting - doing so means you are using it in a way not intended.

lanourrice
FRANCE
1 year(s) ago
Permalink Post

Thanks for your answer, and great work !

But still, here is precisely what I can't understand : I just styled margin and padding for #index and #textor in css and did not change settings in format.horizontal.php. (exept the text width)

My problem doesn't seem to come from a width limitation of #img.container, for it is always different from one exhibit to another when I check (firebug) in 'projets' section (lanourrice.fr/index.php/projects/parthenay---maison-de-lemploi/ for instance)

In fact it's always the last image which is sent below, whatever the number of image I charge and i can't figure out why. What could make it work differently from the previous padding and margin settings

arsondpi
GREECE
1 year(s) ago
Permalink Post

Hey - have you tried adjusting things from Admin->Formats->Horizontal/Options
;-)

lanourrice
FRANCE
1 year(s) ago
Permalink Post

yes i have tried that, but still have the same display with Admin->Formats->Horizontal/Options ...

Moreover I have inserted html code for the table in the upper part of the text block (#textor), and the adjustment option affect only the text in the lower part and not the code content... which I style with the css.

Is there anything to deal with the position atribute of #index ?? Well still investigating :-(

Best Answer!
lanourrice
FRANCE
1 year(s) ago
Permalink Post

ok problem resolved.

The fact to assign a margin to div.textor in the css was the origin of the wrong display (though i still can't explain why...)

in the configuration i was looking for (index in the middle, with text on left and images on right) i needed to enlarge div.textor untill the right border of the index, so the first div.separator and following images would place themselves and start beyond the index. I set that in format.horizontal.php line 118

Then to force the text in my html to keep in my table width (by default all text element in ndxzstudio text editor will follow the div.textor width in this format), i assign a style width to the tag

as follow

It maybe "du bricolage" but seems to work... (lanourrice.fr/index.php/projects/parthenay---maison-de-lemploi/)

thank you for your great job on indexhibit

Vaska A
UNITED STATES
1 year(s) ago
Permalink Post

Hey, that looks great!

lanourrice
FRANCE
1 year(s) ago
Permalink Post
  1. oups the code left... i meant <p style="width: 295px;"> </p>
 

This thread has been closed, thank you.