Custom-designed scroll bars that perfectly match the size of the content window

Currently attempting to adjust the layout of my webpages in order to enable scrolling for dynamic content across various pages. I have made adjustments to the header, footer, and sidebar elements, but am facing issues with implementing proper overflow properties such as overflow: auto or overflow: scroll. Some pages are not displaying all content correctly. As a non-professional enthusiast managing a couple of websites, I am constrained from hiring a professional due to financial reasons.

A recent discovery that caught my attention was a fiddle demo that functions without any overflow settings at all. I included a footer component to accurately replicate the behavior observed on my own site. Notably, the scroll bars persist along the sides despite the presence of both header and footer sections.

http://jsfiddle.net/inquii/Nrs2u/4/

CSS:

html, body {
    height: 100%;

}

body {
    height: 100%;
}

.static {
    width:996px;
    z-index:2;
    height:150px;
    position: fixed;
}

#header {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-style: normal;
    height: 172px;
    width: 996px;
    min-width: 850px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    background-image: url(images/wga_banner.jpg);
    position: fixed;
    top:0px;
}


#wrapper {
    background-color: #FFF;
    margin-top: 0px;
    padding-top: 0px;
    width: 994px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    height: auto;
}

#sidebar {
    background-color: #FFF;
    width: 202px;
    float: left;
    margin-top: 0px;
    margin-right: 0px;
    height: 100%;
    min-height: 700px;
    position: fixed;
    top: 202px;
    bottom: 35px;
}

.main_content {
    background-color: #FFF;
    padding-right: 20px;
    padding-left: 20px;
    float: left;
    width: 752px;
    padding-top: 40px;
    color: #000;
    border-left-width: 2px;
    border-left-style: solid;
    border-left-color: #A9B2B1;
    height: 100%;
    position: absolute;
    top: 3px;
    left: 202px;
    overflow-y: scroll;
}


.container {
    background-color: #FFF;
    width: 996px;
    min-height: 100%;
    height: 100%;
    position: fixed;
    top: 202px;
}


#footer {
    background-color: #772432;
    clear: both;
    height: 35px;
    margin: 0;
    color: #FFF;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 996px;
    position: fixed;
    bottom: 0;
}

HTML & PHP:

<body style="margin: 0; background-color: #A9B2B1;">
<div id="wrapper">
    <?php 
    $path = $_SERVER['toast'];
    $path .= "_includes/header.php";
    include_once($path);
    ?>
    <?php 
    $path = $_SERVER['toast'];
    $path .= "_includes/sidemenu.php";
    include_once($path);
    ?>   
</div>   

