I want to make a horizontally laid website, but I'm having problems displaying: a built-in rule.
It looks like it focuses on built-in navigation disordered lists, completely rewriting the height and width set for articles (and or sections) in CSS.
Here is the html:
<div id="container">
<section id="about" class="first">
<article>
About Us
</article>
</section>
<section id="projects">
<article>
Project 1
</article>
<article>
Project 2
</article>
<article>
Project 3
</article>
<article>
Project 4
</article>
<article>
Project 5
</article>
</section>
<section id="blog">
<article>
Blog 1
</article>
<article>
Blog 2
</article>
<article>
Blog 3
</article>
<article>
Blog 4
</article>
<article>
Blog 5
</article>
</section>
<section id="contact">
<article>
Contact
</article>
</section>
<section id="tweets">
<article>
Tweets
</article>
</section>
<section id="comments">
<article>
Comments
</article>
</section>
<section id="links">
<article>
Links
</article>
</section>
</div>
Here is the CSS:
#container{
height: 600px;
display: inline;
}
section{
display: inline;
}
article{
height: 600px;
width: 300px;
display: inline;
}
It looks like this:
http://danixd.com/archive/html5.html
Any ideas?
source
share