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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:05:10+00:00 2026-05-27T16:05:10+00:00

I have two tables that I’ve styled the same. I’ve added a form (generated

  • 0

I have two tables that I’ve styled the same. I’ve added a form (generated from javascript) with its own styling and it seems to have messed up one of the tables (add camera table)

The fiddle has the details and I’ve added the form that the javascript creates: http://jsfiddle.net/UtNaa/30/

If I remove all this code added from the form it then fixes the table:

#EditCameraForm label, input, select, textarea {
    display: block;
    width: 200px;
    float: left;
    margin-bottom: 1em;
    margin-top: 0.5em;
}

#EditCameraForm select {
    width: 100px;
}

#EditCameraForm label {
    clear: both;
    color: black;
    width: 120px;
    padding-right: 8px;
    text-align: left;
    white-space: nowrap;
}

#EditCameraForm input[type="button"] {
    float: right;
    width: 100px;
    margin-left: 10px;
}

#EditCameraForm input[type="submit"] {
    float: right;
    width: 100px;
}

#EditCameraForm input[name="submit"] {
    clear: both;
}

#EditCameraForm input[name="camera_status"] + label {
    clear: none;
}

What am I doing wrong with this? It doesn’t make sense to me that both tables have the same styling but only one table gets messed up?

  • 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-27T16:05:10+00:00Added an answer on May 27, 2026 at 4:05 pm

    you’ve got a width setting that is forcing things to expand. You’re defining #EditCameraForm label. Then every input, select, and textarea on the page.

     #EditCameraForm label, input, select, textarea {
        display: block;
        width: 200px; /* <------- this line is causing it */
        float: left;
        margin-bottom: 1em;
        margin-top: 0.5em;
    }
    

    You need to target just those form inputs. That way you aren’t altering all page inputs. Like so…

    #EditCameraForm label, 
    #EditCameraForm input, 
    #EditCameraForm select, 
    #EditCameraForm textarea {
        display: block;
        float: left;
        width: 200px;
        margin-bottom: 1em;
        margin-top: 0.5em;
    }
    

    In addition, you’ve got an incorrect selector.

    <input type="submit" name="Submit" value="Apply">
    

    Note the “name”… but the selector is….

    #EditCameraForm input[name="submit"]
    

    Case matters.

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

Sidebar

Related Questions

I have two tables that contain data from different temperature sensors: Table1 _TimeStamp Temperature
I have two tables that have the same structure; one contains permanaent data, and
I have two tables that have the exact same structure. Table MasterList Acct_id(9) Name
I have two tables that I need to gather data from, then add up
I have two tables that I'm querying from. In one table, there are fields
I have two tables that I'm joining (in order to get the username from,
I have two tables that I want to fetch data from. Lets call them
I have two tables that need the exact same values for denormalization purposes. Here's
I have two tables that are joined together. A has many B Normally you
I have two tables that should be joined together by a foreign key relationship,

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.