Placing image after text without adding space between lines - html

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/

Related

Is there a way to hyperlink an image that needs a <p tag to sit right inside footer?

<p style="text-align: center">
<img class="alignnone size-full wp-image-759 aligncenter" /><img
src="https://steamboateramuseum.org/wp-content/uploads/2021/01/ViFLverttransparent.gif"
/>
</p>
This is what I have now, I have been asked to link it but every time I add my <a tag and url to hyperlink it just doesn't work! Where would I fit a hyperlink into this? I am sorry for the stupid question in advance.
Okay so based on your comments I think I have understood your problem. Do following ->
<p style="text-align: center;">
<a href="here goes your link e.g. https://google.com">
<img src="i.imgur.com/I5DFV.jpg" />
</a>
</p>
Depending on your usecase you might have to update style to show it in better way, but this will work functionally
Although you question wasn't clear, but what i understood is your hyperlink containing an image is not working. Maybe you're missing Something in your quotes? anyway here is an example of a working hyperlink with an image.
<img src="images/someimage.jpg" title="Image hyper link" width="300" height="200" />

How to use image and text in sidebar just like this

How to use image and text in sidebar just like this.
Look at this tutorial and remove the icon-classes away and add a picture like:
<img src="https://via.placeholder.com/350x150" width="15" height="15"> Home
Just a small example of how to do that. Very easy to find an example of this question on the internet. Good lock

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/

Specific alignment issues

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

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>