usama
usama
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
img element
23 replies
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
this wasn't a rendering issue, it was simply display: block; issue.
23 replies
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
none, i have checked everything like 100 times. tried rems first then used pixels for everything, nothing changes except when i explicitly define the height and then content overflows
23 replies
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
ok so just out of curosity I did another one, with almost the same dynamics, the size in figma was 522px in height while the html css version in the browser comes out as the computed height of 528px, so it's not the margins and paddings and whatsoever its something with how figma and browser render, we need an OG here
23 replies
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
there wasn't any borders involved and also i set box-sizing to border-box
23 replies
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
yeah it's absolutely same as mentioned in figma
23 replies
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
I'm not sweating on it but it would be great to know the reason behind it and maybe find out a possible fix to this
23 replies
KPCKevin Powell - Community
Created by usama on 11/13/2024 in #front-end
Component being rendered with a different height than figma design
yeah, it could be number of different things, i mostly did my research through chatgpt and it also mentioned something like difference with how figma and browsers render fonts differently but still there should be something causing it.
23 replies