HTML One way of centering a div element  with class name "inner"  inside of another larger div element with class name "outer" with having  inner being 200 X 200 pixels and outer being 400 X 400 pixels would be: (Assume that they are nested in the html file page and NOT decoupled and self-contained)   Both div elements have borders   a.      .inner{ margin-top:200px;                          margin-left:200px; }           b.   div { margin-top:100px;                          margin-left:100px; }             c.      .inner{ margin-top:100px;                          margin-left:100px; }                            d.     .inner{ margin-left: 100px;  }   Given the following html, what would be the correct css to make the ul element red text                                                                                                                                                                                          I'm a paragraph; what color am I?                   I'm another paragraph, what color am I ?              I'm a list item;what color am I?                       a.          div.central.ul   li {color:red;}     b.        div.central{color:red;}   li,ul {color:yellow;}     c.        p.central  ul{color:red;}     d.     div.central ul {color:red;}      div.central{ {color:yellow;}

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

HTML

  • One way of centering a div element  with class name "inner"  inside of another larger div element with class name "outer" with having  inner being 200 X 200 pixels and outer being 400 X 400 pixels would be: (Assume that they are nested in the html file page and NOT decoupled and self-contained)

 

Both div elements have borders

  a.

 

  

.inner{ margin-top:200px;

             

           margin-left:200px; }

       

  b.

 

div { margin-top:100px;

             

           margin-left:100px; }

       

 

  c.

     .inner{ margin-top:100px;

             

           margin-left:100px; }

       

 

            

 

  d.

 

  .inner{ margin-left: 100px;  }

 

  • Given the following html, what would be the correct css to make the ul element red text  

                                                                                                                                                                            

    <html>

    <head>

        <link rel=   "

     

    stylesheet" type="text/css" href="mystyle3300.css">

     

    </head>

     

    <body>

     

     <p class="central">

      I'm a paragraph; what color am I?

      </p>

       

       <div class = "central">

         <p>

        I'm another paragraph, what color am I ?

         </p>

       <ul>

         <li> I'm a list item;what color am I?</  li>

           </ ul>

              </div>

    </body>

    </html>

     

      a.

     

     

         div.central.ul   li {color:red;}

     

      b.

     

     

       div.central{color:red;}

     

    li,ul {color:yellow;}

     

      c.

     

     

       p.central  ul{color:red;}

     

      d.

     

     

    div.central ul {color:red;}

     

     

     div.central{ {color:yellow;}

     





Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Image Element
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education