How to get footer side by side - html

My footer is one below the other and want it to be side by side. My problem is that it is too much do you have any suggestions how to put in a nice way? it's not the most important side of the site but it is much content and how to put this in a right way?
<h1>Sitemap</h1>
<ul>
<li>Opleiding</li>
<ul>
<li>Visie & Beleid</li>
<li>Opbouw Studieprogramma</li>
<li>Competenties</li>
<li>Diploma</li>
<li>Beroepen</li>
</ul>
<li>Onderwijsprogramma</li>
<ul>
<li>Mededelingen</li>
<li>Uitagenda</li>
<li>Propedeuse</li>
<li>Verdieping 1</li>
<li>Verdieping 2</li>
<li>Afstuderen</li>
</ul>
<li>Organisatie</li>
<ul>
<li>Contact</li>
<li>Blog</li>
<li>Docenten</li>
<li>Onderwijsbureau</li>
<li>Stagebureau</li>
<li>Buitenlandbureau</li>
<li>Examencommissie</li>
<li>Decaan</li>
</ul>
<li>Stages en Projecten</li>
<ul>
<li>Stages</li>
<li>Projecten</li>
</ul>
</ul>
<h1>Contact</h1>
CMD Amsterdam
Bezoekadres: Gebouw Theo Thijssenhuis (TTH), Wibautstraat 2-4, 1091 GM Amsterdam
Postadres: Postbus 1025, 1000 BA Amsterdam
Telefoon: 020 595 1855
Email: info#cmd.hva.nl
RSS: Feed intranet
<h1>Zoeken</h1>
<form>
<input type="text">
<input type="submit">
</form>
<h1>About</h1>
CMD Amsterdam is een ontwerp opleiding voor Interactieve Media.
Op de opleiding Communication & Multimedia Design (CMD) Amsterdam leer je alles over het ontwerpen van online interactieve media. Dit betekent begrijpen, bedenken en maken van interactieve mediatoepassingen zoals websites, mobiele applicaties en interactieve televisie.
<h1>Credits</h1>
© 2007 Hogeschool van Amsterdam - DMCI - CMD Amsterdam
Geef ons feedback
</footer>
CSS!
footer{
width: 100%;
position: absolute;
top: 317%;
left: -10%;
background: lightgrey;
margin:10%;
padding: 2%;
}

footer > ul > li {
width: 20%; /* Make them the right width */
float: left; /* And float them to get them in a line */
}

You have 5 headings in your footer, so I'm guessing you want 5 columns in your footer. I'd put a div around each of your footer sections, and then float them and constrain their widths so they appear side-by-side.
HTML
<footer>
<div class="footer-column">
<h1>Sitemap</h1>
...
</div>
<div class="footer-column">
<h1>Content</h1>
...
</div>
<div class="footer-column">
<h1>Zoeken</h1>
...
</div>
<div class="footer-column">
<h1>About</h1>
...
</div>
<div class="footer-column">
<h1>Credits</h1>
...
</div>
</footer>
CSS
.footer-column {
width: 20%;
float: left;
}
Demo
JSFiddle (Note: This will look terrible on a narrow display).

Related

Is there a way for me to force an HTML <ul> to be a fixed size in order to make an SPA?

