From 65f58cf9c7fe56b12e912d3ebc093f6b6fe636ca Mon Sep 17 00:00:00 2001 From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com> Date: Sat, 9 Mar 2019 19:35:30 +0530 Subject: [PATCH] Added solution to Move a Relatively Positioned Element with CSS Offsets (#34305) * Update index.md * Update index.md --- .../index.md | 45 +++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/guide/english/certifications/responsive-web-design/applied-visual-design/move-a-relatively-positioned-element-with-css-offsets/index.md b/guide/english/certifications/responsive-web-design/applied-visual-design/move-a-relatively-positioned-element-with-css-offsets/index.md index e5c1ecd3a7..bcb357adc6 100644 --- a/guide/english/certifications/responsive-web-design/applied-visual-design/move-a-relatively-positioned-element-with-css-offsets/index.md +++ b/guide/english/certifications/responsive-web-design/applied-visual-design/move-a-relatively-positioned-element-with-css-offsets/index.md @@ -1,10 +1,49 @@ --- title: Move a Relatively Positioned Element with CSS Offsets --- + + Remember to use **`Read-Search-Ask`** if you get stuck. Try to pair program  and write your own code  + ## Move a Relatively Positioned Element with CSS Offsets -This is a stub. Help our community expand it. +##  Hint: 1 -This quick style guide will help ensure your pull request gets accepted. +Use the `left` property for offsetting the element right. - +> _try to solve the problem now_ + +##  Hint: 2 + +Use the `bottom` property for offsetting the element top. + +> _try to solve the problem now_ + +## Spoiler Alert! + + + +**Solution ahead!** + +The following lines of code solves the challenge: +```html +
+ + + +I still think the h2 is where it normally sits.
+ +``` + +### Code Explanation: + +* The `h2{}` selects the `h2` element. +* `left: 15px;` offsets the `h2` `15px` to the right. +* `bottom: 10px;` offsets the `h2` `10px` to the top.