How can I place my container above my header in the layout?

I'm facing difficulty positioning the container above my header. Here is an example of what I am aiming for:

No matter what I attempt, strange occurrences like the NAV disappearing or divs overlapping keep happening.

HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Metrieken</title>
        <meta name="keywords" content="ICT, Projecten, Consultancy" />
        <meta name="description" content="Uw software projecten in control." />
        <link href="http://fonts.googleapis.com/css?family=Varela" rel="stylesheet" />
        <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
        <link href="fonts.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body>
        <div id="wrapper">
            <div id="header-wrapper">
                <div id="header" class="container">
                    <div id="logo">
                        <h1>
                            <a href="#"><img src="css/img/Logo-PMS.png" width="300px"></a>
                        </h1>
                    </div>
                    <div id="menu">
                        <ul>
                            <li class="current_page_item">
                                <a href="#" accesskey="1" title="">Diensten</a>
                            </li>
                            <li>
                                <a href="#" accesskey="2" title="">Toepassingen</a>
                            </li>
                            <li>
                                <a href="#" accesskey="3" title="">Dashboard</a>
                            </li>
                            <li>
                                <a href="#" accesskey="4" title="">Publicaties</a>
                            </li>
                            <li>
                                <a href="#" accesskey="5" title="">Nieuws</a>
                            </li>
                            <li>
                                <a href="#" accesskey="6" title="">Over ons</a>
                            </li>
                            <li>
                                <a href="#" accesskey="7" title="">Contact</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="banner">

                    <div class="title">
                        <h2>Uw software projecten in control.</h2>
                        <span class="byline">Voor al uw ICT-projecten</span>
                    </div>

            </div>

            <div id="extra" class="container">


                    <div id="tab">
                        <p>Diensten</p>
                    </div>
                    <div id="content">
                        <div class="title">
                            <h2>Vanaf nu kunt u kosten besparen op software ontwikkeling</h2>
                        </div>
                        <p>U vindt bij ons een compleet aanbod aan dienstverlening en toepassingen van software metrieken waarmee u kosten kunt besparen
                            op uw software ontwikkeling. Wij ondersteunen u met sizing / FPA en begroting en planning van software projecten. Ook helpen
                            wij u bij de inkoop van software door offertes voor software-ontwikkeling te beoordelen. Voor al onze vormen van dienstverlening
                            hanteren wij scherpe tarieven. Onderstaand schema geeft een overzicht van ons dienstenpakket.</p>
                        <img src="css/img/schema-homepage-5.jpg"
                        width="100%">
                    </div>



                    <div id="content">
                        <div class="title">
                            <h2>Kortom: U heeft uw software projecten in control!</h2>
                        </div>
                        <p>Metrieken.nl bestaat uit ervaren specialisten op het gebied van software metrieken: senior sizing analisten en senior consultants.
                            Wij werken voor uiteenlopende sectoren vanuit meerdere plaatsen in het land. Metrieken.nl ondersteunt bedrijven bij hun software
                            projecten met functiepuntanalyses en begroten en plannen van deze projecten. Daarmee kunnen onze klanten zich met een gerust
                            hart richten op hun primaire business, want de software projecten zijn in control. Openheid, transparantie en respect Metrieken.nl
                            vindt het belangrijk dat klanten tevreden zijn, niet alleen over de kwaliteit, maar ook over de prijs-kwaliteit verhouding
                            van onze dienstverlening en de mentaliteit van onze mensen. Openheid, transparantie en wederzijds respect zijn daarbij onze
                            kernwaardes.
                            <br>
                            <br>Ervaren en onafhankelijk:
                            <br>-gecertificeerde senior sizing analysts en senior consultants
                            <br>-ruime ervaring bij uiteenlopende sectoren
                            <br>-landelijk de meeste ervaring in huis
                            <br>-geen softwareleverancier, dus onafhankelijk.
                            <br>
                        </p>
                    </div>

                <div id="three-column">
                    <div class="boxA">
                        <div class="box">
                            <p>Parlementair onderzoek naar ICT-projecten bij de overheid.</p>
                            <img src="css/img/noun_22592_cc.png" width="100%;">
                            <p>Met het ICT-dashboard meer grip op uw projecten.</p>
                        </div>
                    </div>
                    <div class="boxB">
                        <div class="box">
                            <p>Bekijk onze bedrijfs-presentatie</p>
                            <img src="css/img/noun_3059_cc.png" width="100%;">
                            <img src="css/img/noun_1541.png" width="20%;">
                        </div>
                    </div>
                    <div class="boxC">
                        <div class="box">
                            <p>Beste prijs/kwaliteit verhouding</p>
                            <img src="css/img/noun_30373_cc.png" width="100%;">
                            <p>Gecertificeerde en ervaren consultants én 25% onder de marktprijs</p>
                        </div>
                    </div>
                </div>
            </div>
            <div id="page" class="container"></div>
        </div>
        <div id="copyright" class="container">
            <div id="four-column">
                <div class="box1">
                    <p>Diensten:
                        <br>-Early sizing
                        <br>-Sizing / FPA
                        <br>-Estimating
                        <br>-Monitoring
                        <br>-Benchmarking
                        <br>-Resource planning
                        <br>
                    </p>
                </div>
                <div class="box2">
                    <p>Toepassingen:
                        <br>-Agile
                        <br>-Project planning
                        <br>-Beheer
                        <br>-Inkoop van software
                        <br>-Leverancier / offerte
                        <br>
                    </p>
                </div>
                <div class="box3">
                    <p>Toepassingen:
                        <br>-Agile
                        <br>-Project planning
                        <br>-Beheer
                        <br>-Inkoop van software
                        <br>-Leverancier / offerte
                        <br>
                    </p>
                </div>
                <div class="box4">
                    <p>Toepassingen:
                        <br>-Agile
                        <br>-Project planning
                        <br>-Beheer
                        <br>-Inkoop van software
                        <br>-Leverancier / offerte
                        <br>
                    </p>
                </div>
            </div>
            <p>&copy; Untitled. All rights reserved. | Photos by
                <a href="http://fotogrph.com/">Fotogrph</a>| Design by
                <a href="http://templated.co" rel="nofollow">TEMPLATED</a>.</p>
        </div>
    </body>

