Click to See Complete Forum and Search --> : Rounded borders


Jona
01-02-2004, 04:47 PM
Hey guys! :D I know you're all thinking, "What?! Jona is asking a question!?" But yeah, the greatest minds always have questions. :D

Anywho, I was wonderin' if anyone could help me out with a li'l problem I've got here. You know how in HTML, when they use (barf) tables for layout, erhem, they have images for rounded borders? I'd like to do that. I know I can use CSS to make rounded edges, but it comes out square in IE, and although IE is not square (socially), it's the most popular browser so I'd like to use images for it. But absolute-positioning of the images isn't going to work, and putting IMG tags inside of each DIV and using margins to move it ontop of the border won't work either. I even tried putting four backrounds on there! (Just goes to show you I've been working on this for about four hours--although not this part in particular.) :rolleyes:

I've searched all through the Web, but couldn't find anything on this. Every CSS-designed site either uses images or has square borders. I like things to be well-rounded (like me). :D

So, if any kind soul out there would be willing to gimme a boost, I'd appreciate it. :)

[J]ona

fredmv
01-02-2004, 05:06 PM
Hey Jona, welcome back. Haven't seen you around here for a while. :D

As for your question, check this thread (http://forums.webdeveloper.com/showthread.php?s=&threadid=22344) for an answer. It is possible with CSS, but only Mozilla supports it as of now (hence the vendor-specific prefix on the property name). You may also find this (http://www.alistapart.com/articles/customcorners/) A List Apart article helpful, but note that it doesn't use pure CSS — it uses images (which I realize you don't want to use) to provide the rounded border. The only real problem with this solution is that if you try to make the font-size bigger it will appear to jump out of the box, so using CSS would of course be the best solution, but it just isn't supported very well yet.

Jona
01-02-2004, 05:08 PM
Hey Fredmv, I guess you're a lot like me. I usually don't read all of the posts completely either. :p

Really, I mentioned that I know it's possible to be done in CSS alone, but I want to use images and CSS together, rather than images and tables or just CSS alone. THanks for the ALA link, though, I'll look and see what I can find in there.

[J]ona

fredmv
01-02-2004, 05:09 PM
Oops. I completely missed where you said that. Sorry about that. :p

But still, as I said before, the browser support just isn't there. Only Mozilla supports what you want to do and I guess images along with CSS will be your only cross-browser solution.

Jona
01-02-2004, 05:11 PM
Yep. That article works all right. It's going to be more work than I want to do, lol, but it will suffice. Thanks a million! :)

*Goes off ranting about how he hates the fact that there isn't some kind of background-top-right, background-topleft, etc. properties in CSS.* :D

[J]ona

David Harrison
01-02-2004, 05:14 PM
Originally posted by Jona "What?! Jona is asking a question!?That's exactly what I was thinking.

Originally posted by Jona But yeah, the greatest minds always have questions.That's not quite what I was thinking. :D

Anyway, take a look at my newest development (http://www.fsg-uk.com/), on the side-bars I have used rounded corners. I have acheived this effect by simply using background images (CSS rollovers :D) and no border. (IE always messes up borders anyway, probably because it wouldn't know what a box model was if one hit it in the face.)

There is one image I have used though, purely because I couldn't get it to work otherwise (in any browser). That's at the bottom of the left hand side-bar. I suppose you could just replace the image with a div and have the image in there, but I didn't.

Has this helped any? I hope so.

fredmv
01-02-2004, 05:15 PM
You're quite welcome. As for your rant, I think background-position (http://www.w3.org/TR/REC-CSS1#background-position) is what you're looking for. ;)

Jona
01-02-2004, 05:18 PM
Originally posted by fredmv
You're quite welcome. As for your rant, I think background-position (http://www.w3.org/TR/REC-CSS1#background-position) is what you're looking for. ;)

That... doesn't... work... :p

Lavalamp, you're using like just one image, though. I'm trying to make them expand like I want and everything. I think this ALA article will do nicely... I'm hoping it will. :p

[J]ona

David Harrison
01-02-2004, 05:21 PM
What do you mean "expand like you want"? I'm not sure that I know what you want anymore.

Jona
01-02-2004, 05:23 PM
I skimmed through the ALA article (see fred's link), and looked at their ending example--font sizes aren't going to be a big issue with their method. :)

Thanks for your help, though!

[J]ona

David Harrison
01-02-2004, 05:30 PM
Oh I see what you wanted now, different images for each corner. I took a look at their example, pretty snazzy design even if it is a demonstration.

Maybe I should pay more attention to ALA, it looks like they have a pretty good site going.

Jona
01-02-2004, 06:10 PM
Just so all you crazy people know, I got it to work. :D

I'm actually just making a kind of "site" for the fun of it, lol. I came across this and wanted to know how to do it. I am so bookmarking that ALA article. ;)

I'll post here when the test-version of the site is up and running. Thanks again, guys!

[J]ona

Jona
01-02-2004, 06:39 PM
Okay! I put it online for all of you who were soooo eager to see my masterfull "I put together in just five hours" site! :D

http://www.cmm.jedihost.net/tfk/ is the URL. Clickie, it's pwetty! ;)

Err... enough ranting. Happy hunting, guys!

BTW, spread the word... Photoshop RULLZ!

[J]ona

pyro
01-02-2004, 06:45 PM
Originally posted by lavalamp
Maybe I should pay more attention to ALA...Definitly.

Jona, this might also help you (or others) out: http://forums.webdeveloper.com/showthread.php?s=&threadid=15922#post88367

Jona
01-02-2004, 06:50 PM
Originally posted by pyro
]Jone, this might also help you (or others) out: http://forums.webdeveloper.com/showthread.php?s=&threadid=15922#post88367

Thanks for the link! But um... Jone!? :eek:

Okay, I really know that was a typo. I can get over it. I can, honest!

:p
[J]ona

pyro
01-02-2004, 06:53 PM
Cripes, sorry dude... :rolleyes: Edited back to normal...

Jona
01-02-2004, 06:56 PM
lol. It's okay. Whatcha' think of my... err... "site"? :p

[J]ona

pyro
01-02-2004, 07:02 PM
It's a little bit more simple, with colors a little more bold, than I link to go... :)

Jona
01-02-2004, 07:04 PM
Crud! I just looked at the thing in IE... Not good, the navigation doesn't show up. Grr...

And, I didn't get that reply, pyro. Sorry.

[J]ona

Jona
01-02-2004, 07:40 PM
I figured out what the problem was and everything. So I put the menu on the other side. Tell me whatcha' think, iffin' ya beez wantin' to. :D

Well anyway, I'm out for tonight. Peeshie out, guys! Have a good one. :)

[J]ona

Paul Jr
01-02-2004, 08:04 PM
In Moz FB 0.7, when you first roll over the "Home" link, all the links drop down a line.

Jona
01-02-2004, 09:12 PM
Paul Jr, do you know what would cause this problem?

[J]ona

Paul Jr
01-02-2004, 10:02 PM
Originally posted by Jona
Paul Jr, do you know what would cause this problem?

[J]ona
Hmmm, at a quick glance, I don't see anything... :(. But my knowledge on such things is a bit limited ;).

Jona
01-02-2004, 10:08 PM
Hmm, it happens in IE as well.

[J]ona