Pradeep Pandey Profile picture
Mar 15, 2022 14 tweets 4 min read Read on X
Master CSS Pseudo-elements🎯

A Thread 🧵👇
❓What exactly is a pseudo-element?

📌 A CSS pseudo-element is used to style specified parts of an element.

For example, it can be used to:

🔳 Style the first letter, or line, of an element.

🔳 Insert content before, or after, the content of an element.
📌 Presently, There are some pseudo-elements that are commonly used , and some experimental ones.

Below I have given a detailed explanation👇
✨ Common Pseudo-Elements

➡️ ::before

➡️ ::after

➡️ ::first-letter

➡️ ::first-line

➡️ ::selection

✨ Experimental Pseudo-Elements

➡️ ::placeholder

➡️ ::backdrop

➡️ ::marker
📌 You can use any of these pseudo-elements by simply adding them at the end of your CSS selector.

Like so.👇
🎯 ::before and ::after Pseudo-Elements

🔳::before ➖ used to insert some content before the content of an element.

🔳::after ➖ used to insert some content before the content of an element.

Here is a simple example👇
☝️ In the above example the ::before element get placed so it will be moved left and top-25 and appear on the box.

🔳 Same is the case with the ::after element, it gets moved right and top -25. You can see the above example.
🤔 Now, you must be wondering why the content was left blank.?

🔳 Ans. - The content property is mandatory in order to render the ::before and ::after elements.

It can hold an empty value, a text, or an image by giving it an URL("image.png").
🎯::first-letter and ::first-line

📌 These pseudo-elements are a great way to manipulate text content.
They do exactly what their name says, which is to allow you to select the first letter or first line of some text.

Here is an example
🎯:: Selection

📌 Selection pseudo-element allows us to customize properties of the user's text selection either for our entire website, or for certain parts of it. Only certain properties can be applied.

here’s how it works:
🎯 Experimental pseudo-elements

➡️ Placeholder (::placeholder)

🔳 this pseduo Element is used in order to change the css properties of your input's placeholder text inserted through the placeholder attribute.
➡️ Marker (::marker)

📌 You can use it to change the properties of a marker element.

For example, select your list's bullet points and change their color:
➡️ Backdrop (::backdrop)

🔳 Styles the background of a full-screen element, such as a video.
Here is an example.
End of the thread. 🧵

If you found this thread useful, please consider:

💛 Liking these tweets

🔁 Retweet the first tweet so others can see it.

👤 Following me ( @itsmeprdp )for more content.

Thanks for reading.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Pradeep Pandey

Pradeep Pandey Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Div_pradeep

Nov 29, 2025
Every startup today has an opportunity to become visible in AI search but most don’t know how AI actually sees them.

AI search engines don’t list you just because you exist they list you because the internet talks about you more (or less) than your competitors.

@s_Wellows tracks those signals, fills the gaps, and helps startups become visible where ChatGPT, Gemini & Perplexity look for answers.Image
AI search engines don’t read your website.

They read the world’s interpretation of your brand.

Niche blogs. Lists. Category pages. Databases. Product roundups. These shape how LLMs rank & cite you.

Wellows shows exactly where you should appear but don’t, and where competitors are earning the citations you’re missing.
The biggest visibility wins come from implicit mentions — places where AI expects your startup to appear, but you’re missing while competitors are credited.

Wellows uncovers them instantly:

• Missing category lists
• Comparison articles that skipped you
• Blogs citing competitors but not your brand
• Databases where you're absent
• Pages AI models rely on but don’t credit you for.

This is the fastest path to becoming AI-discoverable.Image
Read 8 tweets
Sep 6, 2025
The future of ads is fake.

Higgsfield's new Ads 2.0 suite lets you make ads without the product.

The AI generates everything, and the new text rendering is perfect.

Let's get into it.
The 25+ new Ads Apps are a game-changer.

They are designed for creating viral, cinematic product clips.
The update includes insane VFX presets like "Wonderland" and "Multiverse".

You can make your product ad look like a blockbuster movie.
Read 6 tweets
Sep 4, 2025
YouTube is free education.

But 97% people don't use it effectively.

Here are the top 12 channels to accelerate your learning:↓ Image
1. FreeCodeCamp

FreeCodeCamp is an excellent online resource that lets you learn to code for free.

Master topics like:

- Web development
- DSA
- Python
- SQL
- And more

youtube.com/@freecodecamp
2. MIT Open Courseware

1000+ free courses from one of the top universities in the world.

youtube.com/@mitocw
Read 15 tweets
Jun 20, 2025
Look what I found!

A new open-source LLM just dropped — and it’s terrifyingly powerful.

1M-token input. 80k-token output. Extremely Dirt-cheap to train.

Meet MiniMax-M1 and try it:

Here’s what it can do: 👇 chat.minimax.ioImage
MiniMax-M1 isn’t just an LLM — it’s a thinking engine.

Built for:
• Deep reasoning
• Complex planning
• Math, logic, and geography
• Storytelling, stats, puzzles, and more

Test it here 👉 huggingface.co/spaces/MiniMax…
1/ Pattern Recognition

Prompt: "What comes next in the series? 2, 4, 8, 16, __?"

MiniMax doesn’t just answer — it explains the logic.

Perfect for riddles, IQ questions, and cognitive tests.
Read 9 tweets
Jun 16, 2025
I built a full pitch deck in 5 minutes.

No design work. No slide planning. No research.

Gemini 2.5 + Gamma did everything.

Here’s the exact workflow: 👇
1/ Super-charge your research

Open Gemini 2.5 and drop a clear prompt:

“Give me a concise industry overview, market size, three growth trends, two case studies, plus cited sources.”

Gemini returns a bulletproof outline with highlighted key points and links
2/ Copy once, paste once

Select Gemini’s tidy text → head to Gamma and click Create with AI.

Paste the content, choose a theme that suits your brand, hit Generate. That’s it. No manual formatting.
Read 8 tweets
Jun 7, 2025
🚨 BREAKING: This AI just learned to talk to the internet.

It discovers tools, learns how they work, and gets things done — on its own.

No setup. No integrations.

Here's how it works: Image
DeepAgent can integrate with any MCP server and do almost any task.

it's part of ChatLLM from @abacusai

Try it now → deepagent.abacus.ai
1. Need a mind map?

DeepAgent browses the web, finds a tool, connects, and generates one — no integrations, no setup.
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(