* chore(learn): audit files for crowdin Audits the challenge text in the Responsive Web Design superblock to account for words/phrases that should not be translated because they refer to code. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> * fix: remove quotes from code Removes instances of quoted code blocks, or code blocked quotes. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> * fix: additional uncaught quote-codes Thanks Oliver :) Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * fix: so many quotes Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix: missing punctuation Noted in a Crowdin comment. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> * fix: remove more quotes Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
		
			
				
	
	
		
			139 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			139 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
id: 587d781c367417b2b2512ac0
 | 
						|
title: Use the text-transform Property to Make Text Uppercase
 | 
						|
challengeType: 0
 | 
						|
videoUrl: 'https://scrimba.com/c/cvVZQSP'
 | 
						|
forumTopicId: 301081
 | 
						|
dashedName: use-the-text-transform-property-to-make-text-uppercase
 | 
						|
---
 | 
						|
 | 
						|
# --description--
 | 
						|
 | 
						|
The `text-transform` property in CSS is used to change the appearance of text. It's a convenient way to make sure text on a webpage appears consistently, without having to change the text content of the actual HTML elements.
 | 
						|
 | 
						|
The following table shows how the different `text-transform`values change the example text "Transform me".
 | 
						|
 | 
						|
<table class='table table-striped'><thead><tr><th>Value</th><th>Result</th></tr></thead><tbody><tr><td><code>lowercase</code></td><td>"transform me"</td></tr><tr><td><code>uppercase</code></td><td>"TRANSFORM ME"</td></tr><tr><td><code>capitalize</code></td><td>"Transform Me"</td></tr><tr><td><code>initial</code></td><td>Use the default value</td></tr><tr><td><code>inherit</code></td><td>Use the <code>text-transform</code> value from the parent element</td></tr><tr><td><code>none</code></td><td><strong>Default:</strong> Use the original text</td></tr></tbody></table>
 | 
						|
 | 
						|
# --instructions--
 | 
						|
 | 
						|
Transform the text of the `h4` to be uppercase using the `text-transform` property.
 | 
						|
 | 
						|
# --hints--
 | 
						|
 | 
						|
The `h4` text should be `uppercase`.
 | 
						|
 | 
						|
```js
 | 
						|
assert($('h4').css('text-transform') === 'uppercase');
 | 
						|
```
 | 
						|
 | 
						|
The original text of the h4 should not be changed.
 | 
						|
 | 
						|
```js
 | 
						|
assert($('h4').text() !== $('h4').text().toUpperCase());
 | 
						|
```
 | 
						|
 | 
						|
# --seed--
 | 
						|
 | 
						|
## --seed-contents--
 | 
						|
 | 
						|
```html
 | 
						|
<style>
 | 
						|
  h4 {
 | 
						|
    text-align: center;
 | 
						|
    background-color: rgba(45, 45, 45, 0.1);
 | 
						|
    padding: 10px;
 | 
						|
    font-size: 27px;
 | 
						|
 | 
						|
  }
 | 
						|
  p {
 | 
						|
    text-align: justify;
 | 
						|
  }
 | 
						|
  .links {
 | 
						|
    text-align: left;
 | 
						|
    color: black;
 | 
						|
    opacity: 0.7;
 | 
						|
  }
 | 
						|
  #thumbnail {
 | 
						|
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
 | 
						|
  }
 | 
						|
  .fullCard {
 | 
						|
    width: 245px;
 | 
						|
    border: 1px solid #ccc;
 | 
						|
    border-radius: 5px;
 | 
						|
    margin: 10px 5px;
 | 
						|
    padding: 4px;
 | 
						|
  }
 | 
						|
  .cardContent {
 | 
						|
    padding: 10px;
 | 
						|
  }
 | 
						|
  .cardText {
 | 
						|
    margin-bottom: 30px;
 | 
						|
  }
 | 
						|
</style>
 | 
						|
<div class="fullCard" id="thumbnail">
 | 
						|
  <div class="cardContent">
 | 
						|
    <div class="cardText">
 | 
						|
      <h4>Alphabet</h4>
 | 
						|
      <hr>
 | 
						|
      <p><em>Google was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</em></p>
 | 
						|
    </div>
 | 
						|
    <div class="cardLinks">
 | 
						|
      <a href="https://en.wikipedia.org/wiki/Larry_Page" target="_blank" class="links">Larry Page</a><br><br>
 | 
						|
      <a href="https://en.wikipedia.org/wiki/Sergey_Brin" target="_blank" class="links">Sergey Brin</a>
 | 
						|
    </div>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
```
 | 
						|
 | 
						|
# --solutions--
 | 
						|
 | 
						|
```html
 | 
						|
<style>
 | 
						|
  h4 {
 | 
						|
    text-align: center;
 | 
						|
    background-color: rgba(45, 45, 45, 0.1);
 | 
						|
    padding: 10px;
 | 
						|
    font-size: 27px;
 | 
						|
    text-transform: uppercase;
 | 
						|
  }
 | 
						|
  p {
 | 
						|
    text-align: justify;
 | 
						|
  }
 | 
						|
  .links {
 | 
						|
    text-align: left;
 | 
						|
    color: black;
 | 
						|
    opacity: 0.7;
 | 
						|
  }
 | 
						|
  #thumbnail {
 | 
						|
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
 | 
						|
  }
 | 
						|
  .fullCard {
 | 
						|
    width: 245px;
 | 
						|
    border: 1px solid #ccc;
 | 
						|
    border-radius: 5px;
 | 
						|
    margin: 10px 5px;
 | 
						|
    padding: 4px;
 | 
						|
  }
 | 
						|
  .cardContent {
 | 
						|
    padding: 10px;
 | 
						|
  }
 | 
						|
  .cardText {
 | 
						|
    margin-bottom: 30px;
 | 
						|
  }
 | 
						|
</style>
 | 
						|
<div class="fullCard" id="thumbnail">
 | 
						|
  <div class="cardContent">
 | 
						|
    <div class="cardText">
 | 
						|
      <h4>Alphabet</h4>
 | 
						|
      <hr>
 | 
						|
      <p><em>Google was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</em></p>
 | 
						|
    </div>
 | 
						|
    <div class="cardLinks">
 | 
						|
      <a href="https://en.wikipedia.org/wiki/Larry_Page" target="_blank" class="links">Larry Page</a><br><br>
 | 
						|
      <a href="https://en.wikipedia.org/wiki/Sergey_Brin" target="_blank" class="links">Sergey Brin</a>
 | 
						|
    </div>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
```
 |