Link to home
Start Free TrialLog in
Avatar of roy_sanu
roy_sanuFlag for India

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
Avatar of skullnobrains
skullnobrains

<html>
<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
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<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&