I want to make an SPA for a project. The idea is that people can connect to the site via a PIN or something. On their phones, they can ask questions along with their names. All of the questions appear as a vertical unordered list in a sidebar on the left, the selected question appears big in the center and all answered questions move to a similar list in a sidebar on the right.
Currently, the list works fine, but as soon as there are more than four questions, the list becomes taller than the page itself and I think that's hideous. I want to have it scrollable, but at a limited height.
What I've tried:
I've tried setting the height and max-height properties to 100vh, and setting overflow-y to scroll, but didn't actually allow me to scroll the list.
In the stylesheet:
li {
text-align: left;
font-family: 'Quicksand', sans-serif;
list-style-type: none;
overflow-y: auto;
max-height: 100vh;
height: 100vh;
}
And in my HTML:
<body>
<script src="backend.js"></script>
<div class="wrapper">
<div class="vragenLijst">
<ul style="padding-left: 10px; padding-right: 10px" id="lijst">
<li>
<div>
<p class="vrager">Persoon 1</p>
<br>
<p class="vraagt">vraagt:</p>
<br>
<p class="vraagEl">Dit is mijn vraag.</p>
</div>
</li>
<li>
<div>
<p class="vrager">Persoon nummer twee</p>
<br>
<p class="vraagt">vraagt:</p>
<br>
<p class="vraagEl">Hier komt mijn vraag dan, zeer origineel.</p>
</div>
</li>
<li>
<div>
<p class="vrager">Persoon nummer 3</p>
<br>
<p class="vraagt">wilt weten:</p>
<br>
<p class="vraagEl">En wederom wat opvultekst hier.</p>
</div>
</li>
<li>
<div>
<p class="vrager">Vierde persoon</p>
<br>
<p class="vraagt">wilt weten:</p>
<br>
<p class="vraagEl">Zo he, een vierde vraag? Allemachtig...</p>
</div>
</li>
</ul>
</div>
<div class="vergroot">
<p id="groteVrager">Naam</p>
<p id="groteVraagt">vraagt:</p>
<p id="groteVraag">vraag</p>
<input type="button" value="Volgende vraag" class="button" onclick="nieuweVraag()">
<input type="button" value="JA" class="button" onclick="nieuweVraag(0)">
<input type="button" value="NEE" class="button" onclick="nieuweVraag(1)">
<input type="button" value="NIET RELEVANT" class="button" nieuweVraag(2)="antwoord(2)">
</div>
<div class="sidebar">
<ul id="beantwoordeVragen">
</ul>
</div>
</div>
<div class="footer">
Idee en code door Simeon Duwel, gelicenciëerd onder MIT ca. 2019
</div>
</body>
Setting overflow-y:auto and height: <desired-height> to the ul should work.
For example, below I have a ul with a height of 50 vh. For demonstration purposes I have a yellow-colored div with 100vh. As you can see, the ul height is fixed as half of the div, and any overflow scrolls.
ul {
height: 50vh;
background-color:white;
overflow-y:auto;
}
li {
height: 10vh;
}
body,ul {
margin:0;
}
<div style="height:100vh;background-color:yellow">
<ul>
<li>Test 1</li>
<li>Test 2</li>
<li>Test 3</li>
<li>Test 4</li>
<li>Test 5</li>
<li>Test 6</li>
<li>Test 7</li>
<li>Test 8</li>
<li>Test 9</li>
<li>Test 10</li>
</ul>
</div>

How do I place this text on the right side

