Technical docpage assistance


this is my technical doc page so far,
I have a few questions…

Right now when its on a full screen you can see there is a rectangle at the bottom? Does anyone know why?

2nd, any ideas how to make the nav bar at the top for mobiles? thanks. (using media queries ofc)

I assume you mean the rectangle at bottom of nav. You have set the navbar to be 100% height but you have not set the a/li items within it to perectly fill that 100%.
To get them to perfectly fill the space you would need to give nav li and nav header responsive heights like 15% I think rather than padding. But that creates other issues like needing to make the font responsive in your nav header.
A media query is the best way to get nav at top ie
You will then need to also change main-doc from margin left to get it beneath the nav. Several ways to do that. I would likely use grid or flex

I suggest you try taking the tests for Responsive Web design again, because it is very important in web designing.

But here is the code given by fcc:

@media only screen and (max-width: 815px) {
  /* For mobile phones: */
  #navbar ul {
    border: 1px solid;
    height: 207px;

  #navbar {
    background-color: white;
    position: absolute;
    top: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 275px;
    border: none;
    z-index: 1;
    border-bottom: 2px solid;

  #main-doc {
    position: relative;
    margin-left: 0px;
    margin-top: 270px;

@media only screen and (max-width: 400px) {
  #main-doc {
    margin-left: -10px;

  code {
    margin-left: -20px;
    width: 100%;
    padding: 15px;
    padding-left: 10px;
    padding-right: 45px;
    min-width: 233px;

I’m not sure that is the issue, I think it might something to do with the font-size I chosen, because when I lower the screen to 965px or below the rectangles are gone…

I mean I rather not look at the example’s code because they also write it differently than mine, I might go over some lessons again to strengthen some knowledge. But if you’re talking about the responsive web design principles the lessons are quite simple tbh.

2nd, any ideas how to make the nav bar at the top for mobiles? thanks. (using media queries ofc)

as you said with media queries, you can change al navs styles on mobile, so is fixed at top, full width (100%), I suggest you that you add an hamburguer menu for the links.

Check out this guides on mdn, have helped me a lot to understand how to position things as I want to: CSS layout - Learn web development | MDN .

About your design, it looks nice but I would add more text and empty spaces, to look more like a document you know several dummie paragraphs and some headings and subheadings.

1 Like

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