<div class="main_content">
    <p>Don't worry; there's no capital punishment during Toastmasters meetings. Unless, of course, the grammarian is in a bad mood.</p>
    <p>If you think of a club meeting as a project, then you can see the  general evaluator as a kind of project manager. As GE, your  responsibilities include:</p>
    <ul type="disc">
      <li>Ensuring the speech and leadership project evaluators know their responsibilities</li>
      <li>Supervising the timer, grammarian and Ah-Counter</li>
      <li>Evaluating everything that takes place during the club meeting </li>
      <li>Making sure each activity is performed correctly</li>
    </ul>
    <p>Several days before the meeting, contact the person who will be  Toastmaster of the meeting and confirm the meeting program. You should  also develop a checklist to follow during the meeting so you don't have  to keep all the details in your head. Some clubs have a prepared  checklist. If your club doesn't have one, ask the Toastmaster to help  you create your own checklist.</p>
    <p>When discussing the meeting program with the Toastmaster, ask what  evaluation format to use. Typically, an evaluator is assigned to an  individual, but sometimes evaluations are done by panels. The general  evaluator may set up any evaluation procedure he or she chooses, but it  should fit into the meeting program. Remember, too, that every  evaluation must be brief and complete. Review the <em>Effective Evaluation</em> manual for different evaluation formats.</p>
    <p>You'll also need to contact members serving as:</p>
    <ul>
      <li>Timer</li>
      <li>Grammarian</li>
      <li>Ah-Counter </li>
      <li>Individual evaluators</li>
    </ul>
    <p>Remind them of their assignments, and brief evaluators on their  responsibilities, the members they will evaluate and the evaluation  format to use. Make sure the evaluators understand that evaluation is a  positive, helping act that enables fellow Toastmasters to develop their  skills. Point out that an evaluation should enhance the speaker's  self-esteem and encourage evaluators to prepare thoroughly for their  role. Recommend that they call the member they've been assigned to  evaluate to discuss specific project objectives.</p>
    <p>Your final task <em>before</em> the meeting is to prepare a brief verbal explanation detailing:</p>
    <ul>
      <li>The purpose, techniques and benefits of evaluation so guests and new  members will better understand the function of evaluations. </li>
      <li>How evaluation is a positive experience designed to help people overcome flaws and reinforce good habits in their presentations.</li>
    </ul>
    <p>On meeting day:</p>
    <ul>
      <li>Arrive early. </li>
      <li>Make sure all evaluators are present and that they have the appropriate speaker or leader's manual. </li>
      <li>If an evaluator is absent, consult with the vice president education and arrange for a substitute. </li>
      <li>Ask each evaluator if he or she has any questions about the project  objectives to be evaluated, verify each speaker's time and notify the  timer if there are any changes. </li>
      <li>Take your seat near the back of the room. This will ensure you have a good view of the meeting and all its participants.</li>
    </ul>
    <p>The Toastmaster of the meeting usually introduces the general  evaluator before the Table Topics portion of the meeting. But your club  may have a different order for introductions, so check with the  Toastmaster or VPE before the meeting if you're not sure when you'll be  introduced.</p>
    <p>When you're introduced:</p>
    <ul type="disc">
      <li>Stand by your chair and deliver the explanation you prepared. </li>
      <li>Identify the grammarian, Ah-Counter and timer and have these members briefly state the purpose of their jobs. </li>
      <li>Request the word of the day, if your club has one, from the grammarian and then be seated.</li>
    </ul>
    <p>During the meeting, use your checklist and take notes on everything  that happens (or doesn't, but should). For example: Is the club's  property (e.g. trophies, banner, educational material) properly  displayed? Were there unnecessary distractions that could have been  avoided? Did the meeting, and each segment of it, begin and end on time?</p>
    <p>Study each participant on the program, from the person giving the  invocation or thought for the day to the last report by the timer. Look  for good and less than desirable examples of preparation, organization,  delivery, enthusiasm, observation and general performance of duties.  When it's time to begin the evaluation portion of the meeting, the  Toastmaster will introduce you, again. This time, you'll go to the  lectern and introduce each evaluator. After each recitation, thank the  evaluator for his or her efforts.</p>
    <p>Finally, give your general evaluation of the meeting:</p>
    <ul type="disc">
      <li>Use your checklist and the notes you took during the meeting. </li>
      <li>Phrase your evaluation so it is helpful, encouraging and motivates club members to implement the suggestions. </li>
      <li>You may wish to comment on the quality of evaluations. Were they  positive, upbeat, helpful? Did they point the way to improvement? </li>
      <li>When you've completed your evaluation, return control of the meeting to the Toastmaster.</li>
    </ul>
    <p>Being general evaluator is a big responsibility and it is integral to  the success of every single club member. People join Toastmasters  because they have a goal – they want to learn something. The club is  where they learn. If the learning environment isn't focused and fun,  members won't learn what they joined to learn. Your observations and  suggestions help ensure the club is meeting the goals and needs of each  member.</p>
    <p>And what do <em>you</em> get out of the deal? You get the chance to  practice and improve your skills in critical thinking, planning,  preparation and organization, time management, motivation and team  building!</p>
</div>
</div>
<!-- ends container-->


<?php 
   $path = $_SERVER['toast'];
   $path .= "_includes/footer.php";
   include_once($path);
?>
</div> <!-- ends wrapper-->
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
</html>

Answer №1

I'm not quite sure I understand your question, but I made the following adjustment:

Check it out on jsFiddle

The change I made was removing the CSS rule below:

body {
    height: 300%;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Apply a class to a div element when the WooCommerce cart is devoid of any items

Is there a way to apply a class or style to an element that displays the cart count only when the cart is empty? Currently, I have the following code in my header.php file which shows the cart count correctly, but does not update the color: header.php ( ...

Select2.js Dropdown List with Case Sensitivity

Currently making use of select2.js version 4.0.3 Situation: Imagine the dropdown list contains the following options: JavaScript javascript Javascript javaScript So, when a user types in java, all options are displayed (case is n ...

An unforeseen issue occurred while trying to access an indexed element ID

I've recently started learning javascript and jquery, and encountered a problem while working on a script. The script is created by php code that reads lines from a file, processes them, and displays them using arrays. In addition, javascript validat ...

"An error has occurred in the file system, make sure to handle it when

I am encountering an issue with submitting a form using jQuery's ajaxSubmit() function. The problem arises when the file selected in the form is renamed, deleted, or made inaccessible before submission, leading to potential discrepancies in whether th ...

Tips for enabling unrestricted unencoded HTML in XmlNode or XmlElement with XmlSerializer

Looking for a solution to generate an XML element that can handle a string of text containing HTML or other valid XML elements. Here's an example: "Test text with <strong>custom nodes</strong> that shouldn't be encoded" I've at ...

What is the best way to make the block rotate each time the button is clicked?

Specifically, I am having trouble getting the block to rotate properly. Currently, the block only rotates once when clicked, but I want it to rotate each time I click in both directions. Any suggestions on how to achieve this? var now = 10; $('. ...

Having Trouble Operating Virtual Tour in Flash

I recently used a third-party software to create a virtual tour for my client's website. The virtual tour works perfectly fine on its own, as you can see here: However, when I tried to include the virtual_tour.html page on the index page of the websi ...

I need help picking out specific elements from this messy HTML code using XPath and lxml - any ideas on how to do

I am looking to extract specific strings from this HTML document using only lxml and clever XPath. The content of the strings may vary, but the structure of the surrounding HTML will remain constant. The strings I need are: 19/11/2010 AAAAAA/01 Normal U ...

Experience a seamless front/back DIV transition with a mouseover effect similar to the ones on USAT

Recently, I was tasked with creating a mouseover transition effect for a div similar to the one used on USAToday's website. The structure of the boxes on the site includes: <div class="asset"> <div class="front">'image and some t ...

Looking for a PHP add-on for fpdf converter that can handle ul li tags

I need assistance with using fpdf to convert dynamic site content to pdf. The issue is that fpdf does not support ul li tags. Is there an add-on available for fpdf that supports ul li and ol li tags in html? To provide more context: The content being con ...

Using the pattern `[A-Za-z]{50}` in HTML is mistakenly identifying valid input as invalid

I created a webpage with text fields and wanted to limit user input using the HTML5 pattern attribute. Here is an example of how I implemented it: <input name="team_name" type="text" pattern="[A-Za-z]{50}" value="<?php echo $team_name;?>"> Ev ...

Choose a procedure to reset to the original setting

I'm attempting to achieve something that seems straightforward, but I'm having trouble finding a solution. I have a <select> tag with 5 <option> elements. All I want to do is, when I click a button (which has a function inside of it), ...

Creating a new form upon clicking

By clicking the "Add New Job" link, a new form with three fields will appear. This is the primary form: <h2>JOB EXPERIENCE 1</h2> <div class="job-content"> <input type="text" value="Company" name="company" /> <input type="te ...

Is it possible for me to create an HTML script that can transfer data from the script to a cell within Qubole?

Is it possible to create an HTML script that allows user interaction, pass the data back to a zeppelin cell, and trigger a rerun of the data? Thank you! Update: I have made some progress in rerunning the cell with an HTML click. The cell I want to rerun ...

Is there a way to align both a list icon and its contents in the center?

Can someone please assist me? I am attempting to replicate a website, but I am unsure how to center align an icon list and content. Currently, it appears like this; https://i.stack.imgur.com/6FZCr.png I would like it to look like this; https://i.stack.im ...

Exploring the Robot Framework: Strategies for Identifying and Populating Input Text Fields

Link Here is a snippet of my HTML code: <input type="text" placeholder="Search for extensions" class="user-input" style="width: 370px;"> Despite trying to capture the Xpath of the input text field, I am encou ...

Navigate to a different webpage while employing sweetalert2 and extracting data using the GET method

Is there a way to use sweetalert2 for redirecting to deleting.php with a specific ID parameter? How can I include this dynamic data in the code snippet below, which is used to display options for editing and purging data from an SQL database? echo' &l ...

Having trouble displaying a background image with CSS

When I open Chrome from my code editor (WebStorm), the header image shows up perfectly. However, after closing WebStorm and manually opening index.html from my project folder, the header image fails to load/display. The CSS for the background image is bac ...

What is the process for sending the selected checkbox text to an action result on a Razor page?

Working with asp.net core razor pages, I am passing the selected id as an array successfully. However, the issue arises when the selected text value for the checkbox is not being passed or displayed. The problem seems to be occurring on this line of code ...

"Emulate the social sharing capabilities of CNET with interactive share

I remember a while ago, CNET had these amazing Social Share buttons that, when clicked, would reveal a "dropdown box" with the social network share dialog. Does anyone know how they achieved that? I've searched but couldn't find any information ...