</html>

CSS:

// Custom CSS styles go here...

Answer №1

Hello there! Check out this tip:

#header-wrapper{position:fixed}

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

python and html tutorial for adding text from bottom to top

Looking for help with rearranging lines in an HTML file? If you want the lines to be displayed in reverse order, here's an example: (1) (2) (3) You need them to appear like this: (3) (2) (1) try: record_cam.strHandler ...

Is there a way to restrict access to my website to only be opened in the Chrome browser?

Is there a way to prevent my web application from loading when the link is opened in browsers other than Chrome? Can this be achieved using Javascript or Java? I want to restrict the usage of my web application to only Chrome. Any assistance would be appre ...

Prettyprint XML in Angular 8+ without using any external libraries

I am working with Angular 8+ and I need to display XML content in a nicely formatted way on my HTML page. The data is coming from the backend (Java) as a string, and I would like to present it in its XML format without relying on any external libraries or ...

Issue with Div element not appearing on Azure AD B2C page customization

Utilizing PopperJS, I attempted to incorporate a popover box that appears when the user focuses on the password field within an Azure AD B2C page customization. Despite noticing the presence of the box element, it fails to display as intended. Any assistan ...

Utilizing the after pseudo element for an active selector in CSS

I'm struggling to make an active icon selector work with the after pseudo element. Here is the code I have attempted: <html> <head> <style type="text/css"> .btn{ width:25%; } .name{ background: #fff; color: #000; text-alig ...

Loading texts with the same color code via ajax will reveal there are differences among them

