Article that fills the entire screen

I am currently in the process of developing a mobile application. The issue I am facing is that the text is not aligning properly and the images are not displaying fullscreen. Additionally, I want the images to adjust automatically based on whether you are viewing them on a smartphone or computer. However, I am unable to identify what mistake I might be making.

Despite all content being correctly organized within the same folder, I seem to be encountering these formatting issues.

<!DOCTYPE css> 

#top {
font-family: "Century Gothic", arial; 
font-size: 12pt;

margin: 0; 
padding: 0; 
overflow: auto;

background-color: black;
}

article {
opacity: 0.9;

border: 1px solid black;

background-image: url("slide.jpg"); 
background-repeat: no-repeat;
background-size: auto;

margin-top: 1em; 
margin-bottom: 1em;

padding-left: 0.5em; 
padding-right: 0.5em; 
padding-top: 7%; 
padding-bottom: 30em;
color: black; 


margin: auto; 
}

<article id = "Staande" class = "staande_houding">
              <!---  <img src = "hoi.jpg" id = "hoi" /> -->
        <h1> Staande houding </h1>
        <div class = "beschrijving" id = "Loodlijn"> <h3> Loodlijn </h3>

De patiënt staat .... voor of achter de optimale loodlijn. Er is een .... asymmetrie tussen de    twee zijden van het lichaam en er is een .... disbalans tussen de agonisten en antagonisten van de voor- en of achterzijde van het lichaam

<br/>
<br/>
Score:
<br/> 0-1   Erg duidelijk
<br/> 2-3   Duidelijk 
<br/> 4-5   Licht
<br/> 6-7   Optimale loodlijn, symmetrie van beide zijde van het lichaam, balans agonisten antagonisten van de voor en achterzijde van het lichaam. 
</div>
        <div class = "panel" id = "panel_loodlijn"> De patiënt staat in optimale loodlijn.  Bij het staan met goed opgebouwd lichaam nemen lichaamsdelen t.o.v. het mediane vlak een symmetrische positie in.Het lichaamsgewicht is gelijk over beide voeten verdeeld, de lengteassen van de voeten zijn een hoek van ongeveer honderdvijftig °.De benen zijn licht gestrekt op een afstand tussen beide 
        heupgewrichten. De knieën zijn nagenoeg gestrekt. Het bekken staat in de middenstand En de heupgewrichten zijn gestrekt. De normale fysiologische krommingen zijn behouden. De normale curves van de wervelkolom zijn een bocht convex naar voren cervicaal, convex naar achteren thoracaal en convex naar voren lumbaal.
        </div>

        <form>
          <input type = "radio" name = "staande_houding_globaal" value="0">
          0 </input>
          <input type = "radio" name = "staande_houding_globaal" value="1">
          1 </input>
          <input type = "radio" name = "staande_houding_globaal" value="2">
          2 </input>
          <input type = "radio" name = "staande_houding_globaal" value="3">
          3 </input>
          <input type = "radio" name = "staande_houding_globaal" value="4">
          4 </input>
          <input type = "radio" name = "staande_houding_globaal" value="5">
          5 </input>
          <input type = "radio" name = "staande_houding_globaal" value="6">
          6 </input>
          <input type = "radio" name = "staande_houding_globaal" value="7">
          7 </input>
          <input type="button" value="Volgende" onClick="history.forward()" class = "volgende" />
        </form>
        </article>

        <article id = "Staande1" class = "staande_houding">
        <h1> Staande houding </h1>
        <div class = "beschrijving" id = "Positie_van_de_enkel"> <h3>Positie van de enkel </h3>

De positie van de enkel staat .... in varus of valgusstand, of heeft een .... vergrote of verkleinde flexiehoek van 10 graden.
<br/>
<br/>
Score:
<br/> 0-1   Erg duidelijk
<br/> 2-3   Duidelijk
<br/> 4-5   Lichte, licht
<br/> 6-7   Optimaal zoals beschreven en geïllustreerd
        </div>
            <div class = "panel" id = "panel_enkelpositie"> De hielen staan ongeveer 7 à 8 cm van elkaar en de voorvoet is ongeveer 8-10° geabdiceerd t.o.v. de middellijn aan beide zijden, waardoor de totale obductie ongeveer 16-20° bedraagt. De referentielijn loopt bij de enkel iets voor de laterale malleolus en nog. Door de apex van de boog die lateraal aangegeven wordt door de art. calcanocuboidea. De dorsaalflexie van de enkel is normaal ongeveer 10° als de knie gestrekt is. </div>

        <form>
          <input type = "radio" name = "staande_houding_globaal_1" value="1">
          0 </input>
          <input type = "radio" name = "staande_houding_globaal_1" value="1">
          1 </input>
          <input type = "radio" name = "staande_houding_globaal_1" value="2">
          2 </input>
          <input type = "radio" name = "staande_houding_globaal_1" value="3">
          3 </input>
          <input type = "radio" name = "staande_houding_globaal_1" value="4">
          4 </input>
          <input type = "radio" name = "staande_houding_globaal_1" value="5">
          5 </input>
          <input type = "radio" name = "staande_houding_globaal_1" value="6">
          6 </input>
          <input type = "radio" name = "staande_houding_globaal_1" value="7">
          7</input>
          <input type="button" value="Volgende" onClick="history.forward()" class = "volgende" />
        </form>

Answer №1

Uncertain about the type of vessel the content is housed in, however, in typical HTML format, it would be necessary to set margin and padding to zero for html and body.

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

Overlapping dynamic content causing CSS nested scrollbars to clash at full width of 100%

Displayed below is a layout with two nested divs, both featuring automatic vertical scrolling. Is there a CSS technique available to show the inner scrollbar while maintaining the inner div at 100% width? https://i.stack.imgur.com/HSKHH.png div { ba ...

What is the most effective way to transfer an array from one PHP file to a different JavaScript file?

Utilizing AJAX to send a request to another php page and retrieve the result of a query, I originally used xmlhttprequest to pass the php logic along with the query information. However, I wanted to separate the presentation logic from the actual code logi ...

Angular, PHP, and MySQL working together to establish database connectivity

Greetings! I am facing some challenges with a small project involving mySQL and PHP for the first time. My main focus right now is on establishing connectivity. Despite following various tutorials, I have been unable to connect to the database and keep enc ...

Is there a different option available in place of the JavaScript confirm function?

I developed an application where I heavily utilized the javascript confirm function. confirm("Do you want to proceed"); However, I am not satisfied with the default appearance of the confirm dialog and would like to implement a customized version with be ...

What are some alternative ways to arrange this main navigation bar?

Check out the website, below the map you'll find an unordered list: HTML code: <ul class="play_navigation"> <li class="active"><a href="#" class="barino_story_bottom">The Story</a></li> <li><a href="#" ...

The droplist functionality in jQuery does not seem to be functioning properly within an ASP.NET MVC 5

After adding an external theme to my project and writing a script for listing data in a dropdown list on a separate page, I encountered an issue where the script works on other pages but not on the Layout theme page. HomeController Note: The partial view ...

Designing a carousel-style menu list with navigation buttons for moving forward and backward

I'm running into some trouble while attempting to create a carousel. Firstly, the issue I am facing is that when you continuously click on the Next button, the function keeps working even after reaching the last item. I'm not sure how to make th ...

Is there an alternative to using CSS units of measurement when using the .css() method?

Is there a way to use .scrollTop() and .css() to adjust the margins of an element so that it floats up only when the page is scrolled, but stops at a certain margin value? I want the element to float between specific values while scrolling. The issue I am ...

The android webview is having trouble loading HTML that includes javascript

I have been attempting to showcase a webpage containing HTML and JavaScript in an android webview using the code below. Unfortunately, it doesn't seem to be functioning properly. Can someone provide assistance? Here is the code snippet: public class ...

What steps can be taken to safeguard the title of the document in the top window from being altered by any iframe or script?

My typical approach is to delete and redefine the title property like in the code snippet below: if (delete document.title) { Object.defineProperty(document, 'title', { get: getter, set: setter, enumerable: true, ...

The native javascript modal fails to appear

I'm attempting to implement the functionality from this Codepen demo into my project. I've copied over the HTML, CSS, and JavaScript code: <!DOCTYPE HTML> <html> <head> <script> var dialog = docume ...

W3C validation issue: "Failure to immediately follow a start-tag with a null end-tag" and similar errors

Encountering validation errors with the following code: <!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" xml:lang="en" lang="en"> <hea ...

A helpful tip for those working with jQuery or WordPress PHP: Use a script that calculates the number of characters in a text, identifies the last space, and replaces everything after

Is there a way to restrict the amount of text shown within a div sourced from a WordPress Custom Field? <?php $textcount = strlen(get_field('custom_quote')); ?> <?php if ( $textcount > 250 ) : ?> <?php the_field('custom ...

"Encountering an issue when linking the file with phpMyAdmin

I've been struggling with this issue for hours now. I'm currently working on a registration form for my website and while coding in PHP, I connected it to MySQL and the Database using this line of code (which happens to be the 6th line): $mysq ...

What is the best way to retrieve the value of a button using javascript?

After trying to extract the value from a button in JavaScript, here is the code I used: for(i=0; i<cars.length;i++){ var p = `<button id="myBtn" onclick="myFunction()" value="${cars[i]}">${cars[i]}</button>` func ...

Retrieving specific value from a Parent Controller in AngularJS using UI Router

I have a request to display the value stored in $scope.resAVal on my index.html page. This value is accessible within the RootCtrl. index.html <!DOCTYPE html> <html ng-app="plunker"> <head> <!-- any required JavaScript librarie ...

Decoupling the Top Navigation Bar from the Side Navigation Bar

I currently have a top navigation bar with some menus and a side navigation bar with additional menus. I have applied styling to the vertical navigation bar, but it seems to be affecting all the navigation bars, resulting in an output as shown in the image ...

Responsive Bootstrap 5+ carousel featuring cards tailored to different viewport sizes

After an extensive search, I have come across numerous outdated questions and answers regarding my issue. With Bootstrap continuously evolving, I am hoping someone can help me with my specific requirement. I am in need of a carousel of cards that adjusts ...

Assistance needed in handling a form with the use of $_POST and $PHP_SELF

Let me explain my goal in creating a webpage using HTML and PHP. The webpage will feature multiple forms to gather user inputs for future use. My plan is to reveal each form only after the previous one has been submitted. Here are the 3 forms: First name ...

Creating an If statement to evaluate the state of a parameter

In my simple Graphics User Interface, when the user clicks on "move", a yellow rectangle div moves across the screen. Now, I am trying to implement an event based on the position of the rectangle on the page. For example, if the div is at 400px (right), t ...