roy_sanu
asked on
setting html sections
How to set the header and footer and aside bar size in the html,
do we need to do in css or in the html. pls provide me the syntax
thanks
do we need to do in css or in the html. pls provide me the syntax
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<header> <footer> and <aside> are block level elements that you style the same way as you do with divs.
However they are only recognized in modern browsers that support HTML5.
If you are supporting old browsers, then to have them correctly render these tags you need to use a shim by adding this to the head of the page:
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Cd&
However they are only recognized in modern browsers that support HTML5.
If you are supporting old browsers, then to have them correctly render these tags you need to use a shim by adding this to the head of the page:
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Cd&
<body>
<div id="header">
header contents
</div>
<div id="main page">
content of main page
</div>
<div id="footer">
footer contents
</div>
</body>
</html>
i'm not sure i understand your needs. the header/footer concept is not really something that meaningfull in html
the scrollbar will be handled by the browser and appear when needed
if you want the same headers and footers, in each PRINTED page, you can do this with css but the compatibility will be erratic at best