Skip to content

Commit

Permalink
Remove CSS from the right example...
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Feb 14, 2024
1 parent a0954af commit 698467d
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions files/en-us/learn/javascript/building_blocks/conditionals/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,37 @@ function outputDocument(code) {
<ul></ul>
</div>`;

const outputStyle = `
.output * {
box-sizing: border-box;
}
.output ul {
padding-left: 0;
}
.output li {
display: block;
float: left;
width: 25%;
border: 2px solid white;
padding: 5px;
height: 40px;
background-color: #4a2db6;
color: white;
}
html {
font-family: sans-serif;
}
h2 {
font-size: 16px;
}`;
return `
<!doctype html>
<html>
<head>
<style>${outputStyle}</style>
</head>
<body>
${outputBody}
Expand Down Expand Up @@ -755,37 +782,10 @@ function outputDocument(code) {
<h1>This is my website</h1>
</div>`;

const outputStyle = `
.output * {
box-sizing: border-box;
}
.output ul {
padding-left: 0;
}
.output li {
display: block;
float: left;
width: 25%;
border: 2px solid white;
padding: 5px;
height: 40px;
background-color: #4a2db6;
color: white;
}
html {
font-family: sans-serif;
}
h2 {
font-size: 16px;
}`;
return `
<!doctype html>
<html>
<head>
<style>${outputStyle}</style>
</head>
<body>
${outputBody}
Expand Down

0 comments on commit 698467d

Please sign in to comment.