Skip to content

Instantly share code, notes, and snippets.

View doguscancalli's full-sized avatar
🪐
Floating in deep space

Doğuş Can Çallı doguscancalli

🪐
Floating in deep space
  • Gallifrey
View GitHub Profile
@doguscancalli
doguscancalli / style.md
Created September 17, 2023 13:06
How to Position a Fixed Element Relative to Its Parent with CSS

Issue: Difficulty in Positioning a Fixed Element Relative to Its Parent

Problem Description

When you need to position a fixed element relative to its parent element, it can be challenging to achieve the desired layout.

Solution

To position a fixed element relative to its parent, you can use the following CSS:

.parent {
@doguscancalli
doguscancalli / middleware.md
Created September 16, 2023 12:19
Resolving Asset Access Issue in Next.js 13 with i18n and Public Folder

Issue: Unable to Access Assets in the Public Folder Directory with Next.js 13 and i18n

Problem Description

When working with internationalization (i18n) in Next.js 13 within the app directory, there is an issue where assets in the public folder directory cannot be accessed.

Solution

To resolve this issue, follow these steps:

  1. Define a regular expression pattern to match all file extensions: