Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:41:19+00:00 2026-06-15T02:41:19+00:00

I have two divs nested inside another and no matter what I have tried

  • 0

I have two divs nested inside another and no matter what I have tried I can’t get the second nested div (bookmarklet-wrapper) to float beside the first(form-wrapper)? I thought maybe it was something to do with the widths but this didn’t help and also tried using a “clearfix” but this still didn’t help.

My HTML is as follows:

<div id="prof-wrapper">    

    <div id="editprofile-form-wrapper">

    <div id="title">
        <h1>Edit Profile</h1>
        <p>This information appears on your personal user page</p>

    </div><!--End of title-->

   <div class="form-horizontal">

            <?php if(isset($image)){echo $image;}?>
        <div id="thumbs" style="width:300px"></div>

            <form id="cropimage" method="post" enctype="multipart/form-data">

               <fieldset class="control-group">
                    <label class="control-label" for="firstname">Firstname</label>
                    <div class="controls">
                            <input id="firstname" type="text" name="fname">
                    </div>
               </fieldset>

               <fieldset class="control-group">
                    <label class="control-label" for="lastname">Surname</label>
                    <div class="controls">
                            <input id="lastname" type="text" name="secound">
                    </div>
               </fieldset>

               <fieldset class="control-group">
                    <label class="control-label" for="email">Email</label>
                    <div class="controls">
                            <input id="email" type="text" name="email">
                    </div>
               </fieldset>

               <fieldset class="control-group">
                    <label class="control-label" for="user_location">Location</label>
                    <div class="controls">
                            <input id="user_location" type="text" value="" name="user[location]">
                            <p>Where art thou?</p>
                    </div>
               </fieldset>

               <fieldset class="control-group">
                    <label class="control-label" for="bio">Bio</label>
                    <div id="user_description_box" class="controls">
                            <textarea id="bio" class="input-xlarge" name="bio" style="width: 243px; height: 122px;"></textarea>
                            <p class="bio-label">About yourself in<strong>160</strong>characters or less.</p>
                    </div>
            </fieldset>

            <div class="form-actions">
                <button id="submitButton" class="btn primary-btn" type="submit" name="submit">Save changes</button>
            </div>

        </form>     

        <form id="cropimage" method="post" enctype="multipart/form-data">

            <fieldset class="control-group">
                    <label class="control-label" for="photoimg">Profile photo upload</label>
                    <div id="user_description_box" class="controls">
                        <input id="photoimg" type="file" value="" name="photoimg">
                        <input type="hidden" name="image_name" id="image_name" value="<?php echo($actual_image_name)?>" />
                        <!--<p class="bio-label">About yourself in <strong>160</strong> characters or less.</p>-->
                    </div>
           </fieldset>

            <div class="form-actions">
                <input type="submit" class="btn primary-btn" id="photoSubmit" name="submit" value="Photo Submit" />
            </div>    

           </form>

        </div><!--End of horizontal form-->

        </div><!--End of form wrapper-->

        <div class="clearfix"></div>

        <!-----------------------------------------Start of bookmarklet-------------------------------------------------->

        <div id="bookmarklet-wrapper">

        <h1 id="welcometext">Welcome to <img src="images/logo_text.png" alt="NetSushi Logo" title="Net Sushi" id="instrustionlogo" width="100px"/></h1>

      <h2 id="bminstructions">The Bookmarklet below should be dragged to your bookmarks bar so that you can share content with your friends on <!--<img src="images/logo_text.png" alt="NetSushi Logo" title="Net Sushi" id="instrustionlogo" width="100px"/>
      <a style="text-decoration:none;
        background:#25A6E1;
        background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
        background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
        background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
        background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
        background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
        background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#25A6E1',endColorstr='#188BC0',GradientType=0);
        padding:8px 13px;
        color:#fff;
        font-family:'Helvetica Neue',sans-serif;
        font-size:17px;
        border-radius:4px;
        -moz-border-radius:4px;
        -webkit-border-radius:4px;
        border:1px solid #1A87B9;
        position: relative;
        top: 20px;"
        href="javascript:
        (function () {
            function loadjscssfile(filename, filetype){
                if (filetype=='js'){
                    var fileref=document.createElement('script');
                    fileref.setAttribute('type','text/javascript');
                    fileref.setAttribute('id','jsDoc');
                    fileref.setAttribute('src', filename);
                }else if (filetype=='css'){
                    var fileref=document.createElement('link');
                    fileref.setAttribute('rel', 'stylesheet');
                    fileref.setAttribute('id', 'cssDoc');
                    fileref.setAttribute('type', 'text/css');
                    fileref.setAttribute('href', filename);
                }
                if (typeof fileref!='undefined')
                    document.getElementsByTagName('head')[0].appendChild(fileref);
                }
                var cssDoc = document.getElementById('cssDoc');
                if (cssDoc == null){
                    loadjscssfile('http://www.netsushi.net/css/css/bookmarklet.css', 'css');
                }
                var jsDoc = document.getElementById('jsDoc');
                if (jsDoc == null){
                    loadjscssfile('http://www.netsushi.net/js/bookmarklet.js', 'js');
                }else{
                    if ($('#feeder_bm_main').is(':visible')){
                        $('#feeder_bm_main').hide();
                    }else{
                        $('#feeder_bm_main').show();
                    }
                }
            void(0)
        }())
    ;"-->
    >NetSushi</a>

  </div><!--End of bookmarklet wrapper-->




        </div><!--end of edit-page-content-->​

I’m still unsure how to correctly format my CSS to post it but you can see exactly what is going on in this fiddle if you have a moment to help me out?

http://jsfiddle.net/DannyW86/3gMuP/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:41:21+00:00Added an answer on June 15, 2026 at 2:41 am

    If you simply add float: left to your form-wrapper, it should work : http://jsfiddle.net/3gMuP/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two inner divs which are nested inside a wrapper div. I want
I have a div with two nested divs inside, the (float:left) one is the
I have two divs floated next to one another: <div id=parent> <div id=child_1 style=float:left>
I have two divs one inside another, i would like to overlap one div
I have two divs inside a container div. One need to float left the
I have two divs one inside another. I have given some border to both
I have two divs and a wrapper div around them. The wrapper div is
I have two divs, one nested inside of the other. The parent element has
I have a div which contains two nested divs, one that specifies a height
I have a parent div and two nested divs. I have the nested divs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.