Replies: 6 comments 8 replies
-
How do I help
…On Mon, 5 Aug 2024, 12:57 pm big1oot, ***@***.***> wrote:
Hello. I wrote an html code for a clone website, but I noticed that when
executed with the browser, there is an issue. When the screen is reduced to
a particular width, it begins to leave some elements out of the page. Can
someone help me check what the issue is please?
—
Reply to this email directly, view it on GitHub
<#1309>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMICBU3NYU26QVSQYR5NYJ3ZP5SCNAVCNFSM6AAAAABMAETE6OVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGAYTIMRWGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
write a query pattern in css for the same , this happens coz you haven't told the website what to do when screen in small for example see my flipkart clone , the Nav bar gets changed when reduced to certain length mostly done for 3 screens ,laptop,tab and mobile |
Beta Was this translation helpful? Give feedback.
-
Have you been able to sort it out? |
Beta Was this translation helpful? Give feedback.
-
It sounds like you might be dealing with a responsive design issue. When elements are being cut off or not fitting properly within a reduced screen width, it’s often due to how CSS styles are being applied. Here are a few common causes and solutions:
@media (max-width: 768px) { Box Model: Ensure padding and borders are properly accounted for. Sometimes, the total width of an element might exceed its container’s width due to padding or borders. Viewport Meta Tag: If you’re working with responsive design, make sure you have the viewport meta tag in your HTML : If you can provide more details or a snippet of your code, I might be able to offer more specific advice. |
Beta Was this translation helpful? Give feedback.
-
Use object-fit property in css and see what happen |
Beta Was this translation helpful? Give feedback.
-
Bro uss vw insted of px |
Beta Was this translation helpful? Give feedback.
-
Hello. I wrote an html code for a clone website, but I noticed that when executed with the browser, there is an issue. When the screen is reduced to a particular width, it begins to leave some elements out of the page. Can someone help me check what the issue is please?
Beta Was this translation helpful? Give feedback.
All reactions