+ 3

Please solve error

Please tell me how can I remove the unwanted margin from the image that in between header and main content(in mobile view) and margin from all sides(,in desktop view) Please refer to my two latest posts in feed one is of mobile view one of desktop https://code.sololearn.com/WzTMKQ3DHvoq/?ref=app

26th May 2021, 3:49 AM
Knowledge Pedia
Knowledge Pedia - avatar
19 Answers
+ 5
Knowledge Pedia see this [there was a code)
26th May 2021, 5:01 AM
NEZ
NEZ - avatar
+ 2
try: body margin 0px; container margin 0px (if you need) // img { border: solid 5px #000000; border-radius: 80px; margin: 0px; } here i have changed the margin to 0px happy coding!
26th May 2021, 4:01 AM
NEZ
NEZ - avatar
+ 2
NEZ Thnx it worked in desktop mode but not in mobile view.
26th May 2021, 4:29 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 2
You want the image be in full screen? And the navbar also?
26th May 2021, 4:33 AM
NEZ
NEZ - avatar
+ 2
NEZ Ys
26th May 2021, 4:34 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 2
NEZ Also there is one more problem i.e. everything when I switch to mobile view everytime I have to zoom out the screen little bit How can I solve it?
26th May 2021, 4:35 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 2
NEZ not working I am updating the code here Some changes i have made
26th May 2021, 4:46 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 2
Where the image gone?
26th May 2021, 4:51 AM
NEZ
NEZ - avatar
+ 2
NEZ I forgot to change the image Actually I want to set another image at top but that is in my storage
26th May 2021, 4:54 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 2
No prob i am editing the code wait 2-3 minutes...
26th May 2021, 4:54 AM
NEZ
NEZ - avatar
+ 2
Ok
26th May 2021, 4:59 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 2
NEZ Ya that is good Thanks
26th May 2021, 5:03 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 2
Problem solved?
26th May 2021, 5:04 AM
NEZ
NEZ - avatar
+ 2
NEZ Ya till now
26th May 2021, 5:05 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 1
Then remove all margins and set them to 0px (Ex. Body, IMG, #container) Hm so try: navbar width 100% (not 900px) IMG width 100% It will work surely If not I will provide you the edited code.
26th May 2021, 4:36 AM
NEZ
NEZ - avatar
+ 1
Knowledge Pedia it should get solved if you will follow my above instructions
26th May 2021, 4:40 AM
NEZ
NEZ - avatar
+ 1
I suggest you, learn flexbox or grid system in css. If you learnt. You will never be face this type of issud again.
26th May 2021, 6:31 PM
Sajid Ali
Sajid Ali - avatar
+ 1
Strenger Ok Thnx for the advice
27th May 2021, 2:41 AM
Knowledge Pedia
Knowledge Pedia - avatar
+ 1
You should to change your width in it
27th May 2021, 5:12 AM
Praveen Saini
Praveen Saini - avatar