[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
More Posts
ā” [SOLVED] Reducing the size of an executablehello there what are my options to reduce the size of an executable? Here's how I publish it ```sh dā” [SOLVED] PublishAot and PublishSingleFile at thesame timeI have a very simple app and I want to reduce its size and have a good start up time. Here's my currā” ASP.NET Core Middleware running only onceHello! I have a custom middleware that runs only once and isn't running on every request. When I puā” ā” Upgrading my function app to .NET 7 - Could not load file or assembly System.ComponentModelI've tried to upgrade my Azure Function App to .NET 7. But `Microsoft.Azure.WebJobs.Extension.Storaā” How to set a time interval in a timer ?This is the class: ```csharp public string ProcessName { get; set; } public int MaximumLifeTime { geā” EntityFramework does not track changes for the select projectionHey, With Select (), I only extracted the data I needed, which I want to update later. However, afteā” Using concurrent collections to add or remove elements for in-memory collections (server)?Should we use concurrent collections to add/remove elements to/from in-memory collections in asp.netā” .NET 6 GET method returns OK even if there is no such endpointI've a .NET 6 Web Application with Blazor wasm front-end. When I make an HTTP GET request from froSolvedI have made a square root calculator It works when someone enters an invalid Input to the square roHow to set a 15 seconds timeonly type varible ?I want to archive something like in the image