D
derefed
I'm trying to design a website that'll have a lot of image galleries,
and I've run into a problem.
For the past month or so I've been trying to find a way to display a
bunch of thumbnails on a page with variable width captions side-by-side.
However, as I couldn't get them to work as intended (when the browser is
shrunk the floats crowd together improperly), I decided to find another
approach.
I thought of making the captions run off to the right of the thumbnails,
and so I now have a container to hold the image and the caption, and
to make the text run to the right, I have the image floated to the left.
And of course, to place the next image underneath the last, I have the
containers set to clear: both.
However, I discovered something wrong with this setup: the containers,
which are inside a body/content container, are also clearing the navbar,
which is floated left and outside of the body/content container.
So basically my question is this: how can you set up _anything_ that
needs to clear floats within a content section without also clearing
things such as navbars that are floating off to the side? Knowing how
CSS works, I would think that there is no way to do that ... so my
question is more from the standpoint of "how are you supposed to get the
kind of layout you want?".
Some of this explanation might be a little cryptic... I'll elaborate
more if needed.
Thanks in advance,
derefed
and I've run into a problem.
For the past month or so I've been trying to find a way to display a
bunch of thumbnails on a page with variable width captions side-by-side.
However, as I couldn't get them to work as intended (when the browser is
shrunk the floats crowd together improperly), I decided to find another
approach.
I thought of making the captions run off to the right of the thumbnails,
and so I now have a container to hold the image and the caption, and
to make the text run to the right, I have the image floated to the left.
And of course, to place the next image underneath the last, I have the
containers set to clear: both.
However, I discovered something wrong with this setup: the containers,
which are inside a body/content container, are also clearing the navbar,
which is floated left and outside of the body/content container.
So basically my question is this: how can you set up _anything_ that
needs to clear floats within a content section without also clearing
things such as navbars that are floating off to the side? Knowing how
CSS works, I would think that there is no way to do that ... so my
question is more from the standpoint of "how are you supposed to get the
kind of layout you want?".
Some of this explanation might be a little cryptic... I'll elaborate
more if needed.
Thanks in advance,
derefed