Day 16 of My JavaScript Journey 🚀 Today, I learned the basics of CSS (Cascading Style Sheets). CSS is used to style and design web pages controlling layout, colors, spacing, and appearance. I learned about different types of selectors, which are used to target HTML elements for styling. I was also introduced to the CSS box model, which consists of: • Content (the actual element) • Padding (It is used add space inside the element) • Border (It is used add wraps around padding) • Margin (It is used add space outside the element) Additionally, I learned that: • The universal selector (*) targets all elements on the page One key insight: Understanding the box model is essential for controlling spacing and layout. Key takeaway: CSS transforms plain HTML into visually appealing web pages. #JavaScript #CSS #WebDevelopment #LearningInPublic #100DaysOfCode
CSS Basics for Web Development
More Relevant Posts
-
🚀 Defining Grid Containers in CSS for HTML Layout In CSS Grid Layout, the `display: grid;` property is crucial for establishing an HTML element as a grid container. This declaration fundamentally transforms the element into a grid, enabling the use of grid-specific properties to control the arrangement of its direct children, known as grid items. The grid container acts as the parent element, defining the structure of the grid, while grid items are the individual elements that are placed within the grid cells. Without `display: grid;`, the other grid properties will not apply, and the elements will behave according to standard CSS layout rules. This allows for the creation of complex and responsive layouts within HTML documents. #HTML #CSS #WebDesign #Frontend #professional #career #development
To view or add a comment, sign in
-
-
🎨 CSS Gradients CSS gradients produce smooth transitions between two or more colors. Commonly used for backgrounds, masks, borders, and overlays without additional image assets. ✅ Linear gradients ✅ Radial gradients ✅ Conic gradients ✅ Repeating gradients ✅ Blending & masks Save & share with your team! Follow Rahul Choudhary for more. Credit :: TheDevSpace w3schools.com, and JavaScript Mastery for more tips, tutorials, and cheat sheets on web development. Let's stay connected! 🚀 #css #gradients #design #ui
To view or add a comment, sign in
-
📘 What is CSS Margin? Syntax & Properties Explained (Beginner Guide) ✅ The CSS Margin property is used to create space outside an element, separating it from other elements on a webpage. It is an important part of the CSS box model and helps control layout and spacing between elements. ✅ Understanding spacing is one of the most important skills in web design—and the CSS margin property plays a key role in it. ✅ CSS margin is used to create space outside an element, helping separate it from other elements and improve layout structure. It is part of the CSS box model and is essential for building clean, responsive websites (Codecademy) In this guide, you’ll learn: ✔ What is CSS Margin ✔ Syntax and shorthand usage ✔ Margin for top, right, bottom, left ✔ Difference between margin and padding ✔ Real examples with code Whether you are a beginner or improving your frontend skills, mastering margin will help you design better layouts and control spacing effectively. 👉 Read full tutorial here: https://lnkd.in/eJA8tUbY 💡 Learn spacing → Improve layout → Build professional websites #CSS #WebDevelopment #FrontendDevelopment #LearnCSS #WebDesign #CodingForBeginners #HTMLCSS #Programming #DeveloperLife #CSSMargin #TechSkills
To view or add a comment, sign in
-
Built an Advanced Calculator using HTML, CSS & JavaScript 💻 Focused on creating a clean UI with modern design techniques like glassmorphism, smooth hover effects, and responsive layout. Implemented core logic using JavaScript for real-time calculations. Tech Used: HTML | CSS (Grid, Flexbox, Transitions) | JavaScript (DOM Manipulation, Functions)
To view or add a comment, sign in
-
-
Today's focus for the #30DaysLearningChallenge was Tailwind CSS. Coming from a Bootstrap background, the "Utility-First" workflow is a game-changer. What I loved today: No more jumping back and forth between HTML and CSS files. No more "naming fatigue" (goodbye, .card-container-inner-wrapper!). The design system is baked in-spacing and colors stay consistent automatically. It's definitely a different mental model, but I can already see how this will speed up my workflow for custom designs. #CSS3 #Tailwind #ModernWeb #M4ACELearningChallenge #LearningInPublic #DeveloperGrowth #BuildInPublic
To view or add a comment, sign in
-
-
Officially wrapped up the CSS Essential Concepts module on Scrimba To finish the module, we built this responsive landing page layout. It was a great opportunity to really drill down into flexbox (getting comfortable with things like justify-content and gap), and to master the differences between relative, absolute, and fixed positioning for UI elements like banners and floating action buttons. Building a solid foundation in HTML and CSS is crucial, but I am super excited for what comes next. Moving on to the "JavaScript Essential Concepts" module to start bringing these static pages to life with real logic and interactivity! #Frontend #CSS #JavaScript #WebDevelopment #LearnInPublic #Scrimba
To view or add a comment, sign in
-
Day 27 of 30. I built a color palette extractor that runs entirely in your browser. PaletteThief — drop any image, get its dominant colors as CSS variables, Tailwind tokens, SCSS, or JSON. One click. Here's what it does: → Drag & drop or paste an image URL → Extracts 4–10 dominant colors using k-means clustering → Click any swatch to copy the hex instantly → Export in CSS, Tailwind, JSON, or SCSS — with inline color chips in the code view → Download a shareable palette card PNG (1200×480, ready for LinkedIn/X) The honest part: I've hit this problem myself a dozen times. You find a photo with the exact mood you want, then you spend 20 minutes manually eyedropping colors and converting formats. This does it in 3 seconds. No backend. No login. No install. Single HTML file. The technical bit: it rasterizes the image to an offscreen canvas, samples pixels in a grid, runs k-means for 16 iterations to find dominant color clusters, then maps each cluster back to its actual representative pixel — so every color you see is a real pixel from the image, not an averaged approximation. Stack: Vanilla JS + Canvas API. That's it. 3 days left in the challenge. Every day has been a lesson in scoping fast and shipping clean. Try it → https://lnkd.in/gZdu6dru GitHub → https://lnkd.in/gRCga8Ve What photo would you run through it first? #30AppsIn30Days #BuildInPublic #IndieHacker #WebDev #Design #JavaScript #OpenSource
To view or add a comment, sign in
-
-
Write cleaner CSS with native nesting: Before, you'd repeat the same selector again and again: button { ... } button:hover { ... } Now, with native CSS nesting, you can group related styles inside the parent block. Here’s the key syntax: selector { & :hover { } } How it works: The & means “this same selector”... it's a placeholder for the parent. You can use it for pseudo-classes (:hover, :focus), child elements (& span), or even media queries. But what about the browser support? Well, it has over 91% global support and is growing fast. Modern Chrome, Safari, Firefox, and Edge are all on board. So, it's pretty safe to use. Anyways: New features like this are fun, but layouts are where most people get stuck. One design, 25 screen sizes… and it feels like guesswork. Flexbox and grid fix that. So I made a 112-page visual guide that shows you just that. Grab it here: [https://lnkd.in/drG7QwK6]
To view or add a comment, sign in
-
-
How to morph elements between pages in CSS ✨ (No JavaScript required!): Most sites change pages in a snap. The layout completely resets and feels sudden. But with modern CSS, you can make elements. Like a product image that seamlessly flies from a grid directly into a detail page. Here is how to set it up. First, turn on the cross-document view transition feature: @view-transition { navigation: auto; } This alone gives you a smooth default crossfade between your pages. To make a specific image morph, link the image on Page A to the image on Page B by giving them both the exact same transition name: .product-card-img, .detail-img { view-transition-name: product-img-1; } Now the browser knows these two images are the same. So we can define our transition like this: ::view-transition-group(*) { animation-duration: 0.5s; } Now the browser will handle all the complex math to animate all the animatable properties that are changing. You can do way more things, view transition, so go check it out. But this is a relatively new feature, and some of these properties might not work in Firefox or Safari. PS: If you liked this trick... I’ve made a full ebook that teaches how to build modern, responsive designs using only Flexbox and Grid. Get it here: [ https://lnkd.in/d_nm8h-q ]
To view or add a comment, sign in
-
-
Feel like your CSS is leaking everywhere? @scope finally gives you boundaries. @scope lets you define exactly where your styles start and where they stop. It’s like local CSS, but without CSS-in-JS, BEM conventions, or heavy utility classes. Example: @scope (.container) to (.post) { p { color: blue; } } Here, the paragraph style applies inside .container, but not if the p is inside .post. Clear. Predictable. Contained. Why this matters: Styles stay inside their component. HTML gets cleaner. You gain control over specificity and proximity. You can even create donut scopes, where a selector applies everywhere except inside a nested boundary. Scopes can also be nested. You get real modular CSS without naming hacks or selector gymnastics. It’s the kind of encapsulation developers have been wanting for years. Now it’s built into CSS itself. Browser support is still around 86.56%, so it needs progressive enhancement. But the future is clear: CSS is becoming more structured, more modular, and easier to reason about. Have you tried @scope yet? If you want to build complex components using only HTML and CSS, I wrote the ebook "You Don't Need JavaScript" to help you level up your CSS skills: 👉 https://lnkd.in/e9qjTXSA
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development