Normally while designing webpage we will need to use images and text within. Sometimes, we also might need to wrap the text around the image as shown in the image above.
In this article, we have provided HTML and CSS for wrapping the text around image.
Source Code :
<style type="text/css"> .wrapper{ box-shadow: 0 3px 10px rgb(24, 85, 138); font-size:19px; padding:10px 20px 10px 20px; width:80%; margin:0 auto; background: aliceblue; margin-top:40px; margin-bottom:40px; } .frame { box-shadow: 0 3px 10px rgb(24, 85, 138); height: 300px; width: 400px; float:right; margin-left:20px; margin-bottom:5px; overflow: hidden; } .zoomin img { height: 300px; width: 400px; -webkit-transition: all 2s ease; -moz-transition: all 2s ease; -ms-transition: all 2s ease; transition: all 2s ease; } .zoomin img:hover { cursor: hand; width: 425px; height: 325px; } .wrapper p{ text-align: justify; } h1{ text-align:center; } </style> <div class="wrapper"> <h1>Mumbai win 5th IPL title, two in a row</h1> <hr> <p>Defending champions Mumbai defeated Delhi Capitals by 5 wickets in the final of the 13th edition. Delhi, which made it to the final for the first time, failed to lift the title against mighty Mumbai. Mumbai have defeated Delhi in all four matches this season.</p> <div class="zoomin frame"> <img src="https://letzcricket.com/uploads/news/2aydhcdMpl833IN1.jpg" /> </div> <p>Mumbai chased down the target of 157 runs losing 5 wickets with 8 balls to spare. Captain Rohit Sharma (68) and Ishan Kishan (33) were the stars with the bat for Mumbai. Quinton de Kock scored 20 runs and Surya Kumar Yadav scored 19 runs. Anrich Nortje of Delhi took 2 wickets while Kagiso Rabada and Marcus Stoinis shared a wicket each.</p> <p>Earlier, Delhi Capitals won the toss at the Dubai International Cricket Ground and finished their innings at 156/7 from allotted 20 overs. Shikhar Dhawan added 15 runs in Delhi's innings as captain Shreyas Air scored 65 and Rishabh Pant 56 runs. Other Delhi batsmen could not touch the double digit score. Mumbai's Trent Boult took 3 wickets and Nathan Coulter Nile took 2 wickets. Jayant Yadav took one wicket.</p> <p>Mumbai had also beaten Delhi in the qualifiers to secure a place in the finals. Delhi defeated Sunrisers Hyderabad in the second qualifier to secure the final clash with Mumbai.</p> <p>Mumbai chased down the target of 157 runs losing 5 wickets with 8 balls to spare. Captain Rohit Sharma (68) and Ishan Kishan (33) were the stars with the bat for Mumbai. Quinton de Kock scored 20 runs and Surya Kumar Yadav scored 19 runs. Anrich Nortje of Delhi took 2 wickets while Kagiso Rabada and Marcus Stoinis shared a wicket each.Earlier, Delhi Capitals won the toss at the Dubai International Cricket Ground and finished their innings at 156/7 from allotted 20 overs. Shikhar Dhawan added 15 runs in Delhi's innings as captain Shreyas Air scored 65 and Rishabh Pant 56 runs. Other Delhi batsmen could not touch the double digit score. Mumbai's Trent Boult took 3 wickets and Nathan Coulter Nile took 2 wickets. Jayant Yadav took one wicket.</p> <p>Mumbai chased down the target of 157 runs losing 5 wickets with 8 balls to spare. Captain Rohit Sharma (68) and Ishan Kishan (33) were the stars with the bat for Mumbai. Quinton de Kock scored 20 runs and Surya Kumar Yadav scored 19 runs. Anrich Nortje of Delhi took 2 wickets while Kagiso Rabada and Marcus Stoinis shared a wicket each.</p> <p> Fairplay Award : <strong>Mumbai Indians</strong> <br> Emerging Player of the Season : <strong>Devdutt Padikkal</strong> <br> Game Changer of the Season : <strong>KL Rahul</strong> <br> Super Striker of the Season : <strong>Kieron Pollard</strong> <br> Most Sixes Award : <strong>Ishan Kishan</strong> <br> Power Player of the Season : <strong>Trent Boult</strong> <br> Purple Cap : <strong>Kagiso Rabada</strong> <br> Orange Cap : <strong>KL Rahul</strong> <br> Most Valuable Player : <strong>Jofra Archer</strong> </p> </div>