I am trying to float text over an image in the third column of the first row inside the table. This cell has <img>inside it (processed by the psd slice), and I want to put text over it. I tried float: leftand position: absolutebut nothing works.
<img>
float: left
position: absolute
Any ideas?
position:absolutecombined with z-indexshould work.
position:absolute
z-index
If this is possible in your design, you can also use the image as the background of the table cell and just put the text in its contents.
: . , IE .
( ), , :
<td style="position:relative;"> <img src="..." style="position:absolute;z-index:1;" /> <div style="z-index:2;position:relative;">your text goes here</div> </td>
.
Source: https://habr.com/ru/post/1770189/More articles:Div has no height unless I give it a minimum height - htmlOperator MUL Vs IMUL operator in NASM - operatorsReportViewer: how to load a report as an embedded source into another assembly using reflection? - reflectionCan I get through the RoR app? or just debug using a debug checkpoint? - debuggingРасстояние между двумя точками, а q для выхода - javaHow to send MMS: // link to iPhone? - objective-cHow to make Visual Studio 2008 warn about missing header files - c ++Paste TDataSet into form at design time - data-bindingHow to receive ValidationSummary program messages? - jqueryhow to make your own fckeditor plugin - pluginsAll Articles