- The things I found difficult while building the project is the fonts, the size mostly.
- The areas that I'm not sure of is @media query.
- I have one question about this project, what did they mean exactly by desktop:1440px and Mobile 375px. Isn't it supposed to be many different sizes? why just two?
Amer Shah
@fggdbdsbfdAll comments
- @seifzeghicSubmitted over 1 year ago@fggdbdsbfdPosted over 1 year ago
π "Hello! Congratulations on completing your challenge! π I noticed that you were asking about media queries " π± What are @media queries?
@media queries are a CSS feature that allow you to create styles that apply only under certain conditions, such as the screen size of a device. This makes it possible to create styles that are optimized for different devices and screen sizes, such as desktops, tablets, and smartphones.
π How do @media queries work?
To use @media queries, you simply define a set of CSS rules that apply only when certain conditions are met. For example, you might define a set of styles that only apply when the screen width is less than 768 pixels. You can also combine multiple conditions to create more complex queries.
π How do you write @media queries?
To write an @media query, you start with the @media keyword, followed by one or more conditions inside parentheses. For example:
@media (max-width: 768px) { /* Styles for screens smaller than 768 pixels wide */ }
Inside the curly braces, you define the CSS styles that should apply when the conditions are met.
π Why are @media queries important?
With the increasing use of mobile devices to browse the web, it's important to ensure that your website looks good and is easy to use on all screen sizes. By using @media queries, you can create responsive designs that adapt to the user's device and screen size, improving the user experience and making your website more accessible.
I hope that helps! Let me know if you have any other questions. π€
0 - @kymm14Submitted over 1 year ago@fggdbdsbfdPosted over 1 year ago
I'd be happy to give you some advice on the topic of landmarks in HTML documents! Here are some tips, presented in bullet points with a professional tone and a few helpful emojis:
-π Every good HTML document should have a main landmark! This landmark helps users understand the structure of the page and navigate it more easily.
-π The main landmark should typically be the <main> element. This element should contain the main content of the page, such as articles, posts, or product listings.
-π You can use ARIA attributes to help identify your main landmark and make it more accessible to users who rely on assistive technologies.
-π§ Remember that other landmarks, such as <header>, <nav>, <aside>, and <footer>, can also be helpful for organizing your content and making it easier to navigate.
-π» When designing your HTML document, it's important to consider the needs of all users, including those with disabilities. By using proper landmarks and ARIA attributes, you can make your site more accessible and user-friendly for everyone.
-I hope these tips help you create an organized and accessible HTML document with a clear main landmark! If you have any more questions, feel free to ask.
0 - @HaswolinskSubmitted over 1 year ago
This was my third completed challenge, initially i'm only using HTML and CSS to improve my skills.
I had difficulty changing the color of the image through the css, if anyone has any suggestions I would be grateful.
@fggdbdsbfdPosted over 1 year agoπ "Hello! Congratulations on completing your third challenge! π I noticed that you were asking about changing the color of an image. π¨"
I hope that helps! Let me know if you have any other questions or concerns.
Here are a few techniques to consider when trying to modify the color of an image using CSS:
β’ Use CSS filter properties: The CSS filter property provides a variety of options for adjusting the color and appearance of an image. Some of the filter options you could try include grayscale, hue-rotate, and saturate.
β’ Use a color overlay: Another way to modify the color of an image is to overlay it with a semi-transparent color. You can do this by using a combination of CSS properties, such as background-color, opacity, and position.
β’ Create a CSS mask: CSS masks can be used to display only certain parts of an image while hiding others. By using a combination of the mask-image, mask-size, and mask-position properties, you can apply a mask that modifies the appearance of the image.
β’ Use a custom SVG filter: Finally, you could consider creating a custom SVG filter to modify the color of your image. SVG filters can be quite complex, but they offer a great deal of flexibility and control over the final appearance of the image.
π By using one or more of these techniques, you should be able to modify the color of your image to suit your needs and create a unique and visually appealing design.
ππ¨βπ»"Enjoy the journey of coding!"π©βπ»π»
Marked as helpful1 - @faruquedewanSubmitted over 1 year ago
I have two questions:
- Is it a good practice to use different CSS files for different screen widths? If not then how to design mobile CSS after designing Desktop CSS? (Some things are overridden.)
- How to get the Icons in center? (They are popping up a bit.)
@fggdbdsbfdPosted over 1 year agoTo center icons within a container, there are a variety of CSS properties that can be used to adjust the display, alignment, and positioning of elements.
π Here's an example of how you can center icons horizontally and vertically within a container using CSS:
HTML code:
<div class="icon-container"> <i class="fas fa-star"></i> </div>
CSS code:
.icon-container { display: flex; justify-content: center; align-items: center; height: 100px; width: 100px; border: 1px solid #000; } .fas { font-size: 2em; }
In this example, we utilize the display: flex property to establish a flexible container that enables the easy centering of the icon horizontally and vertically. We also employ the justify-content: center and align-items: center properties to center the icon within the container.
Finally, we set the height and width properties of the container to establish a fixed size, and we use the .fas class to adjust the font size of the icon.
π By adjusting the values of these CSS properties, you can tailor the alignment and positioning of icons to suit your unique needs and preferences. This basic approach should help you center icons within a container and create a visually appealing and balanced design.
Marked as helpful0 - @faruquedewanSubmitted over 1 year ago
I have two questions:
- Is it a good practice to use different CSS files for different screen widths? If not then how to design mobile CSS after designing Desktop CSS? (Some things are overridden.)
- How to get the Icons in center? (They are popping up a bit.)
@fggdbdsbfdPosted over 1 year agoWhen designing a website, it's important to start with a desktop-first approach and create a stylesheet that works well on larger screens. Once you have established your base design, you can then create a separate mobile CSS file and make adjustments as necessary.
To ensure that your mobile CSS is effective, you should use media queries to target specific screen sizes and device types. This will help you create a layout that looks and functions well across a variety of devices, without the need for multiple CSS files.
It's worth noting that while using multiple CSS files can be helpful in certain situations, it can also make maintenance more complex. For this reason, it's important to weigh the benefits and drawbacks before deciding whether to use multiple CSS files or not.
Ultimately, the key to successful responsive design is to be flexible and adaptable. By using modern CSS techniques like flexbox and grid layouts, as well as media queries, you can create a design that responds well to a range of screen sizes and device types, without sacrificing functionality or usability.
Marked as helpful1 - @Mahmoud-Abdelkarim777Submitted over 1 year ago@fggdbdsbfdPosted over 1 year ago
I'd be happy to give you some advice on the topic of landmarks in HTML documents! Here are some tips, presented in bullet points with a professional tone and a few helpful emojis:
-π Every good HTML document should have a main landmark! This landmark helps users understand the structure of the page and navigate it more easily.
-π The main landmark should typically be the <main> element. This element should contain the main content of the page, such as articles, posts, or product listings.
-π You can use ARIA attributes to help identify your main landmark and make it more accessible to users who rely on assistive technologies.
-π§ Remember that other landmarks, such as <header>, <nav>, <aside>, and <footer>, can also be helpful for organizing your content and making it easier to navigate.
-π» When designing your HTML document, it's important to consider the needs of all users, including those with disabilities. By using proper landmarks and ARIA attributes, you can make your site more accessible and user-friendly for everyone.
-I hope these tips help you create an organized and accessible HTML document with a clear main landmark! If you have any more questions, feel free to ask.
0 - @caretaker03Submitted over 1 year ago@fggdbdsbfdPosted over 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
I have other recommendations regarding your code that I believe will be of great interest to you. CSS π¨:
Certainly! CSS :hover is a pseudo-class that allows you to apply a specific style to an element when the user hovers over it with their cursor. This can be useful for creating interactive and engaging user interfaces on your website.
Here's how you can use :hover in your CSS code:
First, select the element that you want to apply the hover effect to. For example, if you want to change the background color of a button when the user hovers over it, you could select the button element using the button selector:
button { background-color: blue; color: white; border: none; padding: 10px 20px; font-size: 16px; }
Next, add a :hover pseudo-class to the selector. This will apply the styles defined in the block when the user hovers over the element:
button:hover { background-color: lightblue; color: black; cursor: pointer; }
In this example, we're changing the background color to light blue and the text color to black when the user hovers over the button. We're also changing the cursor to a pointer to indicate to the user that the button is clickable.
You can use :hover to apply a wide variety of styles to your elements, including changing the color, background, border, and text properties, as well as applying transitions and animations.
I hope this helps you get started with using :hover in your CSS code! Enjoy the journey of coding! ππ¨βπ» It's a wonderful world full of challenges, creativity, and endless possibilities. Keep learning, growing, and exploring new horizons. Happy coding! π»π
Marked as helpful0 - @faruquedewanSubmitted over 1 year ago
This one was fun. Can anyone tell me how to change icon color to pink on hover? Or maybe what kind/format of icons to use to do that?
@fggdbdsbfdPosted over 1 year agoI'd be happy to give you some advice on the topic of landmarks in HTML documents! Here are some tips, presented in bullet points with a professional tone and a few helpful emojis:
-π Every good HTML document should have a main landmark! This landmark helps users understand the structure of the page and navigate it more easily.
-π The main landmark should typically be the <main> element. This element should contain the main content of the page, such as articles, posts, or product listings.
-π You can use ARIA attributes to help identify your main landmark and make it more accessible to users who rely on assistive technologies.
-π§ Remember that other landmarks, such as <header>, <nav>, <aside>, and <footer>, can also be helpful for organizing your content and making it easier to navigate.
-π» When designing your HTML document, it's important to consider the needs of all users, including those with disabilities. By using proper landmarks and ARIA attributes, you can make your site more accessible and user-friendly for everyone.
-I hope these tips help you create an organized and accessible HTML document with a clear main landmark! If you have any more questions, feel free to ask.
Marked as helpful0 - @GonzDvSubmitted over 1 year ago
i find dificult how to put the image to the side the text. I need to understend better how to work padding and margin, i forget it lol Also i though in use variables in css is it wort using it?
@fggdbdsbfdPosted over 1 year agoI'd be happy to give you some advice on the topic of landmarks in HTML documents! Here are some tips, presented in bullet points with a professional tone and a few helpful emojis:
-π Every good HTML document should have a main landmark! This landmark helps users understand the structure of the page and navigate it more easily.
-π The main landmark should typically be the <main> element. This element should contain the main content of the page, such as articles, posts, or product listings.
-π You can use ARIA attributes to help identify your main landmark and make it more accessible to users who rely on assistive technologies.
-π§ Remember that other landmarks, such as <header>, <nav>, <aside>, and <footer>, can also be helpful for organizing your content and making it easier to navigate.
-π» When designing your HTML document, it's important to consider the needs of all users, including those with disabilities. By using proper landmarks and ARIA attributes, you can make your site more accessible and user-friendly for everyone.
Choosing the right font for a project can greatly affect its overall look and readability. Here are some general tips to consider when selecting fonts:
-I hope these tips help you create an organized and accessible HTML document with a clear main landmark! If you have any more questions, feel free to ask.
Marked as helpful0 - @DavdokhoyanSubmitted over 1 year ago@fggdbdsbfdPosted over 1 year ago
I'd be happy to give you some advice on the topic of landmarks in HTML documents! Here are some tips, presented in bullet points with a professional tone and a few helpful emojis:
-π Every good HTML document should have a main landmark! This landmark helps users understand the structure of the page and navigate it more easily.
-π The main landmark should typically be the <main> element. This element should contain the main content of the page, such as articles, posts, or product listings.
-π You can use ARIA attributes to help identify your main landmark and make it more accessible to users who rely on assistive technologies.
-π§ Remember that other landmarks, such as <header>, <nav>, <aside>, and <footer>, can also be helpful for organizing your content and making it easier to navigate.
-π» When designing your HTML document, it's important to consider the needs of all users, including those with disabilities. By using proper landmarks and ARIA attributes, you can make your site more accessible and user-friendly for everyone.
-I hope these tips help you create an organized and accessible HTML document with a clear main landmark! If you have any more questions, feel free to ask.
0 - @mohdahsanrazakhanSubmitted over 1 year ago@fggdbdsbfdPosted over 1 year ago
I'd be happy to give you some advice on the topic of landmarks in HTML documents! Here are some tips, presented in bullet points with a professional tone and a few helpful emojis:
-π Every good HTML document should have a main landmark! This landmark helps users understand the structure of the page and navigate it more easily.
-π The main landmark should typically be the <main> element. This element should contain the main content of the page, such as articles, posts, or product listings.
-π You can use ARIA attributes to help identify your main landmark and make it more accessible to users who rely on assistive technologies.
-π§ Remember that other landmarks, such as <header>, <nav>, <aside>, and <footer>, can also be helpful for organizing your content and making it easier to navigate.
-π» When designing your HTML document, it's important to consider the needs of all users, including those with disabilities. By using proper landmarks and ARIA attributes, you can make your site more accessible and user-friendly for everyone.
-I hope these tips help you create an organized and accessible HTML document with a clear main landmark! If you have any more questions, feel free to ask.
Marked as helpful1 - @ikianmSubmitted over 1 year ago
Hey! Any suggestion or tip is appreciated.
@fggdbdsbfdPosted over 1 year agoHello there π. Congratulations on successfully completing the challenge! π
Buttons with discernible text are essential for creating a user-friendly and accessible website. Here are some tips to help you ensure that your buttons are clear and easy to understand:
π Make sure that each button has discernible text that clearly communicates its purpose.
π Use descriptive, action-oriented text on your buttons, such as "Submit," "Cancel," or "Add to Cart."
π¨ Avoid using generic or vague labels, like "Click Here" or "Read More," as these can be confusing for users.
π Use ARIA attributes, like aria-label or aria-describedby, to provide additional context for users who may be using assistive technologies.
π± Keep in mind that buttons should be designed with mobile devices in mind, and should be easy to tap with a finger.
π» Consider the layout and design of your buttons, including their size, color, and placement on the page. Make sure that they are easy to find and interact with.
By following these tips, you can create buttons that are easy to use and understand, regardless of a user's abilities or device. Remember, the goal is to make your website as accessible and user-friendly as possible, so that all users can enjoy a positive experience.
enjoy the jopurny of coding
write in comfertable way use emojis make headings
Hello there! π I'm glad you're enjoying your journey in coding! Here are some tips to help you create buttons with discernible text in a comfortable and easy-to-understand way:
π§βπ» Make sure to take breaks and stretch your fingers and arms to avoid discomfort while coding.
π Use descriptive text that clearly conveys the purpose of your buttons, such as "Submit Form" or "Sign Up."
π©βπ¦― Consider the needs of users with disabilities when designing your buttons, and use ARIA attributes to make them more accessible.
π± Keep in mind that many users will be accessing your website on mobile devices, so design your buttons with touch screens in mind.
π» Use contrasting colors and appropriate sizing to make your buttons stand out and easy to click.
π¨ Experiment with different button designs and styles to find what works best for your website.
By following these tips, you can create buttons that are both comfortable for you to code and easy for users to interact with. Have fun on your coding journey and don't forget to take care of yourself! πͺ
0