OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Another custom CSS corners question
This page's ID:
11183
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
While I'm waiting for a link from Skaarjj re: [url=http://www.ozoneasylum.com/Forum8/HTML/000788.html]his custom borders and corners question[/url], I thought I'd post my own question here. It's more of a theoretical question (kind of). Let's say you have a box, and you want to add custom corners to it. However, you don't really need a custom border--a simple 1 or 2 px CSS border will suffice. Is there any way to actually pull this off? The way I see it, if you give the box a border, any corners you try to add will appear inside the border, no? So, is this possible, or is going the [url=http://www.alistapart.com/articles/customcorners/]ALA route[/url] with simple 1 or 2 px borders the best bet here? The only thing that comes to mind right now is having two divs of exactly the same size stacked on top of each other (actually one div nested in another div, just of the same size), the "lower" one with the regular box, and the "upper" one with the custom corners, but that so reeks of hack it's not funny. I'm not making sense, am I... [Edit: OK, I've been trying to rethink this problem, and the way I see it is this: there is no way to use custom corners with CSS borders because borders are always going to be on the outside of whatever is in the box, and if you want the corners to align to the corners of the box, then they must be inside the box. I suppose I should confes--this is not a completely hypothetical question. I do have a specific problem in mind that cannot be solved by the ALA method I linked to above. I actually have found a solution to it that works in all browsers I have tested in (admittedly, not even close to all the browsers out there), but it is an incredible hack. I was just trying to figure out if there was a better way to do it. I know I'm being cryptic, but this project isn't ready to go public yet (and it's not my call anyway). When it is ready, it will be posted in the site reviews forum, and maybe then I'll ask this question again. Sorry for the confusing post.] ___________________________ Suho: [url=http://www.liminality.org]www.liminality.org[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »