Advertisement

10.30.2006 at 05:37AM PST, ID: 22042192
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Css container spanes longer than the size of the browser

Asked by scdsh in Cascading Style Sheets (CSS)

Tags:

I have a problem at the moment using style sheets, my inner container, no matter how much how much content is in it always seems to span longer than the page itself.Is it possible just to let the container expand to the size of the content in it.

body
     {
       
        background-color:             #800036;
        min-width                     : 760px;
        text-align                    : center;
        margin                        :  0;    
        padding                       : 10px;
        background-repeat             : repeat-x;
        font                          : small arial,helvetica,verdana,sans serif;
        height:auto;
     }

#wrapper
         {
         width           : 760px;
          margin-left: auto;
          margin-right:auto;
          background-color : #FFFFD2;
          color            : #800036;
        height: 100%;
          padding         : 10px 10px 10px 10px;
         
         
         }
#header {
           padding-top:20px;
           padding-bottom:20px;
           background-color: #800036;
         
}
#nags_logo_left {
                 
                  position:absolute;
                   left : 145;
                    top :33;
                /*  border-top-width:5px;
                  border-top-color:  #800036;
                  border-left-width:5px;
                  border-left-color:  #800036;
                  border-right-width:5px;
                  border-right-color:  #800036;
                  border-bottom-width:5px;
                  border-bottom-color:  #800036; */
}

#nags_logo_right {
                  float:right;
                  border-top-width:5px;
                  border-top-color:  #800036;
                  border-left-width:5px;
                  border-left-color:  #800036;
                  border-right-width:5px;
                  border-right-color:  #800036;
                  border-bottom-width:5px;
                  border-bottom-color:  #800036;
}

#wrapper a {
             color            : #800036;

           
                         }
                       
#header-bottom
         {
       
          padding : 0px;
          border-top      : 5px solid #800036;
          border-bottom   : 5px solid #800036;
         
         
         }

#header-bottom ul
         {
         
         
          padding         : 0px;
          text-align      :right;
          margin : 0;
         }

#header-bottom li
         {
         
          display         :inline;
          background-color : #FFFFD2;
          padding : 0;
         }



#tagline
         {
          font-weight     : bold;
          font-style      :italic;
          float:left;
          color           : #FFFFD2;
         
         
       
         }


#f1         {
       
          padding : 0px;
          border-bottom      : 5px solid #800036;
          clear:right;
          width : 100%
         
         }
#topbuttonpadding {
                    padding-top: 5px;
}

#main {
position:relative;
        MARGIN-TOP:0PX;
       
        top:0;
        left:0;
        width:100%;
       

}
#content {
          margin: 0 580px 0 0;
          padding : 0px;
          text-align:left;

         
}
#selectorimage {
            float:left;
}
#selectorimagepadd {
               padding-right:5px;
}
#bodytext {
           position:absolute;
           top:0;
           right:0;
           width:605px;
           text-align:justify;
        /*   border-left : 3px solid ; */
           padding:0px 5px 0px 10px;
           font-size : 13px;
           font-family:century gothic;


}
and the associative html

 <head>
     <link rel="stylesheet" type="text/css" href="c:\inetpub\wwwroot\nags_css\nagsindex.css"</>
 
  </head>
  <body>
    <div id="wrapper">
      <div id ="header">
         
       <img src="./nags_img/nags_img_index_header.gif" alt="The Nags Head Inn"/>
      </div>
      <div id="header-bottom">
         <p  id ="tagline"> The Nags Head Inn </p>
         <ul>
            <li> <a href="">Home</a> | </li>
            <li> <a href="">Food</a> | <li>
            <li> <a href="">About US</a> | </li>
            <li> <a href="">Location</a> |</li>
            <li> <a href="">Contact Us</a> </li>
         </ul>                        
      </div>   <!-- header-bottom -->
     
     <!-- main sections -->
      <div id ="main">
          <div id="content">
            <div id ="topbuttonpadding">
               <div id = "buttonspacer">  
                  <img src="./nags_buttons/butt_home_page.gif"
                           onmouseover="this.src = './nags_buttons/butt_home_page.gif';"
                           onmouseout="this.src = './nags_buttons/butt_home_page.gif';"
                  </>
               </div>                            
            </div>
            <div id= "buttonspacer">
               <img src="./nags_buttons/butt_food.gif"  
                        onmouseover="this.src = './Nags_buttons/butt_food_hover.gif';"
                        onmouseout="this.src = './nags_buttons/butt_food.gif';"
               </>  
            </div>
            <div id="buttonspacer">
               <img src="./nags_buttons/butt_about_us.gif" id="buttonspacer"    
                        onmouseover="this.src = './nags_buttons/butt_About_us_hover.gif';"
                        onmouseout="this.src = './nags_buttons/butt_about_us.gif';"
               </>
            </div>  
     
            <div id = "buttonspacer">
               <img src="./nags_buttons/butt_location.gif" id="buttonspacer"    
                        onmouseover="this.src = './nags_buttons/butt_location_hover.gif';"
                        onmouseout="this.src = './nags_buttons/butt_location.gif';"
               </>
            </div>
            <div id="buttonspacer">
               <img src="./nags_buttons/butt_contact_us.gif"    
                        onmouseover="this.src = './nags_buttons/butt_contact_us_hover.gif';"
                        onmouseout="this.src = './nags_buttons/butt_contact_us.gif';"
               </>
            </div>                
         </div>  <!--content -->
         <div id ="bodytext">  
         
               
             <span class="firstletter"> <p>W</span>elcome to the Nags Head Inn Scalby. </p>
                                        <p>Situated  in the heart of the picturesque village of Scalby on the edge of the North      
                                        Yorkshire Moors.Scalby village is located approximately 2 miles north of the town of Scarborough where walks in the country or by the
                                       meandering river are at your disposal. </p>  

             <div id= "imglineleft">
                 <img src="./nags_pictures/nags 006.jpg"width="180" height="100" />    
                      <!--  onmouseover="this.src = './nags_buttons/butt_contact_us_hover.gif';"
                        onmouseout="this.src = './nags_buttons/butt_contact_us.gif';" -->
             </div>

             <p> The Nags Head Inn boats  a comfortable lounge and bar room offering darts and dominoes and also available is a beer garden to the rear, to enjoy summer evenings. Occasionally music is played to create a warm and friendly atmosphere.</P>
                 
       
 
             <div id ="imglineright">
                 <img src="./nags_pictures/nags_pics_home_02.jpg" width="180" height="100" />    
                      <!--  onmouseover="this.src = './nags_buttons/butt_contact_us_hover.gif';"
                            onmouseout="this.src = './nags_buttons/butt_contact_us.gif';" -->
             </div>
             <br>
             <P>Let the crackle and the warmth of the open log fire and occasional soft music, entice you in. </p>
           
             <p> A selection of cask beers are available </p>
             <div id  = "beer_list">
              <ul>
                <li> Black Sheep </li>
                <li> John Smiths </li>
                <li> Tetley Smooth </li>
             </ul>
             </div>

           <div id ="f1">
         </div>                                                          
         </div> <!--body text-->
       
      </div> <!--main-->    
               
    </div>  <!--wrapper--!>  
 
  </body>
</html>

This my style sheet, and code

can anyone help pleaseStart Free Trial
[+][-]10.30.2006 at 07:28AM PST, ID: 17834294

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: food
Sign Up Now!
Solution Provided By: Animasu
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.31.2006 at 11:25PM PST, ID: 17848015

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]11.23.2006 at 02:24AM PST, ID: 18001919

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]12.21.2006 at 06:03AM PST, ID: 18180263

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]12.25.2006 at 07:00PM PST, ID: 18197059

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32