Currently learning CSS and experimenting with it on an HTML page. For reference, I'm using this link.
Encountering an issue with a responsive header
image that adjusts size based on device (small on mobile, large on desktop). Is it possible to achieve this effect?
/* CSS code here */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>Title</title>
</head>
<body>
<div id="container">
<div class="offwhitepattern">
<header>
<div class="header">
<div>
<i class="menu_icon fl"></i>
<h2>
<a class="logoname">
TOI
</a>
</h2>
</div>
<div class="topsocial fr">
<a href="">share</a>
</div>
</div>
</header>
<div class="first_news">
<div class="top_new_header">
<div class="info">
<p>Sports / IPL</p>
<p>Times of India | Apr 19, 2018 | 22:03:25 IST</p>
</div>
<div class="image_heading">
<div class="img_heading_div">
<img src="https://static.toiimg.com/photo/msid-63716346/63716346.jpg?pl=63716346" />
</div>
<h1>Mumbai Indians vs Delhi Daredevils, Match 9, Mumbai</h1>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Seeking guidance on creating a different view of an image for mobile and desktop similar to the implementation in the referenced link. View the image here.
https://i.sstatic.net/jtgEl.png
For mobile view, I want the image
without a border.
https://i.sstatic.net/nl2OZ.png
On desktop view, I'd like to add a border
and increase the height compared to the web URL image.