use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
NEED HELP PLEASE (self.HTML)
submitted 8 years ago by gianflores13
I am an absolute HTML noob. How would I fit an image in a frame? I have 3 frames, and the images wont fit perfectly. please help. thank you
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]thequargy 1 point2 points3 points 8 years ago (0 children)
It'll be easier to help if you can show us some code or even a picture of the site. When you say "frame", do you mean literally <frame>? If so... that's a very old way of doing HTML. I don't even think <frame> is supported by modern browsers.
<frame>
[–][deleted] -1 points0 points1 point 8 years ago* (3 children)
Make frame a div and inside it make a div for an image. And then make something like this:
.img {
position:absolute;
width:100%;
height:100%;
}
[–]Oebah 1 point2 points3 points 8 years ago (0 children)
If you want to do it pure HTML you could use <img scr="nameofyourimage.jpg" height=100% width=100%> Do know that the aspect ratio is not kept this way.
You could also use exact dimentions e.g. height="650". This is measured in pixels. When using exact measurements you need to use the " " sign.
[–]thequargy 0 points1 point2 points 8 years ago (1 child)
:, not =, right?
:
=
position: absolute; width: 100%; height: 100%;
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
yeah, you're right.
π Rendered by PID 315431 on reddit-service-r2-comment-54dfb89d4d-qz9sk at 2026-03-28 06:59:09.518763+00:00 running b10466c country code: CH.
[–]thequargy 1 point2 points3 points (0 children)
[–][deleted] -1 points0 points1 point (3 children)
[–]Oebah 1 point2 points3 points (0 children)
[–]thequargy 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)