what would the code look like if the instructions say Modify
what would the code look like if the instructions say:
Modify the footer area. Add style declarations to the footer element selector to clear floats and set a 180px left margin.
Solution
Suppose if it is in HTML:-
In JavaScript:-
-----------------------
and you have an object of footer as obj
Then:-
you can change the stypes using
obj.style = \'clearleft;left:180px; margin-left: 180px;\' ; //only left will get clear
obj.style = \'clearleft;right:180px; margin-left: 180px;\' ; //only right will get clear
obj.style = \'clearleft;both:180px; margin-left: 180px;\' ; //both will get clear
-------------------------------------------------------------
OR
----------------------------------------------------------------
you can just include:-
CSS property as:-
footer {
clear: both;
margin-left: 180px;
}
Please let me know need more information.
Thanks
