Technical Documentation Styling

https://codepen.io/_Unkown/pen/dyvVKpy I Completed the task but I tried to look through css to see why sidenav doesn’t show I was thinking because class and id hierarchy didn’t any display : none , please at @ me with a reply

You need to revisit you page @_manual. Some things;

  • Codepen provides the boilerplate for you. It only expects the code you’d put within the body element in the HTML editor. (No need to include the body tags). For anything you want to add to the <head> element click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.
  • Run your HTML code through the W3C validator.
    • There are HTML syntax/coding errors you should be aware of and address.
    • Since copy/paste from codepen you can ignore the first warning and first two errors.
  • Do not use the <br> element to force line breaks or spacing. That’s what CSS is for.
    • Reference MDN Docs
      overflow-x: hidden; will completely hide anything that extends outside its container element horizontally. It’s recommended to not do this, and refactor your CSS to be more responsive - otherwise it is possible for your site to appear to be missing content.
  • One of the main styling parts of this project is On regular sized devices (laptops, desktops), the element with id="navbar" should be shown on the left side of the screen and should always be visible to the user.
    • The navbar is hidden. It can only be seen when the user scrolls slightly and finds the “open” JS link. When that happens the text of the document is hidden. This project can (and probably should) be completed without using an JS unless you know JS well and can meet the user requirement while using it.

You have the following chunk of code in CSS that is not used. Why have it?

.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.