Search
 
SCRIPT & CODE EXAMPLE
 

CSS

How to write something inside image

//HTML code
<div class="relative">
      <img src="" width="100%"/>                                                            
      <span class="caption">some thing</span>
</div>

//CSS code
.relative {
    position: relative;
}
.relative .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    left: 0;
    background: rgba(0,0,0,0.7);
}
Comment

PREVIOUS NEXT
Code Example
Css :: woocommerce product_cat apply to custom post type 
Css :: two file css how to get one 
Css :: css tips and tricks to handle the complicated stuffs in design part which is helpfull to handle at tha critical time and to deliver requirement to the client to the main resource 
Css :: php-twig ( 2.9) but 2.6.2-2 
Css :: bast css 3d images gallery code 
Css :: if browser css 
Css :: Fluid typography for Safari 
Css :: how can you make us stop our image from the web css html 
Css :: css how to transform and stay on top of page 
Css :: inline list css without floats 
Css :: padding 2 values how would be they applied 
Css :: next day 2pm delivery countdown timer script 
Css :: css borrar 
Css :: css diminuer épaisseur trait 
Css :: padding order nth-child 
Css :: css modal animation 
Css :: scrollbar width css 
Css :: calmp css 
Css :: webkit css audio code 
Css :: why use 0.5rem 0 in margin in css 
Css :: types of margin in css 
Css :: css multyple transition peoperty same class 
Css :: css animation left 
Css :: css html attribut 
Css :: css input not clickable 
Css :: play button animation css 
Typescript :: next start project with typescript 
Typescript :: matplotlib subplots size 
Typescript :: create database if not exists mysql true spring boot 
Typescript :: events on checkbox in jquery 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =