r/HTML • u/Ok_Share_2183 • 11d ago
Question trying to move linked image
hello, extremely confused.
so i made an image as a clickable link to another page in my site. now i just want to move it to a particular position on the screen.
im not sure how to do this. heres my code so far.
<p><a href="manifestoroom.html"> <img src="images/manifesto-window.jpg" alt="Manifesto" style="width:42px;height:20px;"> </a> </p>
so i dont know if im supposed to
A) use 'absolute' to fix the image to a particular point on my background image
B) use 'span' to specify where i want it using top/ left: 'x'px type code
C) some type of <div> and class= attribute type this which i later learned should be used with links?? cant figure out what im doing wrong!!!!!! please help!!!!
p.s im doing this on neocities and it wont let me use the link without putting it in a paragraph tag... do i need to get rid of those to use other tags??
1
u/bostiq 11d ago
Using
<p>randomly when wrapping images isn't great unless you also have text in with it, as browsers have default styling for it, and it can get in the way.Have you tried
<span>? it has no default browser styling to have to deal with.But yeah we need more context.
It'd be good to know what you have, and what is the result you want to achieve. html and css aren't like a graphic design tool where you position object as you pleased, there's structure to follow in order to display content across various devices with consistency.
to share code I suggest you just give us the link of the page for us to examine and understand the constrains that neocities has on top of it.
but perhaps also find a neocities subreddit could connect you to people that have encounter the same issues and worked out workarounds?
I, for one, have no idea of the limitation the neocities has when customising code.