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

HTML course level 7 lesson 5 problem

I have tried different way but it doesnt allow me to pass

<div>
<div style="width:25%;float:left">Sidebar</div>
<div style="width:75%">Main</div>
</div>
by

2 Answers

swapnill9y4e
I think you must add double inverted comma to close % value.
Please try this:
<div>
<div style="width : 25%" ; float : left">Sidebar</div>
<div style="width : 75%">Main</div>
</div>


If you face error, please refresh your page and then try with your code.
virupakshi
<-- This is a answer for level 7 of lesson 5 -->
<!DOCTYPE html>
<html>
<head>
<title> Level 7 </title>
</head>
<body>
<div style="background-color:Orange">
<h1> StudyTonight</h1>
<p><small>Best platform to learn Basic HTML</small>
</p>
</div>
<div>
<div style="width:25% ;float:left">Sidebar</div>
<div style="width:75%">Main</div>
</div>
</body>
</html>

Login / Signup to Answer the Question.