100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSS Questions and Answers £10.96   Add to cart

Exam (elaborations)

CSS Questions and Answers

 4 views  0 purchase
  • Module
  • SPLA
  • Institution
  • SPLA

CSS Questions and Answers An em represents which of the following? The size of the base font in use. The code below will display images in which of the following ways? .container { width: 50%; height: 200px; overflow: hidden;} .container img { max-width: 100%; height: auto; display: block...

[Show more]

Preview 1 out of 3  pages

  • November 11, 2024
  • 3
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • SPLA
  • SPLA
avatar-seller
CSS Questions and Answers
An em represents which of the following? - answer The size of the base font in use.

The code below will display images in which of the following ways?
.container { width: 50%; height: 200px; overflow: hidden;} .container img { max-width:
100%; height: auto; display: block;} - answer Images will shrink to the full width of
their container, scale proportionally, and display partially if the image dimensions
exceed container dimensions.

What are the maximum dimensions of a div with the following properties?
div.container { min-height: 150px; max-height: 600px; min-width: 300px; max-width:
900px;} - answer 600 pixels tall and 900 pixels wide.

What is needed to change the default font size of the root element? - answer A CSS
rule that targets the font-size of the <html> element.

The following code will size all h1 elements in "splash-section" to how many pixels?
html { font-size: 12px;} .splash-section { font-size: 16px;} .splash-section h1 { font-size:
1.5em;} - answer 24 pixels

Which of the following property/value pairs will ensure that the background image of the
div in the code below will scale proportionally while filling the entire div?
div { background-image: url('#'); background-repeat: no-repeat; background-position:
center; /* ? */} - answer background-size: cover;

The following code will set the text of a paragraph inside a .splash-section element to
how many pixels?
html { font-size: 16px;} .splash-section { font-size: 18px;} .splash-section p { font-size:
1.5rem;} - answer 24 pixels

Assume the default font size of a browser is 12 pixels. The following code will size the
paragraph's text to how many pixels?
p { font-size: 1.5em;} - answer 18 pixels

Which of the following is the root element that rems size relative to? - answer <html>

When percentages are used to size padding and width, dimensions are set relative to
which of the following? - answer The width of the parent element.

When percentages are used to size height and width, dimensions are set relative to
which of the following? - answer The parent of a child element.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Pogba119. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £10.96. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£10.96
  • (0)
  Add to cart