Results 1 to 3 of 3
-
28th Jan 2012, 02:38 PM #1OPBanned
How do I resize an image in a div in the following manner?
OK, I have doubt guys... The question is Suppose i have placed a series of images of various widths in a div and i want all of them to be resized to fit the div if they cross 700px in height and width.
How can I do so?
my123world Reviewed by my123world on . How do I resize an image in a div in the following manner? OK, I have doubt guys... The question is Suppose i have placed a series of images of various widths in a div and i want all of them to be resized to fit the div if they cross 700px in height and width. How can I do so? Rating: 5
-
28th Jan 2012, 02:40 PM #2Retired NinJaWebsite's:
loledhard.commax-width:xxpx or max-width:xx% in ur css or in ur tag
<div style="max-width:xx%;max-height:xx%">
XX
</div>
well it would resize to xx% of div's height or width
*thanks to RT (he recommended me that some days ago )
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
28th Jan 2012, 02:41 PM #3MemberWebsite's:
epicimagehost.com#div img{
height: auto;
max-width: 700px;
}
No sure tho
edit:
After reading it again I think you want this:
#divname img{
height: 100%;
width: 100%;
max-width: 700px;
max-height: 700px;
}
OR
#divname img{
height: 100%;
max-width: 700px;
}
Just keep on fiddling until it works on all browsers.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Resize Image
By cyb3r in forum Graphics AreaReplies: 1Last Post: 15th Sep 2011, 02:50 PM -
Looking for some new Image resize mod
By Spartan in forum phpBBReplies: 1Last Post: 27th May 2011, 08:58 AM -
Image resize in DLE
By John in forum Webmaster DiscussionReplies: 1Last Post: 30th Dec 2010, 01:31 AM -
how to resize image in DL
By loverhaker in forum Forum and DDL DiscussionReplies: 0Last Post: 28th Aug 2010, 01:48 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...