What if you desired to screen the routing bar side across the site instead of top to bottom down the page? The reason details run down the site by standard is that they are block-level components in HTML.
As above described, block-level components instantly complete the available space.
With that in mind, we can easily create a record screen side by specifying it should be shown as an inline factor instead of a block-level factor with display: inline. Following figure reveals a very basic unordered record, with a style piece used to turn it into a horizontally routing bar.
The list code looks like the following:
<ul id="navlist">
<li class="active">Home</li>
<li><a title="LINK: About Us" href="aboutus.html">About Us</a></li>
<li><a title="LINK: Services" href="services.html">Services</a></li>
<li><a title="LINK: Clients" href="clients.html">Clients</a></li>
<li><a title="LINK: Contact Us" href="contactus.html">Contactus</a></
li>
</ul>
And the style sheet looks like that shown next:



0 comments:
Post a Comment