Forum Moderators: open
/* Google-Fonts */
@import url('https://fonts.googleapis.com/css?family=Exo+2');
/* HTML-Body */
body {
/* Fonts */
font-family: "Exo 2";
/* body without border */
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
padding: 0;
background-color: #fff;
}
h2 {
font-family: "Exo 2";
font-size: 32px;
color: crimson;
}
/* main container for entire site */
.container {
display: flex;
width: 100%;
width: 100vw;
justify-content: space-between;
align-items: stretch;
align-content: space-between;
}
/* container for header */
.container_header {
display: flex;
margin: auto;
}
/* container for body */
.container_body {
display: flex;
flex-direction: column;
min-height: 1024px;
}
/* container for footer */
.container_footer {
display: flex;
}
/* Stylebox-Konfigurator */
/* hide radio buttons */
[type=radio] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
/* hide check boxes */
[type=checkbox] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
/* mouse pointer */
[type=radio] + img {
cursor: pointer;
}
[type=checkbox] + img {
cursor: pointer;
}
/* show border when radio button is activated */
[type=radio]:checked + img {
outline: 3px solid red;
}
/* show border when check box is activated */
[type=checkbox]:checked + img {
outline: 3px solid green;
} <!DOCTYPE html>
<html>
<!-- HTML header -->
<?php include 'html_header.php'; ?>
<body>
<!-- global header -->
<?php include 'global/header.php'; ?>
<!-- begin main container -->
<div class="container_body">
<h2>Wähle aus, für wen die Stylebox zusammengestellt wird.</h2>
<hr>
<!-- beginn form -->
<form action="stylebox_konfigurator_frau_teileauswahl.php" method="post">
<!-- beginn radio buttons -->
<fieldset>
<label>
<input type="radio" name="radio_geschlecht" value="Mann"><img src="images/stylebox_konfigurator_auswahl_mann.png" width="80" height="100">
</label>
<label>
<input type="radio" name="radio_geschlecht" value="Frau"><img src="images/stylebox_konfigurator_auswahl_frau.png" width="76" height="100">
</label>
<!-- end radio buttons-->
</fieldset>
<input type="submit" name="submit" value="Weiter">
<!-- end form -->
</form>
<!-- end main container -->
</div>
<!-- global footer -->
<?php include 'global/footer.php'; ?>
</body>
</html> <div class="container_header">
<!-- left area -->
<div>
TRENDline Logo
</div>
<!-- center area -->
<div>
Stylebox Logo
</div>
<!-- right area -->
<div>
<img src="images/leere-stylebox-mit-firmenlogo-und-produktlogo.png" width="133" height="128">
</div>
</div> <div class="container_footer">
<!-- left area -->
<div>
Footer 1
</div>
<!-- center area -->
<div>
Footer 2
</div>
<!-- right area -->
<div>
Footer 3
</div>
</div> [edited by: not2easy at 6:46 pm (utc) on Feb 13, 2021]
[edit reason] Please use 'example' for domain name [/edit]
body {margin:0;}
.container_body { width:100%}
[edited by: not2easy at 4:16 pm (utc) on Feb 14, 2021]
[edit reason] Please see ToS [webmasterworld.com] [/edit]
Another question: On mobile devices the images and fonts are very tiny. How can i change this and make the items bigger?
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>Untitled document</title>
<!--
The internal CSS should be transferred to an external file
<link rel="stylesheet" href="screen.css" media="screen">
-->
<style media="screen">
html, body {
height: 100%;
margin: 0;
}
body {
display:flex;
flex-direction:column;
padding: 0;
background-color: #fff;
/* Fonts */
font: normal 1em / 1.62em 'Exo 2' sans-serif;
}
h2 {
font-size: 2em;
color: crimson;
}
/* main container for entire site */
/*
.container {
display: flex;
width: 100%;
flex-direction:column;
justify-content: space-between;
align-items: stretch;
align-content: space-between;
}
*/
/* container for header */
.container_header {
display: flex;
flex:0 0 auto;
/*margin: auto;*/
justify-content: space-between;
}
/* container for body */
.container_body {
display: flex;
flex: 1 0 auto;
flex-direction: column;
/*min-height: 1024px;*/
}
/* container for footer */
.container_footer {
display: flex;
flex:0 0 auto;
justify-content: space-between;
}
/* Stylebox-Konfigurator */
/* hide radio buttons */
/*
[type=radio] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
*/
/* hide check boxes */
/* [type=checkbox] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
*/
label {
margin:0 0.5em;
}
/* mouse pointer */
[type=radio] + img,
[type=checkbox] + img {
cursor: pointer;
}
/*
[type=checkbox] + img {
cursor: pointer;
}
*/
/* show border when radio button is activated */
[type=radio]:checked + img {
outline: 3px solid red;
}
/* show border when check box is activated */
[type=checkbox]:checked + img {
outline: 3px solid green;
}
</style>
</head>
<body>
<div class="container_header">
<!-- left area -->
<div>
TRENDline Logo
</div>
<!-- center area -->
<div>
Stylebox Logo
</div>
<!-- right area -->
<div>
<img src="images/leere-stylebox-mit-firmenlogo-und-produktlogo.png" width="133" height="128" alt="produkt logo">
</div>
</div>
<!-- begin main container -->
<div class="container_body">
<h2>Wähle aus, für wen die Stylebox zusammengestellt wird.</h2>
<hr>
<!-- beginn form -->
<form action="stylebox_konfigurator_frau_teileauswahl.php" method="post">
<!-- beginn radio buttons -->
<fieldset>
<label>
<input type="radio" name="radio_geschlecht" value="Mann" hidden>
<img src="images/stylebox_konfigurator_auswahl_mann.png" width="80" height="100" alt="auswahl mann">
</label>
<label>
<input type="radio" name="radio_geschlecht" value="Frau" hidden>
<img src="images/stylebox_konfigurator_auswahl_frau.png" width="76" height="100" alt="auswahl frau">
</label>
<!-- end radio buttons-->
</fieldset>
<input type="submit" name="submit" value="Weiter">
<!-- end form -->
</form>
<!-- end main container -->
</div>
<div class="container_footer">
<!-- left area -->
<div>
Footer 1
</div>
<!-- center area -->
<div>
Footer 2
</div>
<!-- right area -->
<div>
Footer 3
</div>
</div>
</body>
</html>
Can you explain what you did?
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>Flex full page</title>
<!--
The internal CSS should be transferred to an external file
<link rel="stylesheet" href="screen.css" media="screen">
-->
<style media="screen">
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
background-color: #f0f0f0;
font: normal 1em / 1.62em sans-serif;
}
body {
display: flex;
flex-direction: column;
}
body > header,
body > footer {
flex: 0 0 auto;
padding: 1em;
background: #ace;
}
main {
flex: 1 0 auto;
padding: 1em;
background: #def;
}
</style>
</head>
<body>
<header>
<h1>Site Title</h1>
</header>
<main>
<p>Sample Content</p>
</main>
<footer>
<p>Disclaimer Here</p>
</footer>
</body>
</html>
/* google fonts */
@import url('https://fonts.googleapis.com/css?family=Exo+2');
/* body */
html, body {
height: 100%;
margin: 0;
}
body {
display: flex;
flex-direction: column;
font: normal 1em / 1.62em 'Exo 2' sans-serif;
}
/* h2 font */
h2 {
font-family: 'Exo 2';
color: #E30618;
font-size: 2em;
}
/* footer fonts */
.nav_title_footer {
font-family: 'Exo 2';
color: #FFFFFF;
font-size: 16px;
}
.nav_text_footer {
font-family: 'Exo 2';
color: #DDDDDD;
font-size: 12px;
}
/* header section */
.container_header {
flex:0 0 auto;
display: flex;
justify-content: space-between;
height: 150px;
background-color: #1D1E1F;
flex-direction: row;
}
/* body section */
.container_body {
display: flex;
flex: 1 0 auto;
flex-direction: column;
background-color: #FFFFFF;
}
/* footer section */
.container_footer {
flex:0 0 auto;
display: flex;
justify-content: space-between;
height: 200px;
background-color: #E30618;
flex-direction: row;
}
/* label */
label {
margin:0 0.5em;
}
/* mouse pointer */
[type=radio] + img,
[type=checkbox] + img {
cursor: pointer;
}
/* form submit button */
[type=submit] {
border: 0;
background-color: #E30618;
color: #FFFFFF;
}
/* hide radio and checkbox elements */
[type=radio],
[type=checkbox] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
/* show border when radio button is enabled */
[type=radio]:checked + img {
outline: 3px solid red;
}
/* show border when checkbox is enabled */
[type=checkbox]:checked + img {
outline: 3px solid green;
} [edited by: not2easy at 1:47 pm (utc) on Feb 15, 2021]
[edit reason] PLEASE go read the rules [/edit]
.container_header,
.container_body,
.container_footer {
padding: 0.5em 1.25em;
}
<meta charset="utf-8">
<div style="width="100%;>
height: 150px;
height: 200px;