Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Z-Index without style sheet

Tags:

html

css

web

Can you set the Z-Index for an image in HTML without writing or embedding a style sheet? I am uploading some content to a web forum and I need to be able to put some text on top of an image, formatted inside of a table, but the image just gets pushed out of the way. There is no way to "send to back". I have been making minor changes to the HTML itself, but I have been trying to avoid it as the GUI based editor tends to add a lot of extra filler to the HTML and makes it aweful to read.

like image 247
user1174834 Avatar asked Nov 07 '25 03:11

user1174834


1 Answers

You mean using inline style? So something like

<img src="http://path/to/img/" style="position: absolute; z-index: 3" />
like image 142
LOLapalooza Avatar answered Nov 09 '25 10:11

LOLapalooza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!