Open in app

Sign In

Write

Sign In

Abhinav Gupta
Abhinav Gupta

2 Followers

Home

About

Apr 27, 2021

Centre align a position: absolute element in CSS

Let’s align an element with position as absolute today. I saw a number of ways on stack overflow but only got this one working. All we need to do is create a parent element to the one which is having position as absolute and set it’s position property as relative in css. .parent-container { position: relative; } Then add the following css properties to the element that has position as absolute and needs to be centred.

CSS

1 min read

Centre align a position: absolute element in CSS
Centre align a position: absolute element in CSS
CSS

1 min read


Aug 26, 2020

Using Environment Variables in Angular (ubuntu)

Versions: Angular CLI: 9.1.1 Node: 12.16.1 OS: linux x64 Angular: 9.1.1 Let’s talk about using environment variables in your angular app. Before we begin, let’s add our environment variables, edit your environment file “/etc/environment” and add your environment variable at the end of the file, let’s add a variable name…

Angular

2 min read

Using Environment Variables in Angular (ubuntu)
Using Environment Variables in Angular (ubuntu)
Angular

2 min read


Jul 2, 2020

Stop Overthinking - a practical guide

Looks like you have stumbled upon this article for trying to stop that continuous iteration of thoughts playing in your head, distracting you from your vital tasks, deteriorating relationships with your loved ones, causing head ache and most of all drifting you away from the goals you want to achieve. …

Overthinking

3 min read

Stop Overthinking - a practical guide
Stop Overthinking - a practical guide
Overthinking

3 min read

Abhinav Gupta

Abhinav Gupta

2 Followers

Abhinav is a software engineer

Following
  • Michael Szczepanik

    Michael Szczepanik

  • SystemDesign

    SystemDesign

  • Pinterest Engineering

    Pinterest Engineering

  • Andrew Ng

    Andrew Ng

  • Andrej Karpathy

    Andrej Karpathy

See all (10)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech