Results 1 to 2 of 2

Thread: [RESOLVED] Is there away to set a background to 50% ?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Resolved [RESOLVED] Is there away to set a background to 50% ?

    Is there away to set the background of a table to 50% of its height, so that half is white and the other half is transparent.

    Thanks in advance Chris
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: Is there away to set a background to 50% ?

    Yes and no. There are options that may or may not work for you:

    - find the number of table rows, divide by 2 and give white background to the desired half of them.

    - you can use a white background image. Make it as high as you want the white to go, then repeat-x to go across the length of the table. This requires you to know the intended pixel height of the table.

    - same idea as above, but specifically use a PNG if you want a smooth gradient transition between white and transparent. Some old versions of IE don't support transparent PNGs.

    - CSS3 can make background gradients. If you want to go this route, be prepared to use multiple vendor-specific declarations, and be mindful that it might not work in all browsers.

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