• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[CSS] How to create rounded / curved boxes
#1

How to create rounded / curved boxes

This is a quick tutorial on how to make rounded or curved boxes on your MyBB forum.

This method can be used on a variety of sections, as it is here on mcompute, including but not limited to:
  • #panel
  • .thead
  • .tcat
  • .trow1
  • .trow2

All of the above templates can be found in your global.css style sheet in your admin control panel.

To get to your global.css file, go to:
  • ACP
  • Templates & Styles
  • *your theme*
  • global.css

From inside here, look up what section you want to change and add these two lines of code into the css.

[code=css]-moz-border-radius: 6px;
-webkit-border-radius: 6px;[/code]

So, an end result would be similar to this:

[code=css].tcat {
background: #555555;
color: #FFFFFF;
font-size: 12px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
}[/code]


Here's an example of it in action on mcompute, all of the arrowed images have this css applied.

[spoiler][Image: rounded_corners.png][/spoiler]


*Please note! Because IE sucks the boxes will not appear curved, this only works in proper web browsers such as Firefox and chrome. I also think Safari.

  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to create a Virtual Directory (folder dir) in IIS Mark 0 9,655 06-10-2012, 09:48 PM
Last Post: Mark
  How to create and implement an iframe Mark 0 5,923 08-11-2010, 12:13 AM
Last Post: Mark

Forum Jump: