Skip to content

Instantly share code, notes, and snippets.

@BhoiDanny
Created May 18, 2023 05:14
Show Gist options
  • Select an option

  • Save BhoiDanny/c35206b3c87ac543e4f69b8715dac25c to your computer and use it in GitHub Desktop.

Select an option

Save BhoiDanny/c35206b3c87ac543e4f69b8715dac25c to your computer and use it in GitHub Desktop.
write the html code with internal css rule to generate the box with blue borders which are 5px in width and has a padding of 6px, the box should have an image inserted
<!DOCTYPE html>
<html>
<head>
<title>Blue Box with Image</title>
<style>
.blue-box {
border: 5px solid blue;
padding: 6px;
display: inline-block;
}
</style>
</head>
<body>
<div class="blue-box">
<img src="path/to/your/image.jpg" alt="Image" width="200" height="200">
</div>
</body>
</html>
@BhoiDanny

Copy link
Copy Markdown
Author

Should look like this
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment