[CSS-HTML] Page Layout, annoying random lines [Answered]

Hello everyone, i made another page on a project im working on, but some random grey horizontal lines appear out of nowhere and i have no clue how to remove them.. Also, i added a background image to the main div, i want other divs to be transparent, but im faliling.. I don't know if it's the right place to ask about page design, but i guess many of you are practical with this Edit: source https://paste.mod.gg/rgtkjrngoabz/0
BlazeBin - rgtkjrngoabz
A tool for sharing your source code with the world!
14 Replies
Kouhai
Kouhaiā€¢2y ago
Check for border
š“£š“±š“Ŗš“»š“·š“®š”‚
Added transparent and no border everywhere šŸ˜Ÿ There were solid black lines too before, this solved half the issue
Kouhai
Kouhaiā€¢2y ago
Hmm, can you $paste the html?
MODiX
MODiXā€¢2y ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
š“£š“±š“Ŗš“»š“·š“®š”‚
I also tried removing the images in case there was some misalignment causing that
Kouhai
Kouhaiā€¢2y ago
Okay, I can't really test it because I don't have the full code, but two things to consider 1 - Avoid using tables for layout in the first place 2 - Make sure to check the computed property for the elements I was somewhat able to reproduce it
Kouhai
Kouhaiā€¢2y ago
Kouhai
Kouhaiā€¢2y ago
This here happened because body bg color is grey, while tbody's bg color is white, that leaves a small gap between each td and tr
š“£š“±š“Ŗš“»š“·š“®š”‚
So i should start using more divs instead of tables? I did two other projects using this way and had no problems with this, anyway i'm always glad to learn
Kouhai
Kouhaiā€¢2y ago
Yes divs/spans with flex and/or grid
š“£š“±š“Ŗš“»š“·š“®š”‚
Could you send me a simple sample of a layout like this? šŸ˜… [SOLVED] The issue is i'm using an existing project and previous developers already used the .table {...} css style somewhere in a masterpage or somewhat. Changing name from table to body or table123123 solved the issue. šŸ¤Æ
Accord
Accordā€¢2y ago
āœ… This post has been marked as answered!
Want results from more Discord servers?
Add your server