CSS problem

When I show a text before / after a gallery , the “float: left” cause a problem, that the

<div class=”ngg-galleryoverview”>

container , didn’t work as block element, strange…

This is a text after the gallery thumbnails

Update : With width: 100%; it worked now under IE7, but not under FF…

Update 2 : Now when I use clear:both for the navigations its also ok, but is this the solution ?

Div-Firebug

7 Responses to “CSS problem”

  1. Rod Says:

    There is a hack.

    .ngg-galleryoverview:after { content: “.”; display: block; height: 0; clear: both; visibility: hidden; }
    /* Hides from IE-mac \*/ * html .ngg-galleryoverview {height: 1%;} .ngg-galleryoverview { display: block; } /* End hide from IE-mac */

    It will solve the problem :)

  2. Rod Says:

    There is a hack.


    .ngg-galleryoverview:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
    /* Hides from IE-mac \*/ * html .ngg-galleryoverview {height: 1%;} .ngg-galleryoverview { display: block; } /* End hide from IE-mac */

    It will solve the problem :)

  3. alex.rabe Says:

    Thanks Rod,

    I really need such help ! I will check it this evening

  4. Rod Says:

    Visit this too :)
    http://www.dynamicdrive.com/dynamicindex4/photoalbum.htm

    although not Jquery, the system is for me “the good” way for next gen galleries.

  5. alex.rabe Says:

    Thanks Rod, I know this and start to play with it…

    You are invited to support me : Provide me this as jQuery script with the addition function of Thickbox support, this would be very very helpful !

    Have a nice weekend

  6. Rod Says:

    In this case too, Thickbox was perfect until … “tweenbox” :) same thing, but faster. And whynot imagine using too http://www.camera-lucida.info/portfoliomodeles/index.html : a cool way to see pics, too … there are so many ideas… but the first thing to “think” is using the powerful of wrapping of Jquery, replacing html elements by others. Creating in this way very easy understanding customisation for final user (actually this is the problem number 1)

  7. Joern Says:

    As I wrote you in my eMail already:
    Just add property ‘overflow: hidden;’ to ‘.ngg-galleryoverview’. You don’t need display: block etc.

    (This works when the parent container has a width value. If you want to be sure, that even themes wich do not have a width value for their content work, just add another container surrounding ‘.ngg-galleryoverview’ and give it the property width: 100%;

Leave a Reply

You must be logged in to post a comment.