MyBB Community Forums

Full Version: Rounded Corners - An Interesting Article
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:Rounded corners are one of the most frequently requested CSS techniques. As with many things in CSS, there are various ways in which this problem can be approached. In this article, I'll look at the pros and cons of some common techniques and introduce a new technique that utilises both CSS and JavaScript.

I like this Bit! Smile

Quote:Before we dive in to the CSS, let's remind ourselves of the old fashioned approach to this problem, which uses layout tables:

<table width="200" cellpadding="0" cellspacing="0"> 
<tr> 
 <td width="15"><img src="tl.gif" alt="" /></td> 
 <td bgcolor="#1b5151"></td> 
 <td width="15"><img src="tr.gif" alt="" /></td> 
</tr> 
<tr bgcolor="#1b5151"> 
 <td> </td> 
 <td>Content goes here</td> 
 <td> </td> 
</tr> 
<tr bgcolor="#1b5151"> 
 <td><img src="bl.gif" alt="" /></td> 
 <td></td> 
 <td><img src="br.gif" alt="" /></td> 
</tr> 
</table>

Quote:A few years ago this would have been an acceptable solution. Today, it's an ugly hack: that's an awful lot of redundant markup for a relatively unimportant visual decoration. In fact, the above code won't even function as intended in documents served using a strict doctype -- small gaps will appear beneath the corner images, caused by the fact that images are inline elements and, hence, leave space beneath the image for the "tails" on letters such as 'y' and 'j'. The solution, as explained by Eric Meyer in Images, Tables and Mysterious Gaps, is to add the following rule to your stylesheet:

The mind boggles! Toungue

http://www.sitepoint.com/article/rounded...javascript
Using javascript for rounded corners is simply unnecessary. If you are looking for an example, I suggest nifty corners. Big Grin Thats the best tut for rounded corners without images. Rounded corners look better as images, so thats what I use.

I use three divs for rounded corners, tables arent needed anymore Toungue.
I wasn't suggesting anything Toungue

Just thought it was an interesting alternative; and besides, if forum themes were to adopt those practices - nothing would get made. Smile
Oh, I know, rereading it does sound like I meant "you" as in YOU, I meant you as in general people :p. And I agree Big Grin
Hehehe!

Never noticed or took it to mean me. Toungue

Brother! have I seen some arguments about the "YOU" and you. Smile

"YOU SAID ME"

"No I didn't, I meant it to be "Anyone"

"THEN SAY ANYONE!" Lol

And so it goes on. Toungue