The application loads several images of different sizes and from different locations
Is there a method to set attributes so that they all appear with the same width and height dimensions without having to adjust each individually?
Printable View
The application loads several images of different sizes and from different locations
Is there a method to set attributes so that they all appear with the same width and height dimensions without having to adjust each individually?
Use CSS, or JavaScript to set the attributes.
Code:img {
width: 100px;
height: 100px;
}
I have unsuccessfully tried in CSS
and div styleHTML Code:.img src {
width: 500px;
height: 400px;
}
Trying to avoid having to edit dozens of images..HTML Code:<div id="galleryalt" class="paginationstyle" style="width: 500px; text-align: left">
Did you try the css Cory R suggested? That would work if I understand your request.
Dave
This is incorrect CSS. You don't need the "src", just this:
But the better way is to use width and height attributes in your image tags as demonstrated here: http://www.w3schools.com/tags/att_img_width.aspHTML Code:.img {
width: 500px;
height: 400px;
}