Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ellipse div-clipping possible?

    Hello,

    I am working on a website for a friend's hardrockband. We created a layout with an oval content-window in the center of the site. Also, the content of this window is "scrollable" and this is why it does not look very fine when lines of text or pictures wandering to the top or bottom boundaries.

    I know the easiest way would be to lay a div over the text-window, containing a transparent gif. But if there were any links beyond it, I would not have any access to them. Or is there any way to trick this out, something like to set the focus onto the "z-index-downunder-layer" by javascript?

    If you want to have a look at my example:
    www.dreams-2-illusion.com/privat/upload/.
    As ´far as I know only the IE has a css-option like "flter:mask".

    If you could help me and have any suggestions or examples for me, you would do me a great favour.
    Last edited by OliSchwarz; 10-28-2006 at 02:55 PM.

  • #2
    Regular Coder
    Join Date
    Oct 2006
    Posts
    206
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Going by the thread title, you are wondering if elements can be clipped in an elliptical shape. As far as I know, no. Currently, the only shape elements can be clipped into is a rectangle.

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    You can't as far as I know... Do you want characters to disappear when they reach the inner edges of the ellipse? That is what I am understanding from your title and post. I recommend making the rectangle clip a bit more away from the edges rather than trying to make the clip fit the ellipse.
    PHP Code:
    $hello file_get_contents('hello.txt'); echo $hello
    hello


  •  

    Posting Permissions

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