Kazehana
Vivacious Flora
So basically, I'm trying to use html without knowing what I'm doing. What I did figure out is that in editor, my formatting is perfectly fine, but when it is posted, the <style> portion disappears completely ad leaves the entire thing to lose its formatting.
Using the coding from www.w3schools.com/html/tryit.asp?filename=tryhtml_layout_float , the coding is fine, but pasting the exact coding here seems to make it lose its formatting completely. Is there any way to fix this?
Example of what happens posting the exact code from the site
<style type="text/css">
div.container {
width: 100%;
border: 1px solid gray;
}
header, footer {
padding: 1em;
color: white;
background-color: black;
clear: left;
text-align: center;
}
nav {
float: left;
max-width: 160px;
margin: 0;
padding: 1em;
}
nav ul {
list-style-type: none;
padding: 0;
}
nav ul a {
text-decoration: none;
}
article {
border-left: 1px solid gray;
padding: 1em;
overflow: hidden;
}</style>
<div class="container">
<header>
<h1>
City Gallery
</h1>
</header>
<nav>
<ul>
<li>
<a href="#" rel="">London</a>
</li>
<li>
<a href="#" rel="">Paris</a>
</li>
<li>
<a href="#" rel="">Tokyo</a>
</li>
</ul>
</nav>
<article>
<h1>
London
</h1>
<p>
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.
</p>
<p>
Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.
</p>
</article>
<footer>
Copyright © W3Schools.com
</footer>
</div>
Okay so it worked here, but it didn't in the private workshop. Is it just random that it didn't work or is it a thing with private workshop?
Using the coding from www.w3schools.com/html/tryit.asp?filename=tryhtml_layout_float , the coding is fine, but pasting the exact coding here seems to make it lose its formatting completely. Is there any way to fix this?
Example of what happens posting the exact code from the site
<style type="text/css">
div.container {
width: 100%;
border: 1px solid gray;
}
header, footer {
padding: 1em;
color: white;
background-color: black;
clear: left;
text-align: center;
}
nav {
float: left;
max-width: 160px;
margin: 0;
padding: 1em;
}
nav ul {
list-style-type: none;
padding: 0;
}
nav ul a {
text-decoration: none;
}
article {
border-left: 1px solid gray;
padding: 1em;
overflow: hidden;
}</style>
<div class="container">
<header>
<h1>
City Gallery
</h1>
</header>
<nav>
<ul>
<li>
<a href="#" rel="">London</a>
</li>
<li>
<a href="#" rel="">Paris</a>
</li>
<li>
<a href="#" rel="">Tokyo</a>
</li>
</ul>
</nav>
<article>
<h1>
London
</h1>
<p>
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.
</p>
<p>
Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.
</p>
</article>
<footer>
Copyright © W3Schools.com
</footer>
</div>
Okay so it worked here, but it didn't in the private workshop. Is it just random that it didn't work or is it a thing with private workshop?
Last edited by a moderator: