+ 4
[SOLVED](code doubt) <td> not occupying full screen width
SEE MY CODE, i have THREE PROBLEMS/BUGS: âïžâ ( 1.[FIXED] ) Element 39 i.e., Yttrium has no border in table mode and â âïž( 2.[FIXED] ) searching elements is functioning properly but also gives names of elements that we don't want like searching hydrogen gives hydrogen as expected but also mietnerium. ( 3.[FIXED] ) in list mode 100% table cell width is not occupying full screen width and 100vh/vw are misbehaving, how can i make my <td> cells of full screen width properly? đđ»PLEASE HELP ME FIX THESE BUGS!đđ» https://code.sololearn.com/WmmTS2FcI01A/?ref=app
7 Respostas
+ 5
đ„âčÎVÎâáŒ
1. Remove the property scale(1.1) for td. This will help you to get rid of bug no 1.
You are facing a problem because scale(1.1) increases the size of the boxes which is hiding the border of Yttrium.
[SOLVED]
2. You have not added the sub tag for mietnerium which cause it now to get removed when we search something because you are looping through the sub tags to remove elements.
So, add the sub tag for it so that it gets removed and comes only when someone search for it.
3. Update your td class property to :-
```
.td{
display: flex;
flex-direction: column;
width: calc(100vw - 4px);
text-align: center;
border-width: 1px;
padding-top: 2px;
margin-left: 4px;
margin-top:10px;
border-right: none;
box-sizing:border-box;
}
```
Hope this might help
+ 5
đ„âčÎVÎâጠsolved ( i guess) bug no 3 check it out
+ 4
đ„âčÎVÎâጠsolved bug no 2 check it
+ 4
đ„âčÎVÎâጠdon't worry bro it's a small mistakes that even professionals do. And as we all know we learn from our mistakes. đđ
So, be happy that you learnt something.
+ 3
Krish can't believe I'm such a fool!đł
Thanks for noticing this mistake! That is a real shame for me!
+ 2
Krish yeah the main problem was that i was using transform:scale(1.2) unnecessarily and that was affecting the code badly... I arrived previously what you say now... Thanks for your help... YOU'RE A PRO
+ 2
I see
đđđ