- 1

To display Header and Footer

Where is i am wrong <html> <head> <title> web layout </title> <style type="text/css" media="all"> #header{ background-color:skyblue; color:red; text-align:center; padding:5px; margin:4px; } #navigation{ line-height:30px; background-color:#48D1CC; color:black; height:350px; width:110px; float:left; padding:5px; margin:2px; text-align:center; } #section{ width:350px; float:left; padding:10px; } #footer { background-color:black; color:white; clear:both; text-align:center; padding:5px; } </style> </head> <body> <div id="header"> <h1>HEADER</h1> </div> <div id="navigation"> <h1> home</h1> <h2> about </h2> <h3> contect</h3> </div> <div id ="section"> <p> this is my web page<br> you must visit here <br>and enjoy some spical <br>video and template<br> i hope you will<br> enjoy this </p>

1st May 2020, 1:25 PM
Mohammed Danish Shareef Ismaily
3 Respuestas
+ 2
Abhay and Lean: I guess the code was copied-pasted without the OP noticing that is code was truncated due to the char length limit of posts ^^ Mohammed Danish Shareef Ismaily instead of copy your code inside (and instead of providing an accurate) description field, rather paste a link to your code, as this: https://code.sololearn.com/W9jtJY7DN49h/?ref=app (link can be copied from the code playground using the share button -- top right 3 dots linked by two lines ;)) Anyway, nothing seems wrong from an external point of view: you need to be more descriptive in what you're expecting as result, versus what you're actually getting ^^
1st May 2020, 7:46 PM
visph
visph - avatar
0
There is no id with footer in body and it is working as it is intended to be
1st May 2020, 1:44 PM
Abhay
Abhay - avatar
0
you did not declare footer in the body
1st May 2020, 2:22 PM
tres