Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

HTML: LEVEL-7>Lesson-4 solution plz

Kindly, help me complete this exercise. I am stuck! kindly provide me with proper code. I applied below code but it shows "Add the Sidebar <div> and include the text Sidebar in it."

<!-- CODE: -->
<!doctype html>
<html>
<head>
<title>My webpage</title>
</head>
<body>
<!-- Header -->
<div style="overflow:auto">
<div style="width:25%;float:left;">
Sidebar
</div>
<div style="width:75%">
Main Content
</div>
</div>
</body>
</html>
by

1 Answer

Divyafl388
Maybe this can help you

<!doctype html>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<!-- Header -->
<div style="background-color:Orange; text-align:center">
<h1>This is a header</h1>
<p>Header content goes here...</p>
</div>

<!-- New div for sidebar & main content -->
<div style="overflow:auto">
<div style="width:25% ; float:left">Sidebar</div>
<div style="width:75%">Main</div>
</div>

<!-- Footer -->
<hr>
<div style="text-align:center">
&copy; My Webpage
</div>
</body>
</html>

Login / Signup to Answer the Question.