Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

NavBar dropdown issue

Krygore

Bronze Coder
Hey guys, I'm just starting a website for my dad's feed store. I'm working on creating the NavBar component first and having issues with getting it to be a responsive dropdown menu. Below are the pictures of before and after you click on "products" of what it is doing. I'm almost positive that it is a CSS issue, but can't figure out how to resolve this one.

I'm also posting my github repo so that you may clone it down and view the code for yourself. Also, if you have a better way of creating the NavBar, input would be greatly appreciated. I used a text-based tutorial to make this one and I'm not entirely satisfied with it. Thank you in advance!

GitHub repo: GitHub - WebDev-Michael/redneck_feed: A product landing site for Redneck Feed

Before clicking "products":

NavBarIssue.png

After clicking "products":

NavBarIssue1.png

You can see that the "products" tab moves up and the "dropdown" menu stays in line with the rest of the navbar. I'm sure it's something simple, but I've been looking at it for far too long and am burnt out with it.
 
I am wondering if, since this is just a product landing page, it would be better to just do standard HTML and CSS for this project? React seems to be a little overkill for it in my opinion. That and I'm having a hard time understanding how to apply CSS to React components properly.
 
Back
Top Bottom