Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <nav id="navbar">
  <header class="navHeader">PC Parts Quick Links</header>
  <ul>
    <li class="nav-list"><a class="nav-link" href=#Motherboard>Motherboard</a>
    <li class="nav-list"><a class="nav-link" href=#Central_Processing_Unit>Central Processing Unit</a>
      <li class="nav-list"><a class="nav-link" href=#RAM>RAM</a>
        <li class="nav-list"><a class="nav-link" href=#Graphics_Card>Graphics Card</a>
          <li class="nav-list"><a class="nav-link" href=#Internal_Storage>Internal Storage</a>
            <li class="nav-list"><a class="nav-link" href=#Peripherals>Peripherals</a>
    
  </ul>
  
</nav>

<Main id="main-doc">PC Hardware
  <img src="https://www.bask.com/assets/uploads/blog/Inside-your-PC-tower.png" alt="Inside PC Tower"> 
  <div id="Topics">
    <br></br>
    <section class="main-section" id="Motherboard"><header><u>Motherboard</u></header>
      <p>The motherboard is the main circuit board of your computer and is also known as the mainboard or logic board. If you ever open your computer, the biggest piece of silicon you see is the motherboard. Attached to the motherboard, you'll find the CPU, ROM, memory RAM expansion slots, PCI slots, and USB ports. It also includes controllers for devices like the hard drive, DVD drive, keyboard, and mouse. Basically, the motherboard is what makes everything in your computer work together.</p>
      <p><u>Size Matters:</u><br></br>ATX is the de facto standard and offers the most space for plugs and slots.
Micro-ATX is 2.4-inches shorter, which means less room for expansion slots.
Mini-ITX can make for a tiny PC, but you’ll usually only have room for one add-in card (like a graphics card), and fewer connectors for storage and RAM.</p> 
      <ul>Popular Brands
        <li>ASUS</li>
        <li>Asrock</li>
        <li>MSI</li>
        <li>EVGA</li>
        <li>Gigabyte</li>
      </ul>
       <code>const pcHardware = "Motherboard"</code>
    </section>
    
      <section class="main-section" id="Central_Processing_Unit"><header><u>Central Processing Unit</u></header>
      <p>Stands for "Central Processing Unit." The CPU is the primary component of a computer that processes instructions. It runs the operating system and applications, constantly receiving input from the user or active software programs. It processes the data and produces output, which may be stored by an application or displayed on the screen.</p>
      <code>const pcHardware = "Central Processing Unit"</code>
        <ul>Popular Brands
        <li>Intel</li>
        <li>AMD</li>
      </ul>
    </section>
    
    <section class="main-section" id="RAM"><header><u>RAM</u></header>
      <p>Random access memory (RAM) is a computer's short-term memory, which it uses to handle all active tasks and apps. None of your programs, files, games, or streams would work without RAM. Here, we’ll explain exactly what RAM is, what RAM means, and why it’s so important. Then, learn how to lighten the load on your computer’s RAM with a specialized performance booster.</p>
       <ul>Types of RAM
        <li>DDR3</li>
        <li>DDR4</li>
        <li>DDR5</li>
      </ul>
      <code>const pcHardware = "RAM"</code>
    </section>
    
    <section class="main-section" id="Graphics_Card"><header><u>Graphics Card</u></header>
      <p>A graphics card is a type of display adapter or video card installed within most computing devices to display graphical data with high clarity, color, definition and overall appearance. A graphics card provides high-quality visual display by processing and executing graphical data using advanced graphical techniques, features and functions.</p>
      <p>A graphics card is primarily designed to remove the graphical processing tasks from the processor or RAM. It includes a dedicated graphical processing unit (GPU) and a dedicated RAM that help it to process graphical data quickly. Like most processors, a graphics card also has a dedicated heat sink to keep the heat out of the GPU. A graphics card enables the display of 3-D images, image rasterization, higher pixel ration, a broader range of colors and more. Moreover, a graphics card includes various expansion ports such as AGP, HDMI, TV and multiple monitor connectivity. A graphics card can be integrated within the motherboard or be added on as an extension card.</p>
       <ul>Popular Brands
        <li>nVidia</li>
        <li>AMD</li>
      </ul>
       <code>const pcHardware = "Graphics Card"</code>
    </section>
    
    <section class="main-section" id="Internal_Storage"><header><u>Internal Storage</u></header>
      <p>The hard drive is what stores all your data. It houses the hard disk, where all your files and folders are physically located. A typical hard drive is only slightly larger than your hand, yet can hold over 100 GB of data. The data is stored on a stack of disks that are mounted inside a solid encasement. These disks spin extremely fast (typically at either 5400 or 7200 RPM) so that data can be accessed immediately from anywhere on the drive. The data is stored on the hard drive magnetically, so it stays on the drive even after the power supply is turned off.</p>
      <p>A solid-state drive (SSD) is a new generation of storage device used in computers. SSDs use flash-based memory, which is much faster than a traditional mechanical hard disk. Upgrading to an SSD is one of the best ways to speed up your computer. Learn how SSDs work and how to keep them optimized with a specialized performance-boosting tool.</p>
         <ul>Types of Internal Storage
        <li>NVME SSD</li>
        <li>SATA SSD (2.5")</li>
        <li>Hard Drive (2.5" or 3.5")</li>
      </ul>
        <code>const pcHardware = "Internal Storage"</code>
    </section>
    
    <section class="main-section" id="Peripherals"><header><u>Peripherals</u></header>
      <p>Say you just bought a new computer and, with excitement, you unpack it and set it all up. The first thing you want to do is print out some photographs of the last family party. So it's time to head back to the store to buy a printer. A printer is known as a peripheral device.
</p>
      <p>A computer peripheral is a device that is connected to a computer but is not part of the core computer architecture. The core elements of a computer are the central processing unit, power supply, motherboard and the computer case that contains those three components. Technically speaking, everything else is considered a peripheral device. However, this is a somewhat narrow view, since various other elements are required for a computer to actually function, such as a hard drive and random-access memory (or RAM).</p>
        <ul>Periphals include things such as:
        <li>Chassis Fans</li>
        <li>CPU Fans</li>
        <li>Monitors</li>
        <li>Keyboard and Mouse</li>
        <li>PC Case</li>
      </ul>
     <code>const pcHardware = "Peripherals"</code>
    </section>
    
  </div>
  </main>
              
            
!

CSS

              
                
main {
  text-align: center;
  font-family: trebuchet ms;
  font-size: 200%;
  margin-left: 20%;}

img {
  max-width: 20%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  margin-bottom: -40px;
}

@media screen and (max-width: 1300px) 
{main {
  margin-left: 375px;
  font-size: 170%;
  }}

.navHeader {
  font-size: 140%;
  font-family: trebuchet ms;
  text-align: center;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  top: 0px;
  left: 0px;
  height: 600px;
  border-right: solid;
  border-width: 2px;
  background-color: mediumseagreen;
}

@media screen and (max-width: 1300px) {
  #navbar {
    width: 30%
  }
}

.nav-link{
  font-family: trebuchet ms;
  font-size: 500%;
  list-style-type: none;
  text-align: left;
}

@media screen and (max-width: 600px){
  .nav-list {
    font-size: 40%
  }
}

.nav-list {
  list-style-type:none;
  text-align: left;
  margin: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  
}

a {
  text-decoration: none;
  color: black;
}
  
header {
  font-size: 75%;
}

p{
  font-size: 55%;
}

code {
  font-size: 40%
}

ul {
  font-size: 60%;
  margin-left: -2%;
}

li {
  font-size: 45%;
  margin-left: 48.5%;
  text-align: left;
}

              
            
!

JS

              
                ;
              
            
!
999px

Console