Skip to content

Instantly share code, notes, and snippets.

@parthdesai93
Created March 29, 2016 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parthdesai93/83ea6d22d7ac29c57a0a939fd9f4a40f to your computer and use it in GitHub Desktop.
Save parthdesai93/83ea6d22d7ac29c57a0a939fd9f4a40f to your computer and use it in GitHub Desktop.
Write the CSS for the following: A div with class “navbar”, when nested inside a div with id “header”, should have a width of 100px, a left padding of 10px, and always be visible at a fixed position 30 pixels from the top of the window.
div#header > div.navbar{
width: 100px;
padding-left: 10px;
visibility: visible;
position: fixed;
top: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment