It appears that the pixel sizes are different than what was originally designed

In my project, I have a header panel where the burger button is designed with a width of 32px and height of 24px.

.header {
    display: flex;
    font-weight: bold;
    font-size: 50px;
    height: 100px;
    border: 1px solid black;
    position: relative;
    justify-content: space-between;
    align-items: center;
}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>blueeye</title>
    <link rel="stylesheet" href="index.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100&display=swap" rel="stylesheet">
</head>
<body>
    <div class="header">
        <div class="logo">
            <span class="logoStart">blue</span><span class="logoEnd">eye</span>
        </div>

        <div class="BurgerMenu">
            <div class="menuLine menuLine1"></div>
            <div class="menuLine menuLine2"></div>
            <div class="menuLine menuLine3"></div>
        </div>
    </div>
</body>
</html>
* {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
}

.header {
    display: flex;
    font-weight: bold;
    font-size: 50px;
    height: 100px;
    border: 1px solid black;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 16px;
    font: normal normal bold 40px/49px Montserrat;
}

.logoStart {
    color: #041731;
}

.logoEnd {
    color: #1B6FE0;
}

.menuLine {
    height: 6px;
    width: 32px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background-color: #041731;
    margin-bottom: 3px;
}

.BurgerMenu {
    margin-right: 16px;
}

* {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
}

.header {
    display: flex;
    font-weight: bold;
    font-size: 50px;
    height: 100px;
    border: 1px solid black;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 16px;
    font: normal normal bold 40px/49px Montserrat;
}

.logoStart {
    color: #041731;
}

.logoEnd {
    color: #1B6FE0;
}

.menuLine {
    height: 6px;
    width: 32px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background-color: #041731;
    margin-bottom: 3px;
}

.BurgerMenu {
    margin-right: 16px;
}


When viewing in the browser, I see this https://i.sstatic.net/UBV5j.png

However, in the design, it seems that the burger icon is larger. Even though I've set the parameters for height and width as in the design.

The header in the design looks like this https://i.sstatic.net/gibFq.png

What am I doing wrong that I can't achieve the same view as in the design?

Answer №1

<meta name="viewport" content="width=device-width, initial-scale=1">

It would be beneficial to incorporate this into my HTML webpage.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Display all elements on a webpage using Javascript without the need for scrolling

I'm looking for a way to ensure all items on a webpage load immediately, without having to scroll down multiple times before running a script to find a specific item. Is there a method to have all items load at once without the need to manually scroll ...

Inject parameters into the templateUrl property of an Angular component

In this scenario, my component object is structured as follows: var options = { bindings: { title: '<', rows: '<' }, controller: registers, templateUrl: function ($element, $attrs) { return ...

Utilizing grease/tampermonkey (or any other browser extension) to filter out specific characters within webpage elements

Forgive me if my language is not accurate, as I am still learning about programming. The forum that I visit has cluttered the page with unnecessary and glitchy images and text for a promotion. This has made the forum difficult to navigate. I was successful ...

Previewing multiple images with multiple file inputs

I am trying to find a way to preview multiple images uploaded from different inputs. When the button is pressed, the content from a textarea containing <img src="$img" id="img1"> is written inside a div called seeimg. The IDs for these images range f ...

Tooltipster fails to function with elements that are dynamically created

I've been struggling with this issue for several days now, but I can't seem to find a solution. In my JavaScript code, I have a function that generates HTML after an Ajax call is completed. I call this function in the following manner: $(documen ...

Double Ajax calls being made in Laravel application

I am working on a Laravel application for managing tasks. The application has a form with four fields: one for the CSRF token, two hidden fields for IDs, and an input field to capture the task title. For submitting the form, I have implemented AJAX. Howev ...

How to Achieve a Fixed Bottom Footer in Ember Framework

Hello, I am working on an Ember application and trying to implement a Sticky Footer feature. I followed a tutorial on Sticky Footer On CSS-Tricks which worked for me previously, but it seems to not work with Ember. Here is my CSS code: .mainFooter { ...

I'm encountering an issue when trying to build a React application

Unable to perform EPERM operation, the command "mkdir c:" is not found when trying to create a React app using npx create-react-app myapp ...

Placing a hyperlink within template strings

Currently, I am working on implementing a stylish email template for when a user registers with their email. To achieve this, I am utilizing Express and Node Mailer. Initially, my code appeared as follows: "Hello, " + user.username + ",&bs ...

Impose a delay between the execution of two functions in React.js

Looking for a way to introduce a forced delay between two consecutive function calls. Essentially, what I want to achieve is: a // call func a delay(100) // pause for 100 ms b // call func b Is there a method to accomplish this? Update: attempted a() ...

Inspect every div for an id that corresponds to the values stored in an array

I am in the process of developing a series of tabs based on a preexisting set of categories using the JavaScript code below. Now, I am looking to expand this functionality to target specific IDs within the DIV ID corresponding to values from an array in JS ...

Optimizing Three.js for better performance

Recently, I delved into working with three.js and webgl for a personal project. My goal was to develop a wardrobe model based on user input. You can check out the project at this link: Initially, the rendering speed was fast and smooth without Materials a ...

The asp:TextBox functionality encounters issues when used within the asp:Placeholder element using C#

I'm attempting to dynamically add TextBoxes controls based on items in my database. Below is the asp:PlaceHolder snippet from my .aspx page: <asp:PlaceHolder ID="PlaceHolderHTML" runat="server"></asp:PlaceHolder> From my C# code, I am ge ...

In what scenarios is it most beneficial to utilize an isolate scope in Angular?

The AngularJS guide states that the isolate scope of a directive isolates everything except models explicitly added to the scope: {} hash object. This is useful for building reusable components because it prevents unintended changes to your model state, al ...

"Discover the process of sending a JSON value from a PHP page to an HTML page using AJAX, and learn how to display the resulting data

I am currently validating an email ID using PHP and AJAX, with the intention of returning a value from the PHP page to the HTML in JSON format. My goal is to store this return value in a PHP variable for future use. All of this is being executed within C ...

Can you explain the steps to implement this feature in a modal window using jQuery?

My HTML list contains a bunch of li elements. ul li img .det li I am looking to create a modal popup that appears when I click on something. I want this modal popup to have previous and next buttons, preferably implemented using jQuery. I have alr ...

Is there a way to launch iframe links in the parent window of an Android native app?

I'm currently working on developing a directory-style application, and I am using iframes to embed other websites into the app. I would like the embedded site links to open within the parent window. In the Progressive Web App version, everything is w ...

In MUI v5, the Autocomplete default value is not set

When I try to use the defaultValue prop in the Autocomplete component of MUI v5, the value always ends up being undefined. This is a snippet from my code: const vehicles = [ { name: "Toyota", model: "Camry" }, { name: "Ford&qu ...

Error in Winston: Unable to determine the length of undefined property

I encountered an issue with my Winston Transport in the express backend of my MERN app. The error message reads: error: uncaughtException: Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefi ...

Creating custom events in a JavaScript constructor function

Just beginning to learn JavaScript. I have a custom function that I want to assign events to in the constructor. var myFunction = function(){ /* some code */ } myFunction.prototype.add=function(){ /* adding item*/ } Now I am looking to add an event to ...