CSS Styling Images
- Using negative text-indent is also known as __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Using negative text-indent is also known as the Phark method. This is the most common technique that most web developers have used. The main idea is to move the text far outside the browser window by setting a large negative text-indent.
- Using margin is also known as________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Using margin is also used as Radu Darvas technique. This technique also forces the text outside of the browser window but uses margins to do so. The main idea is to apply very large negative left margin and give our header a correspondingly large width.
- Using padding is also known as ________.
-
View Hint View Answer Discuss in Forum
None of these
Correct Option: A
Using padding is known as Langridge method. We push the text outside of our header using padding-top property. The property is to be set to a value that is equal to the height of the logo. But this alone is not sufficient, we have to use overflow: hidden to hide the text.
- Using Small font-size is also known as ____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Using small font-size is known as Lindsay method. Another way to hide text is by making it very small and set its color to the background of the image. This works without affecting accessibility but we can also face SEO penalties because of tiny font size and camouflaged color.
- Using Overflow is known as ______.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In this method, overflow property is used to hide the element completely. Using this technique requires to wrap the text in a <span> element just like the other methods. The text is hidden by overflow: hidden property.