By uomeds on
I am trying to adapt the provided Panels rounded corner style components to use in tables elsewhere on the site.
Everything is going well, except I can't seem to get two of the corners in place. You can see here, on top a table created using
Comments
position: absolute
BTW, there are more elegant ways of doing rounded corners, take a look at CurvyCorners
Thanks for the suggestions,
Thanks for the suggestions, Jarek.
I tried "position: absolute" and while it does work there, it actually makes my in-site application look worst.
I currently have Gallery2 installed as a Drupal module and I am trying to wrap it in these corners. With "position: relative" it is perfect except as above, the right corners are both bumped to the next line. With "position: absolute" all the little corner images fly up to the very top left and right of the browser window, way outside of where they should be.
Also, I looked a CurvyCorners, and while it's impressive, I would prefer to do this using the Panels .png's so it matches my site and has the finished look I'm after when done.
I feel like there should be some way, any way, to make this work. I even tried doing it with traditional tables, but had trouble there getting the rows/columns to align.
Any more ideas?
Here's two screenshots.
Here's two screenshots. Either way, it isn't working, but it's so close with "position:relative" I feel like there's got to be some way to get this wrap right.
http://uomeds.com/position-relative.png
http://uomeds.com/position-absolute.png
Thanks again.
If parent element has
If parent element has
position: relativeand child element hasposition: absolute, then child element can be positioned relatively to parent using top, bottom, left and right. But if there is no parent element with position: relative, then child is positioned relatively to screen boundaries - which appears to be what happens here.I'm guessing that you have to add
position: relativeto one of the wrapper divs. You could also try this:Perfect! :)
Jarek you rock!
Worked like a charm.
Thanks again.
nice
thanks