jenlky
jenlky

Reputation: 396

HTML and body doesn't have 100% width

My portfolio site has a white gap on the right at smaller width say 425px and below (especially on mobile devices). The reason because HTML and body does not inherit full width. Why is this so? And how can I fix it?

Upvotes: 0

Views: 223

Answers (1)

lomboboo
lomboboo

Reputation: 1233

White gap is because you have some elements with width that is not relative on mobile resolution. For example, these three p tags has fixed width: enter image description here

Just change its width to 100% on resolution below 768px.

NOTE I didn't check rest of your code, but I think this should solve your problem

Upvotes: 4

Related Questions