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 3786224
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:38:59+00:00 2026-05-19T11:38:59+00:00

I have a div inside a field set that looks like this: <fieldset> <legend>Device</legend>

  • 0

I have a div inside a field set that looks like this:

        <fieldset> 
            <legend>Device</legend> 
            <label id="select-6-container">     
                <select id="select-6" name="device_select" style="display:none"></select>       
            </label> 
        </fieldset> 

        <div id="ctrl"> 
        <button type="button" id="restart1" name="button1" onclick="window.location.reload()" value="Restart Wizard">Restart Wizard</button> 
        <button type="button" id="gotostep2" class="gotostep2" name="button1" value="Next Step">Next Step</button> 
        </div>

My select box is populated with YUI and then shown (notice that its hidden on load). My CSS for the box looks like this:

#ctrl {
margin-top: 102px;
margin-left: -200px;
position: absolute;
width:100px;
  }

But when My select box is generated, the ctrl box moves down everytime! Do I have my CSS wrong? Or is it because the select box is generated by Javascript after the page has loaded?

I should mention that when YUI renders the select box as a menu button it changes it’s markup to be a button, I didn’t think this should matter because the positioning of ctrl is what I’m trying to change.

Any advice would help!
Thanks!

  • 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-05-19T11:39:00+00:00Added an answer on May 19, 2026 at 11:39 am

    Your div doesn’t seem to be inside the fieldset, as you had mentioned.
    Try to assign a position to the div using top, right, bottom and/or left. The div‘s position will be then depending on the next positioned parent element, so have an eye on that as well.

    If all of this doesn’t work — please post as well the surrounding mark–up and CSS.

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

Sidebar

Related Questions

I have this div inside a repeater, where i set the class, onmouseover and
I have a div that has it's opacity set to 60. Inside the div,
I have two <fieldset> s inside a single div (nothing else), that are positioned
i have the following view that contains an @Html.DropDownList :- <fieldset> <legend>Answer here</legend> <div
Suppose I have an div. Inside this div, I have two divs floating left,
I have a div having a css class MyClass. Inside this div, I can
I have a span inside a legend tag that I want to use to
I have some dynamic text contained in a div that is set to whatever
I have a div main that has a table grid . This table has
If I have <div id='wrapper'> <fieldset id='fldset'> <legend>Title</legend> Body text. </fieldset> </div> How could

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.