Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Social links profile responsive

AKR2803 20

@AKR2803

Desktop design screenshot for the Social links profile coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What specific areas of your project would you like help with?

I need some review on my CSS, also should I be too worried about CSS or just go on to learn Javascript rather than perfecting HTML and CSS?

Community feedback

Joshtemi0 180

@Joshtemi0

Posted

You should also learn HTML and CSS for front end developer or is important

I think you will have to write a lot of code in javaScript to make it function as css so try leaning html and css they are even easier to learn than javaScript.

Hope this helps.

0
MikDra1 5,990

@MikDra1

Posted

If this comment was useful please mark it as helpful 💗

1. Use CSS Variables for Repeated Values:

Define common values like colors, font sizes, and padding as variables. This reduces redundancy and makes global changes easier.

CSS

:root {
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Young Serif', sans-serif;
    --color-primary: hsl(14, 45%, 36%);
    --color-secondary: hsl(30, 10%, 34%);
    --padding: 2rem;
    --border-radius: 1rem;
}

2. Group Related Styles:

Combine related styles to avoid scattering your CSS.

CSS

body, h1, p, ul, li, img {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
}

3. Use Utility Classes:

Create utility classes for commonly used styles like centering, padding, and text alignment.

CSS

.text-center {
    text-align: center;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.padding-lg {
    padding: var(--padding);
}
0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord