CSS to control image size?

Had a quick question about using CSS to contorl the image
size. I have 50 or 60 images that will show up throughout the site
(project portfolio); however, I also need about 30 of these images
to appear as thumbnails in various parts of the site... I know in
Dreamweaver after insterting the image I can downsize it, but is it
possible to set a CSS setting to resize certain images in given
table cells? Please send me a word of guidance (or perhaps another
way to display the same image in different sizes, without uploading
another smaller one). Thanks.

I have an entire site where the thumbnails are set to be
50x50 through CSS even though they're actually 60x60. It works
quite reliably. You can either put the class on the cell or the
image itself.
If you put it on the cell:
td.shrinkme img {width: 50px; height: 50px;}
<td class="shrinkme"><img src="blah.jpg">
If you put it on the image:
img.shrinkme {width: 50px; height: 50px;}
<img class="shrinkme">
Just remember, though, that even though you're setting the
dimensions of how it appears onscreen, the file size stays the
same, which could slow page loading considerably. If it's just a
matter of not being able to decide between 75x75 and 100x100, it's
only a few kb difference; but if you're taking a 400x400 and
telling it to be 75x75, that's a big deal. You probably already
knew this, but some people don't.

Similar Messages

  • Controlling image size in PDF output

    Hi, I'm generating PDFs from both Word and FrameMaker source files, as well as HTML through ePublisher. When I compare PDFs generated from FrameMaker with the HTML version, the images are pretty much identical in size, but images in PDFs generated from Word are about double the size when the PDF is viewed at 100%. I don't see any obvious settings in Distiller to control this. Is this something caused by (a setting in) Word, or do I need to modfiy something in my Acrobat job options?
    Thanks in advance,
    Jim
    Message was edited by: Roannais

    make sure when you are printing the document that you are using a postscript printer driver. If you are using pcl it will encase the image with a light grey background

  • How to control image size in email?

    There are only 2 choices:
    Optimized size
    Original
    The "optimized" size is still 1 MB for just one image!!!!
    I want to have my old choices for "small, medium, large, original"
    No and I don't want to go through the "export" route its not the convenience I am used to from a Mac!
    Please fix

    Roger, these discussions are rarely read by Apple, since they are users helping users. But if you send feedback to Apple, they do read it, though they rarely reply.
    http://www.apple.com/feedback/iphoto.html
    You can also phone Apple Care 800-APL-CARE (800-275-2273)

  • Controlling image size?

    at my site www.sweenyjosh.com there are some pictures of me naked around paris. It was a college art project. The images themselves are great on my computer but on the site themselves they re so small and because they are jpegs they are pixalated. I want to upload larger versions of my pictures but can't figure it out. I am looking at everything I can think of to resize them and there is nothing in inspector. Is this not an option and iWeb just does what it wants???? The picture that is the biggest problem is the one where I am naked near the Louvre entrance(glass pyramid), it looks awful but it is a really nice picture with a lot of detail to it.... all of the other pictures are fine but I want them to take up the whole or most of the page?
    HELP PLEASE!!!!!!

    A lot of the time we get so involved in an application that we forget about the preferences - at least I do!

  • Spry Photo Gallery Image Size via CSS

    Hello!
    I´ve been customizing the spry photo gallery for a couple of time, but got my little problem when viewing it on a mobile phone. When you load up the pictures with a size of 450 x 300 px for example, put up the right xml file with it´s width and height, so the gallery shows the pictures in that size. So what I want to do is that you can specify the image size with css depending on the device you´re watching the site with. There is div in the css called "mainImage" where the size is in %. When you change it to 75% for example. The pictures are correctly shown with 75% of it´s original size, but the outline (grey background) is still in 100%. When you make this grey background transparent it´s still there and moves the caption down. I guess there have to be done some changes within the SpryImageViewer.js, but I just know very little things about JavaScript. Do you have any clues how to change this to specify the image size via CSS?
    Thank you for your help!!!
    Kind regards,
    Joerg

    I see you are still using Spry 1.5. Have you considered upgrading to 
    Spry 1.6.1?
    Also your XML is broken, if you open up your xml in a normal standards 
    complaint browser such as firefox, you will see that it doesn't render
    a normal tree view as it would do with other xml files. So i suggest 
    checking those errors out.
    Its mainly because you  forgot to close your starting tag of the 
    gallerys node. (<gallery
    base = ""
    background = "#FFFFFF"
    banner = "#F0F0F0"
    text = "#000000"
    link = "#0000FF"
    alink = "#FF0000"
    vlink = "#800080"
    before your xml starts.

  • How to control the size of SVG images in epub files?

    There is unfortunately no support for SVG files in InDesign.
    Most of my images in jpg convertes nicely, but the small ones do not.
    Therefore I want to use SVG files which I have created in Illustrator.
    But how do I set the size in the epub file? Right now, whatever I do, they come out too big and I don't know how to control the size.
    Is there a program, like Sigil or other, that can place the image for me - I'm no html wizard you see....

    In any Java program, it is good practice to make sure your live objects leave some room in the heap for "scratch space." Without this, you will spend too much time in GC, and, in the worst cases, run out of memory. In the general case, you can see how much live data your application requires by looking at the heap used after a full GC's. For Coherence, you should ensure that live data, as you say, is under 70% of the maximum heap size.
    Coherence provides you tools to help enforce this policy. [http://coherence.oracle.com/display/COH35UG/local-scheme] describes how to size limit your cache. By implementing an eviction policy, you can control what happens when a size limit is exceeded.

  • How to control the size of Database's image

    hi,
    I have already saved image in database, & i also can retrieve image from database. But My problem is that when i save big image then it shows with it's original size. But i want to see its size what i want? But how this possible?i want to see it's small size. i cannot do it. I know how to control the image with ImageIO . But i don'nt know how to control the size of an image from database. I cannot do it. Please Help me.
    Thanks
    bina

    Hi,
    You can control the database size at technical setting level based on ur requirement. Field name is Size category. 
    Thanks.

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • Having trouble with image size on new HP2311x display with 4 year old MacBook. Image too small. Do I have to stay in mirror mode? I have messed with OSD and Image Control menus on display and have gotten nowhere. Help?

    Have just installed new HP 2311x display withe 4 year old MacBook. VGA cable. In mirror mode, at high resolution of 1920x1080, image size on HP display is too small. How can I get it to fill screen? If not in mirror mode, the display looks good, only I can't get the top menu bar (tried to drag it) nor the rest of the desktop. Help?

    Have just installed new HP 2311x display withe 4 year old MacBook. VGA cable. In mirror mode, at high resolution of 1920x1080, image size on HP display is too small. How can I get it to fill screen? If not in mirror mode, the display looks good, only I can't get the top menu bar (tried to drag it) nor the rest of the desktop. Help?

  • Controlling image width in XML brought into TextField via RSS

    Hello. First off, let me say that I am new to these forums,
    and new to AS 3.0
    Here's my question.
    I'm building an RSS Reader. Everything is working great,
    except I can't figure out how to control the size of images
    embedded in the XML of the blog posts.
    I attempted to set up a textField with an attached css
    stylesheet to limit image widths, but I couldn't get that to
    function. Should I try saving the remote XML to my server via PHP,
    and then adding my desired maximum width to every <img> tag?
    That seems like a lot of work for a simple task.
    Ideally, I'm dreaming of a textField or TextArea or
    ScrollPane property that would force contents to obey the
    container's width. Can you tell I usually write css?
    Thanks in advance for any advice.

    Assuming that html is valid xml, and it apparently is if you
    are working with it successfully, you would access that value like
    this:
    description.img.(@src)
    A labelFunction would make it easy to display that string.
    I haven't worked much with in-line renderers so ai am not
    sure you you would do it in there.
    Tracy

  • How can I fix the image size in a "Picture Library Slideshow Web Part"

    When I upload images to be used in the Slideshow Web Part they become skewed because they are different sizes. Is there a way to fix this besides uploading images that are all the same size? 
    Thanks,
    Kathleen

    http://webcache.googleusercontent.com/search?q=cache:bfUcFkD_bxgJ:spcodes.blogspot.com/2012/08/display-slide-show-images-within-fixed.html+&cd=4&hl=en&ct=clnk&gl=in
     Display Slide Show Images within fixed size
    The Picture Library Slide Show Web Part show the images stored in a picture library with slide show effect.
    This slide show web part displays the images with it's original size. Due to this the web part changes its size according to the image size. If we want the slide show to run within the specific size on the page then we need to control the size of the images
    to the fixed length during runtime.
    To achieve this we need to add the CEWP above the picture Library Slide Show web part & insert the following script in that web part.
    <style type="text/css">
    .ms-WPBody TD {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: auto !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
    .ms-WPBody TD DIV {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
    .ms-WPBody TD IMG {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 260px !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    190px !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px; align: center
    .s4-wpcell-plain {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
    .ms-PartSpacingVertical {
        MARGIN-"color:#783f04;font-family:'Courier New',Courier,monospace;" />}
    .style1 {
        COLOR: #808080
    }</style>
    We can fix the height & width of the image in the .ms-WPBody TD IMG css.
    http://sharepoint.stackexchange.com/questions/66028/picture-slideshow-web-part-image-size-too-small
    How to display original images in SlideShow web part
    Step 1. Save below JavaScript code to file, for example in SlideshowObjectInitializer.txt and upload it to SiteAssets Library
    <script type="text/javascript">
    function SlideshowObjectInitializer() {
    ShowPic = (function(ShowPicOrig) {
    return function() {
    var ssObj = arguments[0]; //SlideShow object
    var curPicIdx=ssObj.index; //current picture index
    ShowPicOrig.apply(this, arguments); //call original ShowPic
    //apply some changes to display original picture in SlideShow control
    ssObj.image.src = ssObj.linkArray[curPicIdx]; //display original image instead of web image
    //change picture & container size to auto instead of fixed (by default web image size is used)
    ssObj.image.setAttribute('height','100%');
    ssObj.image.setAttribute('width','100%');
    var cell = ssObj.cell;
    cell.style.width = 'auto';
    cell.style.height = 'auto';
    cell.style.display = '';
    var pcell = ssObj.cell.parentNode;
    pcell.style.width = 'auto';
    pcell.style.height = 'auto';
    })(ShowPic);
    ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, 'imglib.js');
    </script>
    Step 2. Add CEWP on page where Slideshow web part is located and in the Content Editor tool pane, under Content Link, type
    /SiteAssets/SlideshowObjectInitializer.txt. 
    If this helped you resolve your issue, please mark it Answered

  • Control image to report doesn't take all width

    I want to add and print a control to my report, but the control image doesn't take all the width avalaible on my report.
    It's stretched before the margin.
    Take a look to my exemple in attachement
    thanks
    Attachments:
    print_panel.vi ‏38 KB

    Hi,
    I regret to say that the image size is a known bug with the Report Generator. There is currently no workaround for this issue. The image size cannot be greater than a 1� margin on both sides. I hope you�ll be able to work around this. The issue will be fixed in a future version of LV.
    Danny G.
    Applications Engineer
    National Instruments

  • Photo gallery image size

    Hi. Is it possible to adjust the photo gallery module's code in a way that makes the image that gets displayed on selecting the thumbnail image display no larger than the browser? I have a client that's uploaded image that are pretty large and would prefer not to have to save them as smaller images if possible.
    Thanks
    Grant

    Are you by any chance saving as a JPEG or TIFF file?
    The image size that Photoshop displays is the uncompressed file size - if you save in a format such as JPEG the image is compressed, which will result in a smaller file size.
    Below is a comparison of the same image in Photoshop versus the compressed file saved to my computer:
    Here's a more technical explanation of what's going on: http://photo.stackexchange.com/questions/15184/why-does-photoshop-show-my-jpeg-files-unusu ally-large
    EDIT: If you want more accurate control over the image file size when saving, try going to File > Save for Web... You'll be able to choose your file format, and then see the resulting file size in the bottom left-hand corner of the window:
    I hope this helps!
    Cheers,
    Kendall

  • IE incompatible ? Image size.

    Hi,
    I know very little about HTML, CSS and the like but as a photographer I upload gallery webs all the time for clients etc. I generate these in PS CS2 or iView MediaPro and then upload to my server (shared web hosting).
    With a current project requiring a 'site' type environment I decided to try iWeb. Before visiting this site please note that due to image sizes with iWeb it's a bit on the heavy side and if you're using IE on a PC BEWARE of crashes! Safari may even crash as has done with me.
    http://www.kura-images.com/camping
    Remarks and problems :
    1. As you can see my site does not resemble any iWeb template - using the 'modern' template I basically threw everything away and designed from scratch. It's a great WYSIWYG appli in that sense - no code - just drag and drop, resize, add some effects etc. I published regulary to a folder as a way of double checking but was impressed with the 100% WYSIWYG capability of iWeb
    2. Image size is a MAJOR problem. My concerns are specifically with the gallery pages generated from the photo page temps. Thumbnails at 16ko is too big and the motor that generates the large image files uses a single parameter (800pixels largest dimension) that cannot be changed in any pref settings etc. It also uses a compression factor which is a tad too high. Using Image Ready or the PS gallery web function (driven by Image Ready) I can get as good visual quality for my web-optimised JPEGS for 65% of the file size.
    Note : I tried this file swap as a test
    I changed one image in the folder for the "activités" page (activities_008) - I made a smaller thumbnail in ImageReady and created a 600pixel version of the large file; I replaced the images in the folder with these and checked the site. The thumb appears no problem in a smaller size (btw 6ko vs 16ko - that's a big diff when you apply it to 250 images !). SlideshowJS however has instructions to open the image at main size as determined by the slideshow index file creation generated by iWeb. And that's written as 800pixels. So on opening the 600 pixel image I'd replaced, slideshowJS opened it to 800pixels (not pretty). The only way to rectify that was to go into the source code in the relevant 'activités' js file, find the codeline for the image 008 and change the values manually. And I'd have to do that with 250 line of code ! That rather defeats the prupose of having a nice easy application to produce your galleries.
    3. Upload to my server via Transmit was trouble-free. No problems publishing to a non .mac server.
    4. Problem with the page titles. The names you give to pages determines the URL. Any spaces means you get the %20 thing and if, like me, you're writing in French the accents mean that iWeb has to get around the problem in a different, and not very practical, way. iWeb creates a random character line as a name, and uses that as the URL for pages where accents appear in the title. When the assets and index page are published those long character names appear on the index file and folder.
    I also think that may lead to compatability issues with certain servers.
    5. But here's the BIG PROBLEM !
    I had 4 people with PC's and IE (God bless 'em) check out the site. 2 reported repeated crashes of IE (unexpectedly quit exe. error). No problems with the homepage - just when clicking on some of the photo pages. What is really strange is that neither had problems when accessing the 'La Soirée' page, but both had problems with all the others. Apparently the crash came after IE tried to load the page, succeeded in loading a few thumbnails and then stopped and crashed 5-10secs later.
    6. EVEN WORSE !
    I have gone back to my site several times, emptying Safari cache each time, and have succeded in stalling definitively Safari's attempts to load certain pages. Just stops with partial page upload. I then have to quit Safari and re-open to be able to access any web page (even other sites). Sometimes it's OK, sometimes not.
    This site goes officially live on wednesday morning but for now it's a no-goer. Just too erratic and not IE compatible.
    PLEASE, any suggestions ?
    Many thanks in advance
    Peter
    G5 2Ghz   Mac OS X (10.4.5)  

    4. Problem with the page titles. The names you give
    to pages determines the URL. Any spaces means you get
    the %20 thing and if, like me, you're writing in
    French the accents mean that iWeb has to get around
    the problem in a different, and not very practical,
    way. iWeb creates a random character line as a name,
    and uses that as the URL for pages where accents
    appear in the title. When the assets and index page
    are published those long character names appear on
    the index file and folder.
    I also think that may lead to compatability issues
    with certain servers.
    Yes, it is best to avoid spaces and accents and special characters if you can. If you must have them in your navigation links, then don't use the iWeb nav bar. Instead give your pages very short simple names with the Inspector, uncheck the box for "include in nav bar," and just create ordinary hyperlinks for page navigation. I don't know if this will help with IE compatibility, but it can't hurt.

  • Image size and profiles in Aperture;

    version 3.0.3.
    First problem is I can't see where I can fix the image size before getting to the print page! I prefer to do this and preview it before printing, as I used to in PS and then Lightroom.
    Other problem is that Aperture tells me to turn off my printer colour management, but I can't get to such a control from the HP B9180 driver that is now part of OSX (10.6).
    Help please!

    Pat,
    You don't need to set the image size as such. The image prints on the page according to two sets of criteria:
    1. Whether you set dpi to custom or a specific value, and
    2. The page margins you set either as a printing once-off, or as a new printing pre-set.
    For example, I print "arty" photos in a portrait format on A4 matte paper. Left and right margins are around 3cm, top margin is around 3cm, bottom margin is around 5 cm (all numbers are from memory...). I have a title just below the image.
    I created this particular page setup for a certain photo and liked it so much I saved it as another print preset. Any photo I print using that preset fits within the margins defined. The very next print might be the same photo, but this time printing A3+ on Ilford Galerie Smooth Pearl. Choose the photo, select the relevant print pre-set, print. Re-sizing is irrelevant - the print in both cases is coming from the processed raw at maximum resolution.
    Regards,
    Calx

Maybe you are looking for

  • HT4623 HAVE IO6 UPDATE ON, NOW NOT CONNECTING TO DESKTOP

    JUST UPDATED TO IOS6 ON MY PHONE. NOW I AM UNABLE TO CONNECT TO MY PC, HELP?

  • Apache Returns 403 Status When Accessing ~/Sites Web Content

    Under Mac OS X 10.4.x, I don't recall having any problems accessing web content in ~/Sites. After upgrading to Mac OS X 10.5.1, Apache returns a 403 status when using a URL in the following form: http://spielzeit.hasental.com/~mcc/weather. Using the

  • The mara table in join statement takes 6 min...

    hi all, i want to reduce the runtime for this statement... it is taking nearly 6 min in the mara table itself... plz help... SELECT mara~matnr mara~mfrpn mara~prdha mchb~werks mchb~charg            mchb~lgort mchb~ersda mchb~clabs mchb~ceinm mchb~csp

  • PDF printing got error : 500 Internal Server Error

    Hi, I have configured PDF printing as per doc "PDF Printing in Application Express 3.0" and configured " Apache FOP " as per instruction and test the JSP page by http://hostname:8888/apex_fop_render.jsp and got following error: java.lang.NullPointerE

  • Viewing content of a tape

    How can is see the files that are stored on a tape ? Do I have to mount the tape ? I dont thionk so .... Can I do a ls /dev/rmt/0u ???