Floating Divs in Image Gallery not within Div

I am creating a property page template that is nested within the main website template. Within this template, I have created a div within a div for the Image Gallery I am going to create.There is a main image and then 5 thumbnails underneath and all of this is centered.
What seems to be occurring is that if I float all of my thumbnail divs "left" so that they are all on same line, then they are no longer within the Image Gallery div. If I take away the "float" attribute (as I did on thumbnail 1 for an example), it finally resides within the div, however, the other jump down to the next line below it...stacking one on top of the other.
I am getting so confused, though I have commented at the end of each div, but I am just not sure what is required here. Ran validator on Web Tools for both HTML and CSS, but I get nothing. Help!
Here is the link.
Thank you!
Samantha

Hi Samatha,
Try following:
Add a clear after your thumbnails as below:
<!--end infoImageThumb5--></div>
<br style="clear:both" />
And in your css add float left to all your thumbnails.
.profile #infoImageGallery #infoImageThumb1 {
    float: left;
    width: 95px;
    margin-right: 5px;
    height: 63px;
    background-color: #00F;
    margin-bottom: 5px;
.profile #infoImageGallery #infoImageThumb2 {
    float: left;
    width: 95px;
    margin-right: 5px;
    height: 63px;
    background-color: #00F;
.profile #infoImageGallery #infoImageThumb3 {
    float: left;
    width: 95px;
    margin-right: 5px;
    height: 63px;
    background-color: #00F
.profile #infoImageGallery #infoImageThumb4 {
    float: left;
    width: 95px;
    margin-right: 5px;
    height: 63px;
    background-color: #00F;
.profile #infoImageGallery #infoImageThumb5 {
    float: left;
    width: 95px;
    margin-right: 5px;
    height: 63px;
    background-color: #00F;
Regards,
Vinay

Similar Messages

  • Image gallery not removing previous image

    Hi,
    I have an image gallery but I can't seem to get the previous image removed. I have two functions:
    [AS]function clearLoader():void {
    try {
      var li:LoaderInfo = slideLoader.contentLoaderInfo;
      if(li.childAllowsParent && li.content is Bitmap){
       (li.content as Bitmap).bitmapData.dispose();
    } catch(e:*) {}
    }[/AS]
    And
    [AS]while(currentContainer.numChildren)
    var obj:DisplayObject =  currentContainer.getChildAt(0) as DisplayObject;
    if (obj is Bitmap) {
      Bitmap(obj).bitmapData.dispose();
      currentContainer.removeChild(obj);
    } else if (obj  is MovieClip) {
      currentContainer.removeChild(obj);
    }[/AS]
    But in some way not the previous image is removed, but the one before that. Annoying, because if image 1 is larger than image 2, image 1 stays on the background. It is only when loading image 3 the first image is removed from the stage. Any advice?
    Thanks!
    Dirk

    Hi,
    1. With the switchSlide() function:
    function switchSlide(intSlide:int):void {
     if(!Tweener.isTweening(currentContainer)) {
      if(slideTimer.running)
       slideTimer.stop();
      intCurrentSlide = intSlide;
      if(currentContainer == sprContainer2)
       currentContainer = sprContainer1;
      else
       currentContainer = sprContainer2;
      currentContainer.alpha = 0;
      mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
      clearLoader();
      slideLoader = new Loader();
      slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
      slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
      var  unesc_xmlSlideshow:XML = new XML(unescape(xmlSlideshow));
      slideLoader.load(new URLRequest(unesc_xmlSlideshow..image[intCurrentSlide].@src));
      mcInfo.lbl_description.text = unesc_xmlSlideshow..image[intCurrentSlide].@title;
      mcInfo.lbl_artist.text = unesc_xmlSlideshow..image[intCurrentSlide].@artist;
      strLink           = unesc_xmlSlideshow..image[intCurrentSlide].@link;
      strTarget          = unesc_xmlSlideshow..image[intCurrentSlide].@target;
      mcInfo.mcDescription.lbl_description.htmlText = unesc_xmlSlideshow..image[intCurrentSlide].@desc;
      mcInfo.lbl_count.text = " Slide " + (intCurrentSlide + 1) + " / " + intSlideCount2;
    /AS
    2. No images from other domains... just the ones on my webserver.

  • Thickbox image gallery not working.

    HI guys,
    Im creating an image gallery using the 'thickbox' widget. When I preview my page on a browser, and click the thumbnail image, nothing happens. It just loads the thickbox preloader bar, nothing else!
    I've followed online tutorials by the book! Heck, it even works on live vew in DW, but doesn't do anything on a browser!
    Can someone shed some light on this?

    marie_barnsley wrote:
    I've been through and sorted the majority of the errors, apart from 3 that are flagging up to do with the Fancybox.
    The 'rel' tag seems to be the issue and from reading online I've changed this to 'data' instead which seems to have fixed the errors.
    However, the fancybox gallery still isn't working.
    You must have the scripts linked up incorrectly.
    Replace ALL of your script links with the ones below (once it's confirmed it's working you can go directly to the pages, download the scripts and save them locally)
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="http://fancybox.net/js/fancybox-1.3.4/jquery.easing-1.3.pack.js"></script>
        <script type="text/javascript" src="http://fancybox.net/js/fancybox-1.3.4/jquery.fancybox-1.3.4.js"></script>
    <script type="text/javascript" src="http://fancybox.net/js/web.js?m=20100203"></script>
    Amend the <script> at the foot of the page to as below:
    <script type="text/javascript">
    /* Apply fancybox slideshow to 'group'*/
    $("a#group").fancybox({
    'transitionIn': 'elastic',
    'transitionOut': 'elastic',
    'speedIn': 600,
    'speedOut': 200,
    'overlayShow': false
    </script>
    Then give the anchor tags in the 3 images an id="group" as below:
    <a id="group" href="http://www.marieparkinson.co.uk/images/portfolio/full/harperoffice.jpg" title="Harper Office"><img src="http://www.marieparkinson.co.uk/images/portfolio/thumbs/harperthumb.jpg" alt="image 2"/></a>

  • FancyBox JQuery image gallery not working

    Hi all
    I'm working on a new portfolio site and I'm struggling to load the Fancybox.
    I've used it before and it worked fine but this time all that is happening is the images are opening in a new window once clicked.
    I'm also using another Javascript on my site and i'm wondering if i need to do something different, or if they are clashing?
    This is my code:
    <head>
    <script type="text/javascript" src="Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    <script type="text/javascript" src="Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="Styles/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
    </head>
    <div id="content">
      <div id="portfoliomain"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','Images/portfolioimages/latestwhite.jpg',1)"><img id="Image8" src="Images/portfolioimages/latest.jpg"></a></div>
    <div id="workbox1" class="fancybox">
    <a rel="group" href="Images/portfolioimages/mainwork/full/melissareed.jpg" title="Melissa Reed"><img src="Images/portfolioimages/mainwork/thumbs/melissareed.jpg" alt="image 1"/></a>
    <a rel="group" href="Images/portfolioimages/mainwork/full/harperoffice.jpg" title="Harper Office"><img src="Images/portfolioimages/mainwork/thumbs/harperthumb.jpg" alt="image 2"/></a>
    <a rel="group" href="Images/portfolioimages/mainwork/full/vowuserguide.jpg" title="Brochure"><img src="Images/portfolioimages/mainwork/thumbs/vowuserguidethumb.jpg" alt="image 3"/></a>
    </div>
    <script type="text/javascript">
    /* Apply fancybox slideshow to 'group'*/
    $("a.group").fancybox({
    'transitionIn'     :     'elastic',
    'transitionOut'     :     'elastic',
    'speedIn'          :     600,
    'speedOut'          :     200,
    'overlayShow'     :     false
    </script>
    </body>
    The CSS:
    #content {
              max-width: 960px;
              width: 100%;
              margin-left: 32px;
              padding-bottom: 310px;
    #portfoliomain {
      margin-top: 50px;
    #workbox1 {
              background-color: #CCC;
              width: 30%;
              height: 240px;
              border-right-width: 3%;
              border-right-style: solid;
              border-right-color: #FFF;
              float: left;
    The site is live but this code is still being worked on so it's not online yet. The site is www.marieparkinson.co.uk
    Thanks for any help,
    Marie

    marie_barnsley wrote:
    I've been through and sorted the majority of the errors, apart from 3 that are flagging up to do with the Fancybox.
    The 'rel' tag seems to be the issue and from reading online I've changed this to 'data' instead which seems to have fixed the errors.
    However, the fancybox gallery still isn't working.
    You must have the scripts linked up incorrectly.
    Replace ALL of your script links with the ones below (once it's confirmed it's working you can go directly to the pages, download the scripts and save them locally)
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="http://fancybox.net/js/fancybox-1.3.4/jquery.easing-1.3.pack.js"></script>
        <script type="text/javascript" src="http://fancybox.net/js/fancybox-1.3.4/jquery.fancybox-1.3.4.js"></script>
    <script type="text/javascript" src="http://fancybox.net/js/web.js?m=20100203"></script>
    Amend the <script> at the foot of the page to as below:
    <script type="text/javascript">
    /* Apply fancybox slideshow to 'group'*/
    $("a#group").fancybox({
    'transitionIn': 'elastic',
    'transitionOut': 'elastic',
    'speedIn': 600,
    'speedOut': 200,
    'overlayShow': false
    </script>
    Then give the anchor tags in the 3 images an id="group" as below:
    <a id="group" href="http://www.marieparkinson.co.uk/images/portfolio/full/harperoffice.jpg" title="Harper Office"><img src="http://www.marieparkinson.co.uk/images/portfolio/thumbs/harperthumb.jpg" alt="image 2"/></a>

  • Div image background not showing

    Hi I am trying to give a div a background image and then place tables etc in the div.  The trouble is the image does not show up.   Any help greatly appreciated.  Regards, Matt.  (Here is the html, followed by the css...)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Adobe GoLive" />
    <title>Beermatt Online Home Page</title>
    <link href="css/goldenumber.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body>
          <div id="bg">
    <p><a href="index.html">home</a> | <a href="web.html">web design</a> | <a href="photography.html">photography</a> | <a href="editing.html">editing</a> | <a href="contact.html">contact</a> | <a href="downloads/Matt_CV.pdf" target="_blank">cv</a></p>
    </div>
    </body>
    </html>
    body { font-size: 20px; color: white; font-family: tahoma, verdana, arial; background-color: #000000; }
    a:link { color: white; font-size: 16px; text-decoration: none; }
    a:visited { color: white; text-decoration: none; font-size: 16px;}
    a:hover { color: gray; text-decoration: none; font-size: 16px;}
    a:active { text-decoration: none; color: yellow; font-size: 16px;}
    #bg { background-image: url(images/terrain.jpg); background-repeat: no-repeat; margin-right: auto; margin-left: auto; }

    Hi...
    The background image in this CCS style worked fine for me. You might try to include the Width and Height and Visibility...
    #layer1 { background-image: url(Frost.png); background-repeat: no-repeat; height: 132px; width: 262px; left: 18px; top: 18px; position: absolute; visibility: visible; }
    walt

  • Background div do not support floating divs

    I've created quite simple construction, but it doesn't work in way I want to.
    I have wrapper which do not wrap up the floating divs placed in it as it should -
    it shrinks to base size (top and bottom corners) and stays like that while floating substances maintain previously defined positions - only without background...
    Any suggestions how to fix this?
    The construction looks round about like this:
    <body>
    <div> div tag  with height: 5px; contains top corners for layout </div>
    <div class= "opened div tag with backround attributes (color and borders)">
             <div>here comes the floating content (list with style set to: none;)
                   I set it inside the div with background attributes to have floating content wrapped into background color and borders
            </div>
    </div (here i close "background wrapper")>
    <div> div tag with heightL 5px; contains bottom corners for layout </div>
    </body>
    Thanks.

    This is a bit of a shot in the dark but try overflow: hidden; in the CSS rule for your wrapper?
    It would be much easier to see the page.
    Martin

  • Floating divs

    Hey TLF team,
    Do you have any immediate plans to implement floating blocks instead of just floating images?  I am currently implementing a stop-gap measure that splits the input up into multiple blocks, renders each to a different textflow, then lays them out on the page, but obviously this isn't optimal and if you guys are on the verge of implementing floating divs then I'll hold off!
    The reason I ask this is that I noticed that Jin Huang posted 'We are implementing border feature and backgroundColor of "block element" now', which suggests that you might be implementing other block features too...
    To confirm I am talking about the kind of block floats that would allow layouts similar to:
    http://www.maxdesign.com.au/articles/css-layouts/two-fixed/
    to be created in a single text flow.

    Thanks for your reply - in that case I shall continue with my original plan.  It would be really cool if you guys could add this feature at some point as when you have a lot of floating divs as seperate TextFlows on the screen at once things can get slow and it would be nice if this was handled within a single TextFlow.
    Congratulations on your work on TLF so far!

  • Floating divs made to have equal heights

    Hi all
    Is there a CSS way to get two divs (that will have different
    lengths of
    text) to have the same height. If not CSS what other
    techniques are there to
    achieve this - or is it not possible
    Thanks
    B
    http://www.visit-the-coqui.com
    If you are thinking of a vacation to Puerto Rico
    http://www.thegadgettraveler.com
    Travel gadget and other news here

    Thanks Osgood - I did not think of the faux column option and
    using it for
    divs - I'll check that out - thanks
    Thanks for the P7 link too
    B
    http://www.visit-the-coqui.com
    If you are thinking of a vacation to Puerto Rico
    http://www.thegadgettraveler.com
    Travel gadget and other news here
    "Osgood" <[email protected]> wrote in
    message
    news:gbg62d$14n$[email protected]..
    >B wrote:
    >> Hi all
    >>
    >> Is there a CSS way to get two divs (that will have
    different lengths of
    >> text) to have the same height. If not CSS what other
    techniques are there
    >> to achieve this - or is it not possible
    >>
    >> Thanks
    >>
    >
    > You can use javascript, read this article about eqaul
    height columns
    >
    >
    >
    http://www.projectseven.com/tutorials/css/pvii_columns/index.htm
    >
    >
    > or you can wrap the two floated <divs> in another
    <div> and use a
    > repeating background image, google 'faux columns'

  • Arranging a tight grid of floating divs with varying heights

    When creating a grid using floating divs of varying height, the divs that carry over into the next row often find themselves in the second or third column rather than going immediately below the first div in the first column.  I'm curious how I could make them fill in each column. I've attached some photos to better exemplify this.
    Currently the first div in the second row is only moving into the 4th column do to the varied heights of the divs in the first row.
    I'd like to have the divs look like this:

    Division-itis.  You don't need to place each thumbnail inside it's own floated division.  Why not just insert the thumbnail images into a single container like so?
    <div id="thumbnails" style="width:900px">
    Image here, image here, image here, etc...
    </div>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • WMA Player Plug-in in Floating DIV

    Here is a 'test' page that I've created:
    http://www.justus.ca/test/vocab/professions.html
    It has a 'floating' Windows Media Play plug-in within a
    floating div at the
    upper left of the screen. I can not get it to play, so I
    copied the player
    and pasted it into the first cell of the table as a 'test'.
    That player
    plays fine. It is an exact duplicate of the player in the
    floating div
    other than where it is located. Can anyone tell me how I can
    get the
    floating player to work? I want the player to stay fixed on
    the screen
    while people scroll the page to follow the audio being
    played.

    Try using this website
    http://cit.ucsf.edu/embedmedia/
    Note its easily to test an online media file then a local
    media file I find.
    For online files you can simply type the web address into the
    media player script
    for local file it has to be something like this src=file://
    etc..
    not just src=file.mp3
    so try to upload you music or video file onto the internet
    then
    use the generator on the website
    easy peasy
    Bookmark it its the best around....
    Daniel Lee
    | CEO - Lead Developer
    | Developer Trainer
    |
    http://www.onemegamarket.com

  • Floating div pushes p content down

    Hello,
    I have created a floating div that a use to place pictures in
    so that the text will flow around it. This all works fine.
    However when i place the text within a <p></p>
    tag, it forces the text below the picture and not flow around it.
    Why might this be? Thanks

    Impossible to say without seeing your code....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Si Fi" <[email protected]> wrote in message
    news:eqil2v$d80$[email protected]..
    > Hello,
    >
    > I have created a floating div that a use to place
    pictures in so that the
    > text
    > will flow around it. This all works fine.
    >
    > However when i place the text within a
    <p></p> tag, it forces the text
    > below
    > the picture and not flow around it.
    >
    > Why might this be? Thanks
    >

  • Why is the length of a floated div ignored by the outer wrapper?

    I'm having a hard time understanding whether floated elements are relatively or absolutely positioned.
    When I do a "float:right" on a narrow column, the text outside that column seems very aware of its existence. It won't appear under it - it will instead wrap around it. It will make room for it.
    However, the outer wrapping div ignores the floated div completely. It will only take into account (and accomodate for) whatever amount of text is NOT in that inner floating div.
    Example :
    <div class="wrapper">
      <div style="float:right">
        Float right contents.
      </div>
      This is the content that isn't floating right.
    </div>
    If the right-floated contents are longer than the content that isn't floated right, the outer wrapper ignores it. It will only accomodate the text that isn't being floated. If the floated text exceeds the non-floating text, the floating text will bleed outside the outer wrapper.
    How do I make the outer wrapper accomodate the right-floated div as well?

    I'm having a hard time understanding whether floated elements are relatively or absolutely positioned
    Neither.  Floats are floats.  The take content out of the normal flow.  For this reason, you must clear floats after they are no longer needed.   I typically use a br, p or hr tag with a clearing class like so:
    CSS:
    .clearFloat {clear:both; height 1px; visibility: hidden}
    HTML:
    <hr class="clearFloat" />
    Floats and Margins Demo.
    http://alt-web.com/DEMOS/3-CSS-boxes.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Issues with floated DIV layout

    Hi I am having problems with my floated DIV layout on the following site in I.E 6/7 but not 8.
    I have tried display: inline thinking it may be a margin/padding issue?
    http://www.sopasbeauty.co.uk
    what am I doing wrong, should I be adding clearfloats to separate area's of the page??
    Mark

    First, open the page in DW and use FILE | Convert > XHTML 1.0 Transitional.  Then try changing this -
    <div class="boxes" id="box1">
          <h1>Acrylic Nails</h1>

  • Photo Gallery Images Do Not Display When Uploaded

    I have made a photo gallery in Bidge, and locally, it looks fine. WHen I upload the folder to the remote server, none of the images will display.
    Everything is contained in the gallery folder, and I uploaded that folder. The web pages are displayed, but the images will not.
    On the image below, the list of local files are on the right, and the remote files are on the left.
    Please tell me what I've missed. Thanks.

    Is your photo gallery from a Collection?  Don't think those can be shared as they are  just alisis and not the image.

  • Floating divs of different heights

    I have a layout that a client requires that is 3 columns wide
    I am trying to set it up with floating divs and the divs have different heights.
    What is the best way to lay this out and is it possible to use Edge Reflow to do this as when I lay out the divs at my starting resolution and then start to change it for media queries the divs move from their starting positions.
    Hope it clear what I'm trying to achieve.
    Would I be better using Dreamweaver to do this than edge reflow?

    I think you are expeciencing someting similar to this user's post:
      http://forums.adobe.com/message/5542351#5542351
    We are looking at solutions, and it definitely helps us to understand how users experience the problem.

Maybe you are looking for