My buttons show up as one button

this is for my website not codecademy but i need help so have a bunch of buttons in my code but they all show up as one button please help this is my code:

<!DOCTYPE html>
        <link href="" rel="stylesheet">
        <link href="" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="main.css"/>
   <body background: “”>

<div class="button">
<a style="text-decoration: none;"rel="click here" href="index.html"> Home</a>
<a style="text-decoration: none;"rel="click here" href="Blog.html">Blog</a>
<a style="text-decoration:none;"rel="click here"  href="contatct.html">contact me</a>

Hi @princesslana,

I believe you omit your CSS code in your post?

You have only one button because you have only make one div with the class of button.

If you want more, you can try the option of creating more divs enclosing each <a> to create more button classes. Like:

<div class="button"><a href="  ">First</a></div>
<div class="button"><a href="  ">Second</a></div>

I believe your intention is to create a navigation rather than a button, but for further reading using HTML5 element, you can read about what is:


Cheers :slight_smile:

1 Like

thank you so much that is actually really helpful i knew i was doing something wrong

1 Like

and it worked thank you!

1 Like

You’re welcome @princesslana. Glad that it works.

Happy Coding! :smiley:

A small note:
There’s a spelling mistake in your naming path,
href="contatct.html", I think it should be contact.html

1 Like

yeah i fixed it :smile:

1 Like

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