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...





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
















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


















      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;}





























Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here