Answers for "html full screen image"

CSS
1

how to set a full size background image in html

<head>
<style>
#example1{
  border: 2px solid black;
  padding: 100px;
  background: url(mountain.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
</style>
</head>
<body>
<div id="example1">
</div>
</body>
Posted by: Guest on June-06-2020
0

HTML Image full screen width

<!DOCTYPE html>
<html>
<head>	
  
	<style>
		body{ margin:0px }
		div#middle > div{ float:left; width:100%; }
		div#middle > div > div > img{ width:100%; }
	</style>
</head>

<body>
  <div id="middle">
		<div>
			<div>
				<img src="example.jpg" alt="example">
			</div>
		</div>
	</div>
 </body>
</html>
Posted by: Guest on June-13-2020

Code answers related to "html full screen image"

Browse Popular Code Answers by Language