I am trying to create some responsive images with data-media which is working out quite nicely. Unfortunately when i try to style my thumbnails it literally shows all outlines of the thumbnails which i dont wish, as the class should only be applied to the shown image.
<p><span class="post-img" data-picture data-alt="An unsual picture" >
<span class="img-thumbnail" data-src="/generated/2014-03-06-some-article/IMG_1394-13*10-f320b4.jpg"></span>
<span class="img-thumbnail" data-src="/generated/2014-03-06-some-article/IMG_1394-134*100-f320b4.jpg" data-media="(min-width: 100px)"></span>
<span class="img-thumbnail" data-src="/generated/2014-03-06-some-article/IMG_1394-201*150-f320b4.jpg" data-media="(min-width: 940px)"></span>
<noscript>
<img src="/generated/2014-03-06-some-article/IMG_1394-13*10-f320b4.jpg" alt="An unsual picture">
</noscript>
</span></p>
The example is shown here with a random image from google images: http://codepen.io/anon/pen/bugmi
As seen on the result, there are clearly three outlined thumbnails acting as placeholders. The example does not seem to work as expected with codepen, but i think most would understand the concept.
Related
By minus i mean margin/padding:-#px
I have an image which I have put as a div background. Now I need to put three bottoms on the image. SIMPLE SAID : i need three bottoms on the image...in a browser i do it in a matter of seconds but I've found no way how to do it in outlook. My last attempts where to wrap the divs in table and giving parameters to the table itself still not working.
A simple example of what I need to get in an email template.
That's what I receive in output no matter what manipulation I do
My first and cleanest code were simple as the idea itself (just to put three bottoms on an image) but obsolute not working padding not working margin not working in outlook:
<body>
<div class="MainImage" align="right">
<img class="topimage" style="width:600px;height:900px;position:absolute;" src="Files/Meuhedet_eMailTemplate.png" alt="">
<img class="topimage" style="width:150px;height:25px;position:absolute;margin-top:750px;margin-left:42px;" src="Files/Meuhedet_buy.png" alt="">
<img class="topimage" style="width:150px;height:25px;position:absolute;margin-top:750px;margin-left:230px;" src="Files/Meuhedet_Tor.png" alt="">
<img class="topimage" style="width:150px;height:25px;position:absolute;margin-top:750px;margin-left:415px;" src="Files/Meuhedet_Inf.png" alt="">
<img class="topimage" style="width:140px;height:14px;position:absolute;margin-top:857px;margin-left:435px;" src="Files/Meuhedet_Website.png" alt="">
<img class="topimage" style="width:60px;height:12px;position:absolute;margin-top:860px;margin-left:355px;" src="Files/Meuhedet_Tel.png" alt="">
</div>
</body>
This is how my code looks now...still no results
Eventually I got to something very complicated and lots of garbage code but nothing worked including wrapping img in grid table tr td and still am not able to use Margin-top: #px.
<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" />
On my website, I included images. I am currently displaying the copyright information for the images as a title attribute on the image tag.
I have recently found out that mobile browsers cannot display tooltips, meaning that the copyright information does not display on mobile. This is an issue.
I was wondering if there was a way to create a black bar at the bottom of the photo with the image's title attribute displayed on in?
UPDATE: Nevermind. I have decided that I will implement the figcaption element for all future images. Thanks for all of the answers though.
You can use <figure> element to mark up a photo in a document in HTML 5.
<figure>
<img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
<figcaption>Fig.1 - A view of the pulpit rock in Norway.</figcaption>
</figure>
Here is a link on W3Schools.com to show you how it works!
Hope this help!
I'm kind of newbie with CSS and HTML5, I'm using Bootstrap Carousel as my template for the site I'm building and I'm having issues with the 500 x 500 picture, I don't really know how to replace it, it seems like its JavaScript or something, i was wonder if someone can light my way here..
This is the template: http://getbootstrap.com/examples/carousel/
Below is the image of the picture I'm trying to replace.
http://i.stack.imgur.com/9AoxZ.png
The following snippet contains the image:
<img class="featurette-image img-responsive" data-src="holder.js/500x500/auto" alt="500x500" src="data:image/svg+xml" data-holder-rendered="true">
You should change the src value to where your image is, not the data-src. The data-src attribute is used to include invisible data in an element. You can read more about it here.
please try
<img class="featurette-image img-responsive" ng-src="your-image-path.png" alt="Generic placeholder image">
<img src="#" alt="abc"/>
after above code rendered in browser the position of alt and src are changed like
<img alt="abc" src="#"/>
Is there is any way to fix these problem
"I want that every time src comes before others attributes!"