diff --git a/Ramakant/Center-img-No-flex/cs.jpg b/Ramakant/Center-img-No-flex/cs.jpg new file mode 100644 index 00000000..57e702df Binary files /dev/null and b/Ramakant/Center-img-No-flex/cs.jpg differ diff --git a/Ramakant/Center-img-No-flex/styles.css b/Ramakant/Center-img-No-flex/styles.css new file mode 100644 index 00000000..51791462 --- /dev/null +++ b/Ramakant/Center-img-No-flex/styles.css @@ -0,0 +1,10 @@ +img{ + width: 500px; + height: 400px; +} +.centered-img{ + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%,-50%); +} \ No newline at end of file