Guide to creating a sidebar within a single column

I am trying to create a responsive column on the left side of the screen with a specific width and height. In this column, I want to include the user's picture on the top and their name and position right below the picture. Under this information, I plan to add some titles. However, when I try to insert the title block, it goes outside the designated column area! How can I solve this issue and make it responsive using Bootstrap?

<div class="block">
    <div class="left-part">
      <img src="assets/user.jpeg" alt="User Picture">
    </div>
    <div class="right-part">
      <div class="user-name">user</div>
      <div class="user-status">Operator</div>
    </div>
    <div class="titles">
        <div class="title">
          <i class="fas fa-check-circle"></i>
          Title1
        </div>
        <div class="title">
          <i class="fas fa-check-circle"></i>
          Title2
        </div>
        <div class="title">
          <i class="fas fa-check-circle"></i>
          Title3
        </div>
    </div>
</div>

Here is the SCSS code snippet:

.block{
    margin-top: 0%;
    display: flex;
    position: absolute;
    width: 219px;
    height: 599px;
    left: 0px;

    .left-part {
      margin-top: 10px;
      margin-right: 14px;
      margin-left: 14px;
    }

    .left-part img {
      width: 69 px;
      height: 80px;
    }
    
    .right-part {
      margin-top: 10px;
      flex-grow: 1;
      margin-right: 15px;
    }

    .user-name {
      font-size: 18px;
      font-weight: bold;
    }

    .user-status {
      font-size: 18px;
      margin-top: 5px;
    }

    .title {
      display: flex;
      align-items: center;
      font-size: 14px;
      margin-bottom: 5px;

      i {
        margin-right: 5px;
      }
    }
}

This is how I incorporate my component in the home page:

<div>
  <app-side-bar></app-side-bar>
</div>

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

creating a user-friendly keyword/tag input interface

I'm currently developing a form and facing a challenge with a keyword/tag input field (similar to YouTube or Stack Overflow). I initially thought it made sense to use ',' to separate the tags, allowing users to use combinations of words usin ...

Navigating to specific location on page following addition of dynamic elements

My website utilizes ajax for dynamically adding content, and I am attempting to make the page automatically scroll to the newly added content. However, despite my efforts, I am unable to get it to function properly. Below is the link I am currently using ...

Is there a way to dynamically disable an MVC Razor @Html.TextBoxFor depending on the selection made in a drop-down menu on the same page?

Consider the scenario where the following code is present. @Html.DropDownListFor(m => m.MyWebPage, Model.FruitsList, "Select", htmlAttributes: new { @class = "form-select detailsInfo" }) Within this dropdown menu, there is an option ...

Is there a way to bring my popup closer to my button?

Check out my jsfiddle example here: https://jsfiddle.net/annahisenberg/ft10ersb/34/ Currently, I have the following code: <div id="more_options_popup" style={{ left: this.ref.current.offsetLeft - 140 + "px", top: this.ref.current.offsetTo ...

I am experiencing issues with my bootstrap file not working despite providing the correct file path. The styles are not being applied on my webpage

The file path is provided below <link rel="stylesheet" href="../css/bootstrap.min.css"> I have exhausted all options in an attempt to resolve the issue. The browser console indicates a 404 error (err_abborted) ...

How to use jQuery to iterate over changing elements and retrieve their data values

Exploring the potential of a collapsible panel to meet my requirements $(".sport").on("click", function() { var thisId = $(this).attr("id"); var thisChildren = $(this) + ".sportlist"; $(thisChildren).each(function(index) { }); }); <link ...

Tips for Retrieving Information from Firebase in an Angular Application

I am facing an issue with my code where the ngFor directive is not working as expected when I use read_CheckOuts to return data from the database. Below are snippets of my code: crud.service.ts import { AngularFireDatabase} from '@angular/fire/datab ...

While reviewing my HTML code, I couldn't locate a particular line of code responsible for changing the display of my webpage. However, upon inspecting the element, I discovered that

<h2><a class="label label-info" target="_blank" href="http://www.avis.com.pk/"> Avis</h2> </a> <h4> <span class="label label-primary"> Rent A Car Service</span></h4> There is an Inspect Element image attach ...

Unable to swap out image when hovered over

This is a new issue for me, as I can't seem to understand why the hover effect is working, but the background image won't change: <div class="settings" id="settings" style="background-image:url(assets/settings.svg);&qu ...

Navigating through different components in Angular 4 using a service for routing

Encountering an issue while connecting my Angular 4 and REST application with a service. Here's the error message: compiler.es5.js:1694 Uncaught Error: Can't resolve all parameters for TypeaheadComponent: (?, [object Object], [object Object]). ...

What is the best way to add a table header with a column of interactive buttons in Angular?

I am currently utilizing Angular and have created a table displaying important data. The first column features checkboxes for individual selection or selecting all. Following the checkbox column are additional columns of data for updating/deleting informat ...

The argument for the e2e test is invalid because it must be a string value

Currently, I am conducting an end-to-end test for an Angular application using Protractor. However, I encountered an error while running the test for a specific feature file. The UI value that I am checking is - WORKSCOPES (2239) Below is the code snippe ...

Resetting ng-select values in an Angular application: A quick guide

Currently, I am utilizing ng-select within a modal window. <div class="modal-body"> <div class="form-group has-feedback"> <ng-select #select name="currenies" [allowClear]="true" [items]="currencyList" [disabled]="disabled" (selected)="sel ...

"Upon refreshing the Angular app, the index.html file is not loaded

My angular.js application has a basic setup where the index.html file renders static content like Top/Sidebar. Inside, there is a <div ng-view></div> to display partial html files such as home.html. Upon logging into the application, both the ...

The HTML button fails to respond when clicked

My website development process has hit a snag with the header buttons not functioning properly. I suspect the issues lie within lines 12 to 15 of the code snippet below: <!DOCTYPE html> <html> <head> <script src="https: ...

Using Vanilla JavaScript library in Angular 6 - A Comprehensive Guide

I encountered an error while trying to import a Vanilla JavaScript library into an Angular 6 component. Can you please provide me with some guidance on how to resolve this issue? This is the syntax I used to import the library: import * as ExistingLibrar ...

Compilation error occurs while compiling the Angular Tree component indicating that there is no "Cancelable" exported member

I recently encountered an error while building my Angular application that involved using the Angular Tree Component. After some troubleshooting, I was able to resolve the issue and wanted to share my solution with the community. 2020-09-02T13:10:19.5809 ...

Getting a user's group name from Azure Active Directory in an Angular application - a step-by-step guide

I have connected to Azure directory using ng2-adal (https://github.com/mazhisai/ng2-adal-QuickStart) and successfully obtained a group id in the format: "groups":["4ba2649e-20d2-40f4-a406-2ed897686403","43e19f05-c077-4716-b001-0ffb0d75fff8"]. Is there a w ...

Troubleshooting jQuery: Unable to refresh the webpage

I have a PHP page that contains a form, checkboxes, and a submit button. I added an if statement to execute a PHP script I created when the button is clicked, which deletes certain values from the selected rows. The button functions properly and changes s ...

Concerns with combining key value pairs in Typescript Enums

Could you help me figure out how to properly implement an enum in my drop-down so that I can only display one value at a time? Currently, I am seeing both the key and the value in the list. This is my enum: export enum VMRole { "Kubemaster" = 0, "Kub ...