Make the navbar stick to the edge

Hello!
This is my first time using SitePoint and I have a very important question for me
I have a navbar, but I have a major problem.

As you can see, the navbar doesn’t consume the full space available. I want it to eat up the space at its left, right, and top. Who can help me?
Thank you!

Hi, melendresalab, Welcome to the forums. :slight_smile:

If you have not done so, please take a few minutes and read our posting guidelines:

Forum POSTING BASICS: (Help us help you!)

There is also a page about forum behavior:

Forum guidelines:
https://www.sitepoint.com/community/faq#civil

Finally, please post a “working page” showing the code that you have written for your page. This helps us determine your level of HTML and CSS expertise and lets us see what you see.

Thanks.

3 Likes

Hi there melendresalab,

and a warm welcome to these forums. :wink:

Open your “styles.css” file and change this…

/* presentational */
body {
  padding: 2%;
  font: 18px/1.4 sans-serif;
}

…to this…

/* presentational */
body {
  margin: 0;
  font: 18px/1.4 sans-serif;
}

coothead

3 Likes

<ot>
Thanks, Mr. C.
I am duly embarrassed to admit that I didn’t recognize the URL in the address bar of the image. redface
</ot>

3 Likes

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