Specific alignment issues - html

I am setting up a school project its a gallery of pictures and I'm trying to get images to specifically align but I don't know how. Help.
I've tried basic align right, left and top but it doesn't work.
<img src="https://www.dike.lib.ia.us/images/sample-1.jpg/image" width="980" height="620">
<img src="https://imaging.nikon.com/lineup/lens/zoom/normalzoom/af-s_dx_18-140mmf_35-56g_ed_vr/img/sample/sample1_l.jpg" width="500" height="300" align="top">
<img src="https://northbridgecos.com/wp-content/uploads/2016/01/sample4_l.jpg" width="500" height="300" align="right">
<!-- Line trying to fix -->
I want the 3rd Image to go under the 2nd image and I want the 3rd image to be the same size as 2nd.

align is no longer supported in HTML5. In this specific case, the images should align correctly if you specify the units of width and height (e.g. px).
<img src="https://www.dike.lib.ia.us/images/sample-1.jpg/image" width="980px" height="620px">
<img src="https://imaging.nikon.com/lineup/lens/zoom/normalzoom/af-s_dx_18-140mmf_35-56g_ed_vr/img/sample/sample1_l.jpg" width="500px" height="300px">
<img src="https://northbridgecos.com/wp-content/uploads/2016/01/sample4_l.jpg" width="500px" height="300px"> <!-- Line trying to fix -->

Hi I have used display:flex to bring it on 1 line. below is the link.
https://jsfiddle.net/4rL7jnuc/1/888
if you need to check more about flex box then check below link. Thanks
https://www.w3schools.com/cssref/css3_pr_flex.asp

Related

URL src image won't show

The same thing has been use for another image that uses HTML, and it works fine, exept for this one : https://media.discordapp.net/attachments/604447563185127426/665665552324362260/BCS_Bottom_Bar.png
And when I put the URL the same way I did for my other image and the same elements used, Yet it doesn't work.
Can someone help me fix it ?
<div><img width="50" height="50" src="https://media.discordapp.net/attachments/604447563185127426/665665552324362260/BCS_Bottom_Bar.png?width=1260&height=117"></div>
I've tried many alternatives to the URL, but they all don't work, I even tried changing the name.
The img tag has two required attributes: src and alt.
So you have to change your href attribute to src.
<div><img width="50" height="50" src="https://media.discordapp.net/attachments/604447563185127426/665665552324362260/BCS_Bottom_Bar.png?width=1260&height=117"></div>
For more detail, take a look at; https://www.w3schools.com/tags/tag_img.asp
It loads this way, there are no issues in your html.
As the font color is white, you maybe need to give the div a black
background like this:
<div style="background: black">
<img width="50%" height="50%" src="https://media.discordapp.net/attachments/604447563185127426/665665552324362260/BCS_Bottom_Bar.png">
</div>
I changed your width and height attributes to 50 percent.
Demo:
https://jsfiddle.net/ohc50tx6/

How to position an image inside the iframe with html?

I'm trying to position an image inside the iframe, I researched but couldn't find what i needed.
Here's what I did,
The html
<div class="modal-body description">
<div class="modal-body description">
<table class="ui very basic celled table">
<tr>
<td>
<iframe frameborder="0" width="300" height="200" id="sigImage" onloadeddata="window.frames.scrollTo(300,500)" src="~/Content/images/signature.png" name="sigImage"></iframe>
</td>
</tr>
</table>
</div>
</div>
Here I tried to use the method (first I use onload) onloadeddata to position the image according to my need. Basically I have an image and i want to position a part of an image inside iframe on load.
The user can then scroll through the image to see other areas of the image.
How do I implement this?
Help would be appreciated.
I know a way but you have to use PHP, where you will store the path of your image file. This was discussed before.
Here is the link so that you can refer.

Placing image after text without adding space between lines

In this fiddle https://jsfiddle.net/spdvoc06/ last line is stretched to place the image. Can anyone please help to fix it? I need to place second image after text without adding space between lines.
<img src="https://www.getdesignschool.com/wp-content/uploads/2015/07/up.jpg" alt="" width="56" height="44" />
<p style="display:inline;">I want to learn how to design but I spend so much time just reading I never remember it all. I need something that teaches me in practical way, and gives me feed-back on what I've created...
</p>
<img src="https://www.getdesignschool.com/wp-content/uploads/2015/07/bottom.jpg" alt="" width="56" height="44" />
Add position:absolute to the last image
https://jsfiddle.net/y93su8s1/2/
It looks like all that needs to be added to accomplish this is on the last picture a "vertical-align:top"
I added it and copied the code for you. Hope this helps!
<img style="vertical-align:top" src="https://www.getdesignschool.com/wp-content/uploads/2015/07/bottom.jpg" alt="" width="56" height="44" />
https://jsfiddle.net/spdvoc06/
Adding display:inline-block and width to paragraph will fix it.
Demo: https://jsfiddle.net/spdvoc06/1/

Cannot put image inside div

I am trying to put a profile image next to names, however they won't go next to the text, instead go below the div containing the text. I'm not sure if I'm being blind, but I can't find how to fix it.
To clarify, I'm attempting to put the images that are on the page next to the text (The white next to 'main, the wolf next to 'joe' and kenny next to 'kenny').
EDIT: I found the stupidly easy solution. Flagged for deletion!
I think this can help you:
<div style="display:inline-block;float:left;">
<img alt="" src="" width="50" />
your text here
</div>
Also if you want text will be in center put text in <Div> element like this:
<div style="display:inline-block;float:left;">
<img alt="" src="" width="50"/>
</div>
<div>
your text here
</div>

html <img> tag shows gif's but doesnt show jpg's

I got a small problem with html img tags.
I got a lot of banners on my website, but for some reason firefox only shows the gif's and not the jpg's.
I have tried changing to source to the files but that didn't help much.
anyone out here knows what to do ?
JsFiddle example of the images
<!-- i didnt use the original links to the website and banners since they are
adult websites. -->
<!-- This one will work since its a gif -->
<p style="text-align: center;"><img border="0" width="468" height="60" src="http://fakesite.com/Upload/Banners/banner1.jpg" />
<!-- This one doesnt -->
<p style="text-align: center;"><img border="0" width="468" height="60" src="http://fakesite.com/Upload/Banners/banner2.gif" />
Going into safe mode, then restarting normally, the jpg's were showing like they're supposed to. thanks #j08691