For smart Primates & ROBOTS (oh and ALIENS ).

Tuesday, December 03, 2024

How to make center align child div

 How to make center align child div? Suppose you have 2 Div tag. And want the make inner tag center<div id="d1">    <div id="d2">      </div>  </div> Then you will use below 1 line css code as below:style="margin: 0 auto;" <div id="d1">    <div...
Share:

Change section tag's background image at runtime

Change section tag's background image at runtime Change <section> tag's background image at runtime. we assume that <section> tag's "back-img-url" attribute have the image link. <!DOCTYPE html><html lang="en"><head>  <meta charset="UTF-8">  <meta name="viewport" content="width=device-width,...
Share:

content visibility example

Content Visibility Example    <!doctype html><html lang="en-au"><head>    <meta charset="utf-8">    <title>Homepage</title>    <meta name="viewport" content="width=device-width, initial-scale=1"><style>.story {  content-visibility: auto; ...
Share:

Ads Inside Post

Powered by Blogger.

Archive