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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:52:55+00:00 2026-06-05T19:52:55+00:00

I’m having problems with this site I am building. I need a fixed width

  • 0

I’m having problems with this site I am building. I need a fixed width so that I can do margin-left and margin-right auto (center the form item on my ‘left window’. Problem is that I’m trying to make this code modular so that it will work with any future forms I decide to create as well, meaning I need a variable height, depending on how many fields a form will need.

so to clarify the above statement, I’m trying to keep the fixed width and have a variable height (using min-height). The problem is that the background color and div border are not shrinking or expanding along with the div size. any ideas?

the site is here: http://traelid.com/news/createNews.php

here is my form code and my CSS code:

FORM:

<script type='text/javascript' src='../nicEdit/nicEdit.js'></script>
<script type='text/javascript'>
    bkLib.onDomLoaded(function() {nicEditors.allTextAreas() });
</script>

<div class='frmcontainer'>

    <div class='title'>TraeLid News</div>

  <div class='fill'>

        <div class='row'>

            <div class='frm lbl'>
                <label for='author'>Author:</label>
            </div>

            <div class='frm itm'>
                Auto Author
            </div>

        </div>

        <div class='row'>

            <div class='frm lbl'>
                <label for='subject'>Subject:</label>
            </div>

            <div class='frm itm'>
                <input class='itm itmtxt' type='text' name='subject' />
            </div>

        </div>

        <div class='row'>

            <div class='frm lbl'>
                <label for='content'>Content:</label>
            </div>

            <div class='frm itm txtarea' style='background-color:#fff;'>
              <textarea class='itm itmtxtarea ckeditor' name='content'></textarea>
          </div>

        </div>

        <div class='row'>

            <div class='frm lbl'>
                <label for='tags'>Tags:</label>
            </div>

            <div class='frm itm'>
                <input class='itm itmtxt' type='text' name='tags' />
            </div>

        </div>

  </div>


</div>

CSS:

 .frmcontainer
    {

    text-align:center;

    width:750px;
    min-height:200px;
    margin-left:auto;
    margin-right:auto;

    border-radius:10px;
    border-width:1px;
    border-style:solid;

}

.frm
{
    margin:5px;
}


.title
{
    clear:both; 

    width:750px;

    margin-bottom:24px;

    font-size:28px;
    font-weight:bold;
    text-decoration:underline;
    font-variant:small-caps;

}

.row
{
    width:750px;
    height:auto;

    float:left;
    clear:both;
}

.lbl
{   
    font-size:18px;
    font-weight:bold;

    text-align:left;

    height:30px;
    width:150px;

    float:left;

}

/*Container and input styles*/

.itm
{
    text-align:left;

    height:25px;
    width:580px;        

    float:left;
}

.itmtxt
{
    width:576px;

    border-style:solid;
    border-width:1px;
}

.txtarea
{
    height:400px;
}

.itmtxtarea
{
    width:578px;

    height:343px;

    border-style:solid;
    border-width:1px;
}
.nicEdit-panel 
{     
    background-color: #eee;
}
.nicEdit-selected 
{     
    background-color: #fff;
    word-wrap:break-word;;
    overflow:hidden;
}
.nicEdit-main
{
    word-wrap:break-word;
    overflow:hidden;
    max-height:343px;
}
  • 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-05T19:52:56+00:00Added an answer on June 5, 2026 at 7:52 pm

    on .frmcontainer add overflow: hidden;. fiddle ex

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build
Does anyone know how can I replace this 2 symbol below from the string
I need a function that will clean a strings' special characters. I do NOT
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text

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.