I am currently designing a webshop with green as the primary color scheme. Everything is functioning perfectly, but I have noticed that the text within an ajax loaded div appears brighter than it should be. The text that loads traditionally is noticeably d ...

When you try to create a popover, a cautionary message pops up indicating that $tooltip is no longer supported. It is

I need help with creating a popover that appears when hovering over an anchor tag. Here is the code I am using: angular: 1.4.2 ui-bootstrap :0.14.2 <div class="row" ng-repeat="endorsement in endorsements| filter: {category:categorySelected}"> &l ...

What is the best way to target and style anchor links in CSS that are not empty?

Hi there! I am on the hunt for a CSS selector that will target all anchor links that are not empty and contain content. I currently have a selector to identify all links with an anchor attribute, like in this example: a[href*=\#] { background-co ...

Detecting letter case and text input in an HTML form can be done by using

I am looking to format a question along with multiple options in a text box, similar to how it is done in a Word file or plain text. Once saved, I want the questions to be displayed in a list and the options organized in a table. How can I extract the ques ...

Is there a way to compel the browser to re-cache an image?

In my website, each user has a cover image on their profile page with the constant name main_cover.jpg. The issue I am facing is that when a user uploads a new image, the old image remains cached in the browser and I have to refresh the page (ctrl+f5) to ...

Acquire dynamically loaded HTML content using Ajax within a WebView on an Android

I have been attempting to extract the content of a web page on an Android platform. Despite trying JSoup, I faced a limitation with ajax support. As an alternative, I am endeavoring to embed the URL within a hidden web view and retrieve the HTML in the on ...

What is the best way to create a CSS grid with horizontal overflow?

I'm currently working on a 4-column layout using CSS grid. As the browser width reaches a specific breakpoint, I want the first column to be fixed on the left side of the browser (X-axis) while the other columns scroll under it. Right now, I am utiliz ...

html The "download" attribute causing a new tab to open rather than initiating a

I have a website built with Angular 4, where users can download images from an Amazon S3 bucket. However, I encountered an issue wherein instead of downloading the image, it opens in a new tab. I've tested this problem on different browsers such as Fi ...

Display/Conceal content with JQuery on a PHP webpage

I am having trouble with the following code. My intention is to show/hide the content between the #info id when clicking buttons, but nothing seems to be happening. Could you help me identify the issue? echo '<script> $( "#show' . $r ...

How can the entire menu be closed in Bootstrap 5 when clicking on a link or outside of the page?

I'm currently utilizing BootStrap 5 for constructing my webpage. Within my page, I have a NavBar Menu containing various links. <head> <link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__ ...

A guide on transferring radio button values to another program and saving them into a database with the help of PHP and jQuery

I have encountered an issue with storing radio button values in a database. Specifically, I want to assign the value of 1 for "Yes" and 0 for "No". To accomplish this, I am utilizing two scripts - a.php and b.php. The former obtains the radio button values ...

Use JQuery to gradually decrease the opacity of divs individually

I am currently working on a function that fades out all divs except the one that has been clicked on simultaneously. However, I want them to fade out one by one instead. Additionally, I would like the divs to fade out in a random order. If anyone knows ho ...

Finding a solution to this issue in Angular will consistently result in a false outcome

Can anyone explain why I keep getting the error message "This condition will always return 'false' since the types 'typeof ChartType' and 'ChartType' have no overlap" whenever I try to compare charTypeEnum with ChartType.text? ...

Animating jQuery Counter with Changing Background Color

I've implemented a Counter that counts from 0 to a specified number, and it seems to be working perfectly. However, I want to add an animation where the background color of a div height animates upwards corresponding to the percentage of the counter. ...

JavaScript causing attribute() variable to malfunction in CSS animation

I am attempting to implement a CSS animation using three files. Below is the HTML file: <html lang="en"> <head> <link rel="stylesheet" type="text/css" class = "tag" href="../css/style.css" ...