help me to fix my javascript
Rohail Taha
@rohailtahaAll comments
- @log-baitSubmitted about 3 years ago@rohailtahaPosted about 3 years ago
I think you want smooth transition upon clicking the left right buttons?
0 - @TScorpzSubmitted about 3 years ago
Works good on chrome, but couldn't get text field outline to work on Firefox. Any tips and suggestions are welcome.
@rohailtahaPosted about 3 years agoMaybe you can use something like input:focus { outline: 2px solid hsl(183, 100%, 15%); } to work on firefox. the pseudo element may be just ":focus" or ":focus-visible";
0 - @rayansailaniSubmitted about 3 years ago
I would like to implement this by reducing the amount of CSS I've written, any recomendations ??
@rohailtahaPosted about 3 years agoAwesome work. I looked at the code. In your media query you used min-width:350px, I think you actually wanted max-width here because you would want body font size to be smaller(12px) in smaller screen sizes? If you use min-width in media query, then the styles applied will be for screen sizes greater than or equal to 350px. But I think you wanted those styles to be applied for screen sizes less than or equal to 350px? Am I wrong?
Marked as helpful1 - @alessandro-giuzioSubmitted about 3 years ago
#WORK IN PROGRESS
Hello there, i need help please! I am blocked with the 1440px screen size resolution!
Cheers
@rohailtahaPosted about 3 years agoHello, you have added min-width: 100vh to your "body". Remove it to prevent the horizontal scroll. You would always want to avoid using min-widths as they make responsive designs difficult.
Marked as helpful0 - @Tuason066Submitted about 3 years ago
Hi guys,
I have a question for you, why the background images doesn't show when I'm going to deploy my page. In VS Code there is no problem.
Please help me and Check my code.
Thank you.
@rohailtahaPosted about 3 years agoTry this: background-image: url(../images/bg-header-mobile.png); Probably you would have to go one directory back using "../" as images folder is in the previous directory compared to "style.css" file.
Marked as helpful0 - @yvsminvsSubmitted over 3 years ago
Hi!!
Check out my code! Any suggestions on how I can improve are very welcome.
Keep Coding!
@rohailtahaPosted over 3 years agoGreat Effort! I would like to give some suggestions:
- You could increase the contrast of the paragraph texts as it is low. I know the style guide had this gray color but it has low contrast and you would always want to avoid that.
- You can add a max-width property to paragraph-texts or their parent container so each line of paragraph does not become too long. It is UI design good pratice to keep the text lines short as they are easier to read.
- There is a lot of padding in container1 and the content squeezes in too much when large screen size is reached. You can completely avoid padding and use max-width and margin:0 auto(to center) and achieve the same effect.
I hope this is helpful. Keep up the good work.
Marked as helpful0 - @AbdullahUCSubmitted over 3 years ago
Please View my code. Please tell me that my codes are standard or not.. I am worried about that, You can give any suggession too..
@rohailtahaPosted over 3 years agoThe solution is great. Since you asked for suggestions and they are always good for beginners, so I'll give some:
- Try avoiding the 'height' property and use 'min-height' instead as it makes responsive designs easier.
- If you don't know, try learning about 'rem' and 'em' units and use them for font-sizes, margins and paddings.
- Try giving more specific and easy to remember class names. Instead of .inputdiv1, .inputdiv2, you can think of class names that are more relatable like input_bill, input_persons.
- Instead of one long function try to divide it into smaller functions that do one particular task. The code becomes easier to read and refactor later on.
At last I would suggest you to checkout this channel (Maybe you have already). It is simply one of the best for learning css tips and good pratices. You will not regret following this channel. https://www.youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw
Marked as helpful1 - @leonardomeza87Submitted over 3 years ago
I liked how it turned out, what do you think? do comment in the comment section below 😉
@rohailtahaPosted over 3 years agoGreat work. You can resolve the space issue as Ahmed mentioned by removing all spaces from the search input before applying the filter. Here is the code I use for my project to remove spaces: str.split(' ').filter(s => s).join(' '); This handles multiple spaces before the string, after the string and different words.
Marked as helpful0 - @yvsminvsSubmitted over 3 years ago
Hi everyone!! Any suggestions on how I can improve are very welcome. Thanks!
@rohailtahaPosted over 3 years agoBrilliant! You can set min-width:100vh to your body so that the attribution goes to the bottom of the page. It will look even nicer.
0 - @coding404lifeSubmitted almost 4 years ago
thanks I have submitted the solution can you give me a feedback <3
@rohailtahaPosted almost 4 years agoNice one Yahya, but I think you forgot to add the marker image
0 - @A-ElmaghrabySubmitted over 4 years ago
it's the first solution for me. Feel free to give feedback!
@rohailtahaPosted over 4 years agoAwesome. If you gave the "desktop image" a small negative margin from left, the image would be cut off from the left a bit and look more like the original. But the page is cool. Keep it up.
0