Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About merazgasalim

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. There are many solutions for positioning elements like: 1-make div display as inline-block 2-using float proprieties tell me more what do u want to do and I'll help you
  2. Try this <!DOCTYPE html> <html lang="en"> <head> <title>Average Grade</title> </head> <body> <form> Nubmer Of tests:<input type="number" id="nbr" value="0" min="0" max="3"> Math: <input type="number" id="test1" disabled> <input type="number" id="test2" disabled> <input type="number" id="test3" disabled> <output id="average"></output> <br> <input type="button" value="Calculate" id="calcBtn"> </form> <script> var testNbr = document.getElementB
  3. Yes you can put the width to 80%, just in in your style put the element "width: 80%; " and It will take 80% of the parent width. And also you can put the max-width: 500px; but in devices less than 500px it will be less than 500px (to avoid horizontal scroll bar)
  4. filter: none | blur() | brightness() | contrast() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia() | url(); refer to w3s for more informations
  5. Add this to your style p { margin: 0; } and the space will disappear
  6. As Ingolme said, I modified the postion to sticky with top: 0 and the gap disappears when you scroll down /* Side navigation bar */ .sdnav { display: flex; flex-direction: column; width: 200px; height: 100%; position: sticky; top: 0; overflow: auto; background-color: #f1f1f1; /* light gray */ } <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Portfolio</title> <style> * { box-sizing: border-box; } body { margin: 0; } /* To
  7. remove <main2> and <main> tags and it will be fine. Advices: -Don't use <main> tag like this (it's supposed to be used for the main content of the page- semantic tag in html5).
  • Create New...