Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Member #
    40203

    Stop div floating

    I have a background video running on every page of my site however it just sits at the top of the page with another div of content over the top as I was unable to get it to work as a background video.

    When I resize my window or check the site on different resolutions the floating Div moves around and changes position.

    I've run through a handful of forums to try and fix it but to no avail.

    This is what I have so far:

    The large video css:
    Code:
    #vid1 {
    	position: fixed;
    	overflow: hidden;
            max-width: 100%!important;
    }
    The floating div:

    Code:
    #VidGallery {position: relative!important; float:left!important;}
    
    .video-gallery-thumbnail-box-outer {top:-500px!important; position:absolute!important; float:left!important; width:610px!important; border: 2px dashed red; clear: both!important}
    Is there anything I can do to stop the video gallery div floating?

  2.  

  3. #2
    Banned
    Join Date
    Sep 2014
    Posts
    21
    Member #
    40215
    Liked
    1 times
    Hi Friends,

    stop div floating given below,
    A standard approach is to add a clearing div between the two floating block level elements:

    <div style="clear:both;"></div>
    Thank you.

  4. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Member #
    40203
    Quote Originally Posted by prasanth View Post
    Hi Friends,

    stop div floating given below,
    A standard approach is to add a clearing div between the two floating block level elements:

    <div style="clear:both;"></div>
    Thank you.
    Thank you, I'll give that a try


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:30 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com