I am trying to place this paragraph on the right side of my unordered list. The problem I am facing right now is that the text on the right is forced down below the li. I managed to get it on the right side but I can't manage to get it on the same "height".
The code if it helps.
img{
height: 200px;
width: 250px;
border: solid green 1px;
margin-top: 20px;
}
aside#Asid_vilkaviär{
width: 30%;
float: right;
margin-right: 150px;
}
<div class="container">
<div class="argumentbild_tjänst">
<img src="miljövänlig_städning_508502626.jpg">
<ul>
<li> Glöm dålig luft </li>
<li> Trevligare omgivning</li>
<li> Roligare vardag </li>
<li> Kompetenta och välutbildade medarbetare </li>
</ul>
<aside id="Asid_vilkaviär">
<h1> Vilka vi är </h1>
<p> Rena-Sopkärlet AB leds av företagets två grundare, Mille Tarp och Magnus Dahl. Företaget består att kunniga och skickliga medarbetare som genom åren har många lyckade
rengörningar av soptunnor bakom sig. Det är alltid kul att uppskattas för sitt arbete och vi har haft många tillfällen att njuta av nöjda kunder. </p>
</aside>
</div>
</div>
To keep the left part in a DIV and set its css as #leftside {float:left; width:60%}
img{
height: 200px;
width: 250px;
border: solid green 1px;
margin-top: 20px;
}
#leftside {float:left; width:60%}
aside#Asid_vilkaviär{
width: 40%;
float: right;
}
<div class="container">
<div class="argumentbild_tjänst">
<div id="leftside">
<img src="miljövänlig_städning_508502626.jpg">
<ul>
<li> Glöm dålig luft </li>
<li> Trevligare omgivning</li>
<li> Roligare vardag </li>
<li> Kompetenta och välutbildade medarbetare </li>
</ul>
</div>
<aside id="Asid_vilkaviär">
<h1> Vilka vi är </h1>
<p> Rena-Sopkärlet AB leds av företagets två grundare, Mille Tarp och Magnus Dahl. Företaget består att kunniga och skickliga medarbetare som genom åren har många lyckade
rengörningar av soptunnor bakom sig. Det är alltid kul att uppskattas för sitt arbete och vi har haft många tillfällen att njuta av nöjda kunder. </p>
</aside>
</div>
</div>
There are newer/modern/new standards methods of styling like css grid and flexbox that can sort this out with the various advantages like responsiveness(good for mobile device viewing) and height. I noticed "height" meant something else in the answer you appreciated. Here is another way of doing what you wanted using grid.
/* This here takes care of all the layout. The following child elements just fold into this. This will also give you equal height for the columns irregardless of the content either sides */
.argumentbild_tjänst {
display: grid;
grid-template-columns: 3fr 6fr;
}
img{
height: 200px;
width: 250px;
border: solid green 1px;
margin-top: 20px;
}
/* There is no need to use percentages to determine size. The fr units took care of that I am using the # to color the text and background. all the layout was already taken care off */
#leftside {
background: #de2;
color: #000;
padding: 10px;
}
aside#Asid_vilkaviär{
background: #a03;
color: #fff;
padding: 10px;
}
<!-- Your html remains instact but could also be reduced using the modern methods. Doesnt matter anyway -->
<div class="container">
<div class="argumentbild_tjänst">
<div id="leftside">
<img src="https://images.pexels.com/photos/442584/pexels-photo-442584.jpeg">
<ul>
<li> Glöm dålig luft </li>
<li> Trevligare omgivning</li>
<li> Roligare vardag </li>
<li> Kompetenta och välutbildade medarbetare </li>
</ul>
</div>
<aside id="Asid_vilkaviär">
<h1> Vilka vi är </h1>
<p> Rena-Sopkärlet AB leds av företagets två grundare, Mille Tarp och Magnus Dahl. Företaget består att kunniga och skickliga medarbetare som genom åren har många lyckade
rengörningar av soptunnor bakom sig. Det är alltid kul att uppskattas för sitt arbete och vi har haft många tillfällen att njuta av nöjda kunder. </p>
</aside>
</div>
</div>

How to set a specific div end?

im working on a project for myself and im stuck at this point:
<div id="opacity">
<div id="content">
<div id="text">
<h1 id="contentH1">Officiele game-rate website.</h1>
<br>
<p id="contentP1">Op deze website kunt u alle top 10 games zien, van veel verschillende genre's. Alle lijsten zijn bedoeld voor de pc. </p>
<p id="contentP2">Hier onder worden de verschillende genre's aangegeven:</p>
<ul id="genreIndeling">
<li>Actie</li>
<li>Avontuur</li>
<li>Strategie</li>
<li>RPG</li>
<li>Sport</li>
<li>Race</li>
</ul>
</div><!--END TEXT-->
</div><!--END OPACITY-->
<div id="messi">
<img id="messi" src="messi.png" alt="Messi" style="opacity: 1;">
</div><!--END MESSI-->
</div><!--END CONTENT-->
Sorry for the Dutch words, but the problem is that my pc, the end div of "content" sees as the end div of "opacity", so my picture got still opacity.
Can anybody help me please?
Thanks,
Joost Keizer
You are missing a closing "/div" for opacity
Swap the ids of your first two divs:
<div id="content">
<div id="opacity">
This will put your divs in order and keep the image the way you want.

