❓ Help Same css codes pero di same output

Panto

Honorary Poster
bat ganto mga boss? same naman css code pero pag save na dina pantay sa display yung mga text
Screenshot 2025-03-12 124933.webp
Screenshot 2025-03-12 125633.webp
Screenshot 2025-03-12 125021.webp
 
Hello! It seems like you are encountering some issues with your CSS styling. In cases where the CSS code is the same but the output is not consistent, there could be various factors causing this behavior. Here are some common reasons why the text may not be displaying consistently even with the same CSS code:

1. Browser Rendering Differences: Different web browsers may interpret CSS rules slightly differently, leading to variations in how the text is displayed. It's a good practice to test your code on multiple browsers to ensure consistent rendering.

2. Specificity: If there are conflicting CSS rules targeting the same text element with different specificity, the browser may prioritize one over the other, leading to differences in the displayed output.

3. Caching: Sometimes, browser caching can cause the CSS styles to not update properly. Try clearing your browser cache or using a private browsing window to see if the issue persists.

4. CSS Precedence: Make sure that there are no inline styles or !important declarations that could be overriding the styles you've defined in your CSS file.

5. External Factors: External factors like server configuration, network issues, or conflicting scripts on the webpage can also impact the consistency of the displayed text.

To troubleshoot the issue further, you can inspect the elements using your browser's developer tools to see the applied styles and diagnose any potential conflicts or inconsistencies. If you can provide more specific details or share the CSS code you are using, I can help you further in identifying the root cause of the issue.
 
ito yung ibang code sa css
.cardsnumicon img{
width: 50px;
}
.freedelivery{
color: white;
margin: 0;
}
.define{
color: white;
margin-bottom: 10px;
}
.Cardtop2{
margin-top: 70px;
background-color: #e6e3dd ;
border-radius: 8px;
width: 30%;
height: auto;
display: flex;
flex-direction: column;
gap: 10px;
padding: 20px;
}
.cardsnumicon2{
display: flex;
gap: 270px;
}
.cardsnumicon2 h2{
margin: 0;
}
.cardsnumicon2 img {
width: 50px;
}
.onsiterep{
margin: 0;
}
.define2{
margin-top: -5px;
}
.cardtop3{
margin-top: 70px;
background-color: #e6e3dd;
border-radius: 8px;
width: 30%;
height: auto;
display: flex;
flex-direction: column;
gap: 10px;
padding: 20px;
}
.cardsnumicon3{
display: flex;
gap: 270px;
}
.cardsnumicon3 h2{
margin: 0;
}
.cardsnumicon3 img{
width: 50px;
}
.warranty{
margin: 0;
}
.define3 {
margin-bottom: -5px;
}
 
one thing I can recommend is, remove all codes.
use the basic default code to all cards (no design). then modify the display thru the html not in the css.

advantage. less css code. centralized modifications. after this, you can move those in the css.
 
1 possible problem is yung device na ginamit mo? Same laptop lang ba ang gamit mo? May na encounter na din akong ganyan 1080p yung gamit na isang laptop tapos yung isa mas maliit and yung output sa maliit ay hindi tugma sa mas malaking screen.
 
Try niyo po sir the same nalang class names para di po masyado hahaba css niyo po at para din po isa nalang class gagalawin niyo sa css kung may gusto ka po baguhin. And make sure po na set then sizes nung images/icons niyo.


1741759370253.webp
 
Try niyo po sir the same nalang class names para di po masyado hahaba css niyo po at para din po isa nalang class gagalawin niyo sa css kung may gusto ka po baguhin. And make sure po na set then sizes nung images/icons niyo.


View attachment 3594025
one thing I can recommend is, remove all codes.
use the basic default code to all cards (no design). then modify the display thru the html not in the css.

advantage. less css code. centralized modifications. after this, you can move those in the css.
1 possible problem is yung device na ginamit mo? Same laptop lang ba ang gamit mo? May na encounter na din akong ganyan 1080p yung gamit na isang laptop tapos yung isa mas maliit and yung output sa maliit ay hindi tugma sa mas malaking screen.
noted thanks!
 

About this Thread

  • 6
    Replies
  • 369
    Views
  • 4
    Participants
Last reply from:
Panto

Trending Topics

Online now

Members online
971
Guests online
1,369
Total visitors
2,340

Forum statistics

Threads
2,273,370
Posts
28,949,048
Members
1,235,719
Latest member
Wzpprince
Back
Top