Question: M 8 Exercise 1 Create a fluid design In this exercise, you ll convert a page so it uses a fluid layout and scalable images.
M Exercise Create a fluid design
In this exercise, youll convert a page so it uses a fluid layout and scalable images. When youre done, the page will look as shown below when the width of the browser window is reduced. Estima Open the HTML and CSS files that follow and display the page in a browser:
shortexercisestownhallspeakerscxsampson.html
shortexercisestownhallstylescxspeaker.css
Reduce the width of the browser window so its less than the width of the page. That way, youll be able to see how the page changes as you convert it to a fluid design.
Modify the CSS for the body so it takes up of the browser window and so its maximum width is the current width.
Convert the widths of the section, the aside, and the li elements within the navigation menu to percentages.
Convert any left or right margins or padding to percentages. Hint: If any measurements are specified in ems, you can convert them to pixels by multiplying by since thats the base font size.
Make the image in the article scalable so its always percent of the width of the article.
CSS:
the styles for the elements
margin: ;
padding: ;
html
backgroundcolor: white;
body
fontfamily: Arial, Helvetictea, sansd time: to minutes.M Exercise Make the image in the Create a fluid design
In this exercise, youll convert a page so it uses a fluid layout and scalable images. When youre done, the page will look as shown below when the width of the browser window is reduced. Estimated time: to minutes.serif;
fontsize: ;
width: px;
margin: auto;
border: px solid #;
backgroundcolor: #fffded;
a:focus, a:hover
fontstyle: italic;
the styles for the header
header
padding: em em ;
borderbottom: px solid #;
backgroundimage: lineargradient
deg, #fbb #fffded white #fffded #fbb;
header h
fontsize: ;
color: #;
header h
fontsize: ;
fontstyle: italic;
header img
float: left;
padding: px;
shadow
textshadow: px px px #;
the styles for the main content
main
clear: left;
the styles for the section
section
width: px;
float: right;
padding: px px px;
section h
color: #;
fontsize: ;
paddingtop: em;
margin: ;
section p
paddingbottom: em;
article
padding: em ;
article h
fontsize: ;
padding: em ;
article img
float: right;
margin: em em em;
border: px solid black;
aside
width: px;
float: left;
padding: px px;
aside h
color: #;
fontsize: ;
padding: em em ;
#navlist ul
liststyletype: none;
#navlist li a
display: block;
padding: px;
marginbottom: px;
backgroundcolor: #fffded;
color: black;
textdecoration: none;
border: px solid black;
borderradius: px;
boxshadow: px px px #;
backgroundimage: urlimagesrightjpg;
backgroundrepeat: norepeat;
backgroundposition: center;
#navlist li a:hover, #navlist li a:focus
backgroundcolor: #cccccc;
color: #;
footer
backgroundcolor: #;
clear: both;
footer p
textalign: center;
color: white;
padding: em ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
