the html is like this  1.css .box1 { background-color: black;  border: 15px;  color: rgb(255, 0, 43);  height: 600px;  padding-top: 10px;  position: absolute;  left: 50px;  text-align: center;  top: 150px;  width: 350px; } .box2 { background-color: blue; border: 15px; color: rgb(255, 115, 0);  height: 600px; padding-top: 10px; position: absolute; right: 150px;  text-align: center; top: 150px; width: 350px; } #borrow { border-color: white; bottom: 10px; left: 0; margin: 0 auto; position: absolute; right: 0; width: 350px; } #return { border-color: white; bottom: 10px; left: 0; margin: 0 auto; position: absolute; right: 0; width: 350px; } html   books    library page                                                  《tomandjerry》 author tom                                                          《THIS IS A BOOK LIST 》 author LIST                                           《MARKHAM》 author MARK                                          《DONT GO ANYWHERE 》 author ANNY                                          《SDRWGB》 author GHI                                          《BOOK LIST 1 》 author KOLG                                          《BOOK LIST 2》 author KOWLG                                          《ANNY BOOKS 》 author JUMP                                                          《HOW TO RUN 》 author RUN                                          《HOW TO SWIM》 author SWIM                                          《HOW TO JUMP 》 author JUMP                     borrow                                     {{username}}                 Log Out             return           the CSS have some mistake ,how could i change it to make the box 1 shows in the left ,box 2 in the right side of the page ?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

the html is like this 

1.css

.box1
{ background-color: black; 
border: 15px; 
color: rgb(255, 0, 43); 
height: 600px; 
padding-top: 10px;
 position: absolute; 
left: 50px; 
text-align: center; 
top: 150px;
 width: 350px;

}

.box2

{

background-color: blue;

border: 15px;

color: rgb(255, 115, 0); 
height: 600px;

padding-top: 10px;

position: absolute;

right: 150px;
 text-align: center;

top: 150px;

width: 350px;

}

#borrow

{

border-color: white;

bottom: 10px; left: 0;

margin: 0 auto; position: absolute; right: 0;

width: 350px;

}

#return

{

border-color: white;

bottom: 10px; left: 0;

margin: 0 auto;

position: absolute;

right: 0;

width: 350px;

}
html

<html>

<head>

<meta charset="UTF-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel ="shortcut icon" href="/assets/images/favicon.ico" type="image/x-icon">
 <link rel="stylesheet" type="text/css" href="1.css">
<title>books </title>


</head>

<body>

 

<br>

<label class="index">  library page </label>

<br clear="all">

<br><br>
<article class="box1">
    <section id="books page">
            <form method="POST" action="/booklist">
            </form>
<label class="books" for="BOOKS" title="BOOKS">
                     《tomandjerry》 author tom &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
                <br clear="all">
<label class="books" for="BOOKS" title="BOOKS">
                     《THIS IS A BOOK LIST 》 author LIST  &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《MARKHAM》 author MARK &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《DONT GO ANYWHERE 》 author ANNY &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《SDRWGB》 author GHI &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《BOOK LIST 1 》 author KOLG &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《BOOK LIST 2》 author KOWLG &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
<label class="books" for="BOOKS" title="BOOKS">
                     《ANNY BOOKS 》 author JUMP &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
                </label>
<br clear="all">
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《HOW TO RUN 》 author RUN &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《HOW TO SWIM》 author SWIM &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
</label>
<label class="books" for="BOOKS" title="BOOKS">
                     《HOW TO JUMP 》 author JUMP &nbsp;&nbsp;&nbsp;<input type="checkbox" name="BOOK1" id="1111" value="tomand jerry by tom ">
                </label>
<br clear="all">
</label>
</div>
<br>
<br>
<br>
<br>
<button id="borrow" disabled="">borrow</button>
</div>

 
 


<article class="box2">
    <section id="loggedUser">
            <form method="POST" action="/logout">
                <label id="logName">{{username}}</label>
                <button id="logOut">Log Out</label>
            </form>
<br>
<br>
<br>
<button id="return" disabled="">return</button>
        </section>

</div>

</body>

</html>

</html>

 

the CSS have some mistake ,how could i change it to make the box 1 shows in the left ,box 2 in the right side of the page ?

library page
(tomandjerry> author tom
(THIS IS A BOOK LIST > author LIST I
(MARKHAM) author MARK
(DONT GO ANYWHERE > author ANNY
(SDRWGB) author GHI
hor KOLG
{username}} Log Out
or KOWLG
thor JUMP
uthor RUN
thor SWIM
ithor JUMP
return
Transcribed Image Text:library page (tomandjerry> author tom (THIS IS A BOOK LIST > author LIST I (MARKHAM) author MARK (DONT GO ANYWHERE > author ANNY (SDRWGB) author GHI hor KOLG {username}} Log Out or KOWLG thor JUMP uthor RUN thor SWIM ithor JUMP return
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Properties of CSS
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT