Displaying an image on a web page
Solved/Closed
BrianGreen
Posts
1005
Registration date
Saturday January 17, 2015
Status
Moderator
Last seen
September 30, 2021
-
Oct 24, 2015 at 07:07 AM
BrianGreen Posts 1005 Registration date Saturday January 17, 2015 Status Moderator Last seen September 30, 2021 - Oct 26, 2015 at 06:40 AM
BrianGreen Posts 1005 Registration date Saturday January 17, 2015 Status Moderator Last seen September 30, 2021 - Oct 26, 2015 at 06:40 AM
Related:
- Displaying an image on a web page
- Windows 10 iso image download - Download - Windows
- Broken image icon - Guide
- A user tries to open a movie in windows media player but no image is displayed, and only audio plays. which software must be installed on the computer? ✓ - Video software Forum
- Kali linux iso image download - Download - Linux
- Powerpoint convert image to shape - Guide
1 response
BrianGreen
Posts
1005
Registration date
Saturday January 17, 2015
Status
Moderator
Last seen
September 30, 2021
149
Oct 26, 2015 at 06:40 AM
Oct 26, 2015 at 06:40 AM
OK - sorted it. It seems you have yo open a new class for the images you need different. I ended up with this CSS:
and this html:
I hope this helps others in a similar quandary.
#logo {position:absolute; top:0px; left:0px;}
img {margin:10px auto 16px auto; padding:1px; background:#ffffAA; border:1px solid #ffffAA;} /* for all other pictures*/
img.nofrills {margin:0px; padding:0px; border:0px;} /* for pictures with no borders so I can position them where I want them without the other code interfearing */
and this html:
<div id="logo"> <img class="nofrills" src="img/logo.gif" alt="logo" /> </div>
I hope this helps others in a similar quandary.