Modify the CSS below to float to the right the first image with floatright class, to float to the left the second image with floatleft class, and to clear floating elements on both sides of the p element with nofloats class.       body {   font: 10pt monospace;} img {   width: 160px;   padding: 2px;   border: 1px solid gray;   margin: 5px 10px;} img.floatright {   /* TODO: Add CSS here */} img.floatleft {   /* TODO: Add CSS here */} .nofloats {   /* TODO: Add CSS here */}

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter4: Graphic Design With Css: Creating A Graphic Design For A Genealogy website
Section: Chapter Questions
Problem 4CP4
icon
Related questions
Question

Modify the CSS below to float to the right the first image with floatright class, to float to the left the second image with floatleft class, and to clear floating elements on both sides of the p element with nofloats class.

 

 

 

body {
   font: 10pt monospace;
}

img {
   width: 160px;
   padding: 2px;
   border: 1px solid gray;
   margin: 5px 10px;
}

img.floatright {
   /* TODO: Add CSS here */
}

img.floatleft {
   /* TODO: Add CSS here */
}

.nofloats {
   /* TODO: Add CSS here */
}

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

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
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT