Pretty easy, this is the format of all my images/containers:
<div class="photo"><img /></div>
<style type="text/css">
div.photo { height: 100px; line-height: 100px;text-align:center; }
div.photo img { vertical-align:middle;}
</style>
More Related Contents:
- How can I modify with css an image appended with javascript?
- How to silently hide “Image not found” icon when src source image is not found
- Disable dragging an image from an HTML page
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- Input type="text" with select functionality after clicking on Input type="text"
- jQuery .animate function not responding properly
- How to force browser to show image 3 inches wide?
- Reloading a single div in an html page [closed]
- Javascript Execute message when mouse is on left side of page [closed]
- how to proportionally scale a div with images inside?
- fixing slider on my website [closed]
- Can I use HTML tags in the options for select elements? [duplicate]
- Clear icon inside input text
- Hide scrollbar while still being able to scroll with mouse/keyboard [duplicate]
- make html text input field grow as I type?
- how to disable DIV element and everything inside [duplicate]
- Creating a select box with a search option
- Load HTML page dynamically into div with jQuery
- jQuery position DIV fixed at top on scroll
- How to define the css :hover state in a jQuery selector?
- Fill available spaces between labels with dots or hyphens
- How to resize Twitter Bootstrap modal dynamically based on the content
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- Extracting text from a contentEditable div
- Print repeating Page headers in Chrome [closed]
- Retain scrollbar position even after reloading using javascript
- How do you swap DIVs on mouseover (jQuery)?
- Change background on button click, using CSS only? [duplicate]
- Jquery/Javascript Opacity animation with scroll
- Can I save input from form to .txt in HTML, using JAVASCRIPT/jQuery, and then use it?