HTML 5 and CSS3 pure content switch

i have following problem.
So i want to create a switch content on my Website.
I want to create that i can toggle with my navbar the content.
I dont have any Idea more...
This is my Code
<section class="content show" id="home">
<h1>Welcome</h1>
<h5>My new site is coming soon!</h5>
<p>ich werde diese Seite komplett neu aufbauen, ich hoffe das Ihnen meine neue Webpräsenz gefallen wird. <br><br> Mit freundlichen Grüßen, <br> <b> Alexander Constapel </b> </p>
<p>More info »</p>
</section>
<!-- /About Page -->
<section class="content hide" id="about">
<h1>About</h1>
<h5>Some facts about me!</h5>
<p>
<ul>
<li>Alexander Constapel </li>
<li>20.02.1994 </li>
<li>Ausbildung zum Mediengestalter in Digital und Print </li>
<li>Webdevelopment & Design </li>
</ul></p>
<p>Subscribe me on Facebook!</p>
</section>
<!-- /Contact Page -->
<section class="content hide" id="contact">
<h1>Contact</h1>
<h5>Get in touch!</h5>
<p>Email: Alook.de<br />
Phone: 05<br /></p>
<p>Jever<br />
Germany</p>
</section>
And this is my CSS to this:
.show {
display: block;
}
.hide {
opacity: 0;
}
.content {
color: deepskyblue;
float:left;
margin:40px;
position:absolute;
top:200px;
width:600px;
z-index:9999;
-webkit-font-smoothing:antialiased;
}
Ofc my NAV have href to #home #about #contact
But it still dont work.
Please help me out.
Thanks a lot.
Alex

I want to have my <p> next to each other

I have a question, I'm working on a site and I want this in my website:
Showing at my page at the moment:
De diensten die wij verlenen op het gebied van beveiligde opbergsystemen zijn:
• Openen
• Reparatie
• 24 op 24 en 7 op 7!
• Service
• Transport
I want to have the • and the text next to each other. Now they are below each other
the code :
<p class="second">De diensten die wij verlenen op het gebied van beveiligde
opbergsystemen zijn:</p>
<p class="second">•</p><p class="first"> Openen</p>
<br>
<p class="second">•</p><p class="first"> Reparatie</p>
<br>
<p class="second">•</p><p class="first"> 24 op 24 en 7 op 7!</p>
<br>
<p class="second">•</p><p class="first"> Service</p>
<br>
<p class="second">•</p><p class="first"> Transport</p>
The text is dutch so don't mind that
Use <ul> tag
<ul>
<li> Openen</li>
<li> Reparatie</li>
<li> 24 op 24 en 7 op 7!</li>
<li> Service</li>
<li> Transport</li>
</ul>
Have you tryed this?
<p class="first"><span class="second">•</span>Openen</p>
<p class="first"><span class="second">•</span>Reparatie</p>
Every time you use "[p]" that creates a new paragraph.
"[br]" makes a new break in the line and moves the next set of text to the next line.
So here
<p class="second">•</p><p class="first"> Openen</p>
you are creating a new paragraph and then • follow by a new paragraph.
That is why your • 's are above eachother.
use this
<div id="container">
<p class="second">De diensten die wij verlenen op het gebied van beveiligde
opbergsystemen zijn:</p>
<ul>
<li>
<p> Openen</p>
</li>
<li>
<p> Reparatie</p>
</li>
<li>
<p> 24 op 24 en 7 op 7!</p>
</li>
<li>
<p> Service</p>
</li>
<li>
<p> transport</p>
</li>
</ul>
</div>
and your css is:
#container li
{
float left;
}
will automatically add your bullet to text.