• 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.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML >How do I create Separate buttons beside the main ones?

Hey Guys,

What HTML/CSS do I use to create a profile and cart button as seen in the image attached. I have my standard buttons but I don't have the profile and cart, the issue is I want them different size and alignment more to the top right. Do they need to be in the navbar or superimposed on it? so to speak


<!DOCTYPE html>
<html lang='en'>

<head>

<title> Home Page </title>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<meta charset="utf-8">

</head>


<body>
<header>
<div class="container">
<img src='images/logo.png' style="width:180px;height:180px alt="logo"
class="logo">



<nav>
<ul>
<li><a href="index.html"> HOME </a></li>
<li><a href="tour.html"> TOUR </a></li>
<li><a href="tickets.html"> BUY TICKETS </a></li>
<li><a href="gallery.html"> GALLERY </a></li>
<li><a href="about.html"> ABOUT </a></li>
</ul>
</nav>
</div>
</header>

<img src='images/pic1.png' alt="home page image" class="image">


<div class="social-icons">
<img src='images/whatsapp.png' style="width:50px;height:50px" alt="whatsapp">
<img src='images/facebook.png' style="width:50px;height:50px" alt="facebook">
<img src='images/insta.png' style="width:50px;height:50px" alt="insta">
<img src='images/twitter.png' style="width:50px;height:50px" alt="twitter">
</div>





</body>

</html>
 

Attachments

  • Home-Page.jpg
    Home-Page.jpg
    214.4 KB · Views: 4
Hi, I guess they are many approaches, but I would put them inside <a> tags and inside the <nav> tag (In the order they appear). Then, I would, in the css, select them using the selector 'nav a img{}' to set their dimension/margin.
 

New Threads

Latest posts

Buy us a coffee!

300x250
Top Bottom