View Full Version : Rounded Corners
DarkBlood
July 23rd, 2007, 19:49
Edit: Found a place, http://www.curvycorners.net/
themoose
July 24th, 2007, 05:41
Nifty Corners also works a treat.
Yun
July 24th, 2007, 07:32
http://www.roundedcornr.com/ - I like this more d'oh.
DarkBlood
July 24th, 2007, 18:43
I also hear CSS3 will have support for rounded corners (In Safari, Opera and Firefox at the start probably.)
krakjoe
July 25th, 2007, 04:00
^^where did you read that from ?
DarkBlood
July 25th, 2007, 11:07
^^where did you read that from ?
Numerous people actually. It won't work in IE though until IE8 supports it (IE6/7 will definately not support CSS3 more than likely due to its history with standards (http://en.wikipedia.org/wiki/Internet_Explorer#Standards_support_2).)
Tree
July 25th, 2007, 14:46
Using JavaScript just to get curvy corners? Sounds risky.
DarkBlood
July 25th, 2007, 14:49
Using JavaScript just to get curvy corners? Sounds risky.
I know, that's why I'm going to try and get help fixing this (http://iyeru42.ryan444123.com/scripts/curvyCorners/rounded_corners_lite.inc.js) so that it won't just accept hex values.
Tree
July 25th, 2007, 15:47
What other kind of values do you need to accept?
krakjoe
July 25th, 2007, 15:54
Numerous people actually. It won't work in IE though until IE8 supports it (IE6/7 will definately not support CSS3 more than likely due to its history with standards (http://en.wikipedia.org/wiki/Internet_Explorer#Standards_support_2).)
I thought you mighta seen it on an official "todo" or similar list .....
DarkBlood
July 25th, 2007, 15:57
What other kind of values do you need to accept?
TEXT values. Transparent is a value for bgcolor as well, in CSS2 anyway.
iBrightDev
July 26th, 2007, 13:36
seems nifty, but, i wouldnt make rounded edges that way. i will stick to images.
krakjoe
July 27th, 2007, 04:30
what's "dodgy" about using js to achieve rounded corners ??? I use nifty corners when I need rounded edges and it works a treat .....
Yun
July 27th, 2007, 05:27
what's "dodgy" about using js to achieve rounded corners ??? I use nifty corners when I need rounded edges and it works a treat .....
People who disable JS? :D
krakjoe
July 27th, 2007, 09:32
I see people say that a lot "JS can be disabled", it really doesn't matter, if someone is using a browser that doesn't support javascript then they are not expecting to view the same layouts as everyone else - the only time that "people can disable it" really has any bearing is concerning matters of security, cookies and such .....
Even so, it's not "risky" that some people won't be able to see the fancy corners on the edge of your design .......
iBrightDev
July 27th, 2007, 10:00
People who disable JS? :D
only about 2% of people on the web do that.
i just dont like the idea of using js to achieve something like this personally. i just dont feel it is as stable as and image, but, that is just my opinion. my belief is based on the fact that the js could possibly error or not load properly sometimes. so, like i said, it is just my preference to use images.
DarkBlood
July 27th, 2007, 10:10
I was trying to use jQuery, but it hasn't worked yet. Probably because I'm using it wrongly.
iBrightDev
July 27th, 2007, 12:01
lol, that could do it. ;)
DarkBlood
July 27th, 2007, 12:20
lol, that could do it. ;)
Me and some people at gzevolution were messing around and we got all this stuff below.
// Get the objects
divObj1 = document.getElementById("main");
divObj2 = document.getElementById("news");
// Create Element
newElement = document.createElement("div");
// Append the childs
divObj1.appendChild(newElement);
divObj2.appendChild(newElement);
Gives the error: divObj1 has no properties. I do have the DIVs main and news as IDs. I started to use jQuery, but putting the below code in after working with the plugin gives no errors, but no rounded corners either.
$('div.news').corner("round 8px").parent().css('padding', '4px').corner("round 10px");
Keep in mind, that's from the plugin UCSasuke gave. Where "news" after div. is a class (changed back to class, and it didn't help.) You can see the below HTML Code I'm using too:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Iyeru's Designs - version 2</title>
<link rel="stylesheet" href="main.css" />
<script language="javascript" src="scripts/jquery-1.1.3.1.pack.js"></script>
<script language="javascript" src="scripts/jquery.corner.js"></script>
<script language="javascript" src="main.js"></script>
</head>
<body>
<div id="wrapper">
<div id="header"><div id="header_right"> </div><img src="layout/logo.gif" alt="Iyeru's Designs" style="margin-left:100px;" /></div>
<script language="javascript">dirDepth();</script>
<div id="main">
<div id="news">
<center><strong>News</strong><br /><br />
<script language="javascript">document.write(news);</script>
</center>
</div>
<div class="message">Welcome</div><br /><br />
Welcome to Iyeru's Designs! Here you will be able to read about ULETEMA, a novel compilation by Ian "Iyeru" Carlson. Currently, he plans on writing the actual compilation very soon, so please be patient. The site itself is up and running, and will be the center of attention once everything is put into place. On another note, please check out the ULETEMA Role-Play, <a href="http://iyeru42.ryan444123.com/board/viewtopic.php?f=22&t=43" target="_blank">sign-ups are currently open</a> for anyone wanting to join. If there is enough people, the actual Role Play will begin. The Role Play itself could even have an impact on how the site actually looks and functions!
</div>
<div class="navbar">
<center>Iyeru's Designs is ©2007 Ian "Iyeru" Carlson<br />
ULETEMA is ©1999~Present Ian Arthur Carlson</center>
</div>
<div id="footer"> </div>
</div>
</body>
</html>
Where main.js is:
// JavaScript Document
if(d = null) { d = 0; } // Un-Nullify d
function dirDepth(d) {
switch(d) {
case 0:
l = "./";
break;
case 1:
l = "../";
break;
default:
l = "./";
break;
}
nav = '<div class="navbar"><a href="'+l+'index.htm">HOME</a> • <a href="'+l+'about.htm">ABOUT</a> • <a href="'+l+'gallery.htm">GALLERY</a> • <a href="http://iyeru42.ryan444123.com/board/" target="_blank">BOARD</a> • <a href="http://iyeru42.deviantart.com" target="_blank">dART</a> • <a href="'+l+'flash.htm">FLASH</a> • <a href="'+l+'link.htm">LINK</a></div>';
document.write(nav);
}
news = '.: July.17.2007 :.<br />Updated Layout';
// Get the objects
divObj1 = document.getElementById("main");
divObj2 = document.getElementById("news");
// Create Element
newElement = document.createElement("div");
// Append the childs
divObj1.appendChild(newElement);
divObj2.appendChild(newElement);
$('div.news').corner("round 8px").parent().css('padding', '4px').corner("round 10px");
nickcmp
July 28th, 2007, 18:33
Try Here:
http://css-discuss.incutio.com/?page=RoundedCorners
I knew on the previous default firefox homepage, it used a code something like:
moz-radius
moz-size
to get the rounded corners with CSS.
DarkBlood
July 28th, 2007, 19:00
Try Here:
http://css-discuss.incutio.com/?page=RoundedCorners
I knew on the previous default firefox homepage, it used a code something like:
moz-radius
moz-size
to get the rounded corners with CSS.
moz-radius and moz-size will only work in Mozilla/Firefox, not any other browser. The JS versions will though.
Troy1
August 2nd, 2007, 13:48
what's "dodgy" about using js to achieve rounded corners ??? I use nifty corners when I need rounded edges and it works a treat .....
It seems to me that the internet is mostly moving away from using JavaScript as formatting (just like it's moving away from using tables). I personally would probably use it but there are many diehard CSS-only people out there who don't like it.
Then again, AJAX can't run without JavaScript :)
krakjoe
August 2nd, 2007, 14:14
web2.0 is pretty much made of javascript, people aren't moving away from it that I can see, infact people are closer to it than they ever have been before .....
DarkBlood
August 3rd, 2007, 11:14
It seems to me that the internet is mostly moving away from using JavaScript as formatting (just like it's moving away from using tables). I personally would probably use it but there are many diehard CSS-only people out there who don't like it.
Then again, AJAX can't run without JavaScript :)
PHP's Regex methods are similar to AJAX if you ask me. But are not as immediate as AJAX, no sir.
Tree
August 4th, 2007, 11:58
PHP's Regex methods are similar to AJAX if you ask me. But are not as immediate as AJAX, no sir.
Regular Expressions are standard. They're the same in mostly every language. AJAX is not a language. JavaScript and PHP's regular expression syntax is exactly the same.
DarkBlood
August 4th, 2007, 15:47
Regular Expressions are standard. They're the same in mostly every language. AJAX is not a language. JavaScript and PHP's regular expression syntax is exactly the same.
Still, PHP can't act as fast as AJAX. PHP needs to be sent the data in order for it to work its magic, hence why we use AJAX to post quick replies on vBull (current version.)
Tree
August 4th, 2007, 17:46
Still, PHP can't act as fast as AJAX. PHP needs to be sent the data in order for it to work its magic, hence why we use AJAX to post quick replies on vBull (current version.)
Sir, you know nothing of web programming.
DarkBlood
August 4th, 2007, 19:44
Sir, you know nothing of web programming.
Then please, tell me how it works.
Kwek
August 6th, 2007, 08:47
Can't you somehow achieve rounded corners with images?
I know there'll be a lot of code involved though.
DarkBlood
August 6th, 2007, 13:48
Can't you somehow achieve rounded corners with images?
I know there'll be a lot of code involved though.
I can, but I'm not a fan of the image version.
Keagle
August 6th, 2007, 16:11
Can't you somehow achieve rounded corners with images?
I know there'll be a lot of code involved though.
Not really that much code.
iBrightDev
August 7th, 2007, 01:45
Can't you somehow achieve rounded corners with images?
I know there'll be a lot of code involved though.
not a lot of code at all. it is really quite simple
go here, and just click the submit button to get the error, and then you can view the source to see how it is constructed.
http://www.azbizfilings.com/admin
themoose
August 8th, 2007, 06:51
Then please, tell me how it works.
Essentially you tell the ajax to tell the PHP (in the backgronud) to work it's magic, instead of just telling the php directly by posting to a new page - ie loading another.
If we all had superfast internets then ajax would not make anything quicker. But we don't, so it does.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.