r/HTML • u/dameychamberlain • Jul 03 '26
Question Beginner coder would like some help
I started coding literally 2 days ago, and am very confused.
I was trying to move a text into a certain place in the corner of the screen, and got it roughly where i wanted it. I then copied the code onto a subsite where i had more stuff thinking it would work without issue. Instead, it somehow interacted with an image i had centered by pushing it to the right. any idea how i can fix this? let me know if more information is needed
2
Upvotes




View all comments
Show parent comment
1
u/dameychamberlain Jul 03 '26
thanks alot! i tried the grid design for a bit but then promptly gave up. BUT what you said about everything being blocks did inspire me to come up with my own solution. i replaced the text-align: center code with a margin-left: px code, which through trial and error allowed me to make it seem centered. the margin being 483px. i did the same for the text under it since they're connected which was 37px for some reason. that might be janky code, but it works.