Results 1 to 2 of 2

Thread: Image sizes, positioning

  1. #1

    Thread Starter
    Hyperactive Member parkes's Avatar
    Join Date
    Jan 1999
    Location
    Unitied Kingdom
    Posts
    303

    Question Image sizes, positioning

    I need to place an image in a table cell that expands or shrinks depending on the screen size. I tried it through a style sheet but the size doesn't change. I cannot just place the image in the cell as I need to put something else there.

    Is there a way to:
    Change the image size through a style sheet
    Have two layers of images in the same cell
    Thanks in advance for any help provided.

    VB 6 Enterprise Edition SP4
    ADO, SQL 7/2000, ASP and some JavaScript


    >> Life goes on, but for how long? <<
    If you can smile when things go wrong, you have someone in mind to blame

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I'm not totally sure what you want, but can't you just use a percentage on the image;

    Code:
    <img src="IMG.png" alt="" style="width:75%; height="50%;">
    And for the second question, do you mean overlaying one image on top of another? If so I think you can do it in a couple of ways. You can use position, but I'd probably just go with a background image:

    Code:
    <img src="IMG.png" alt="" style="background:url('IMG2.png') top left no-repeat;">
    Haven't tested it but I think it should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width