Solved

Faded Borders - Tables or CSS ?

Posted on 2006-07-23
4
1,271 Views
Last Modified: 2008-01-09
I'm trying to use tables (or DIVs) to create a faded border around my contents. The contents can have its size adjusted via JS from 100px x 100px or higher and 100% x 100%, and of course I would like the borders to properly match up.   More exactly, the contents is always set to 100% width/height and it is the outer container that has its size adjusted.  I then expect the inner contents (ie. the image.jpg in my example) to auto-stretch.

So far with tables I've had a tuff time using rowspan and so dropped it but now i have large gaps along the top horizontal and bottom horizontal (I want the contents to fit snuggly up against where the border fade starts and not have to see some open gap before the contents begins or after it ends). With exlcusive DIVs I cant even begin without FF or IE vomiting all over the place - it seems to move elements to new lines or plain disappear.

Here is my page: http://www.eyedef.net/help1/border.htm

Is it possible to have faded borders (PNG) viewable in FF and IE that can wrap around my contents which can be adjusted to various size within and yet have the borders properly match up?

Note: because Im trying to use PNG images, under IE i had to make use of the AlphaFilter to display the image.  I am unable to use background-image under IE since it cant view PNG properly.  And the AlphaFilter doesnt support repeating images.  Form the URL you will see the table view with the various images used to create the border.  Each area is unique and cant be repeated by a single image.
0
Comment
Question by:ljaques
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 63 total points
ID: 17163255
you can use the onion-skin technique:  http://alistapart.com/articles/onionskin/
use 8 nested divs: one for each border (repeating background) and one for each corner (non-repeating background).
that makes lots of additional markup, but it's the most reliable technique.
0
 
LVL 2

Assisted Solution

by:yyilmaz
yyilmaz earned 62 total points
ID: 17165195
Another solution from a list apart
http://alistapart.com/articles/cssdrop2/
it resizes well.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to refer to value 8 82
How to position loader with CSS 3 65
Head to not include on scroll 4 33
toggle content 12 27
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question