View Full Version : Rounded Corners
simonc101
06-15-2006, 10:15 PM
Hi there,
I would like to have rounded corners on the main page border. I have attached an image to explain what I mean. Can anyone help me get there please.
tgreer
06-15-2006, 10:17 PM
There are no rounded corners on your screenshot. HTML doesn't have any element for rounded corners. Newer CSS specifications allow for rounded corners, but few browsers support them. You'd have to use images.
akanevsky
06-15-2006, 10:21 PM
There are no rounded corners on your screenshot. HTML doesn't have any element for rounded corners. Newer CSS specifications allow for rounded corners, but few browsers support them. You'd have to use images.
Rounded corners can be easily done without css and with support for ALL browsers.
However, it would be very difficult to make corners in vBulletin because vBulletin is still table-based.
simonc101
06-15-2006, 10:26 PM
The image was to display where I require them. I only require the left and right corner on the main page border.
I understand I would have to use images but how would i go about it.
akanevsky
06-15-2006, 10:38 PM
Images are not required. You can do it by creating 1px div blocks of varied width. I saw a tutorial somewhere on google, don't have it in my favorites... I'll look it up later. Basically, you just create a couple of <div> rows, "drawing" the border pixel by pixel.
tgreer
06-15-2006, 10:41 PM
True, there are lots of techniques. This is an interesting one:
http://www.albin.net/CSS/RoundedCorners/
However, usually this question is an indicator that the person is new to HTML, so such techniques are probably beyond the skill level.
akanevsky
06-15-2006, 10:46 PM
The techniques that use images are incompatible with most browsers.
The technique that does not use images, however, is, and it is much more interesting in that you can actually draw out a border of almost any shape WITHOUT IMAGES with just pure HTML and a TINY bit of CSS.
tgreer
06-15-2006, 10:55 PM
Browsers have been able to display images since day one! How can a technique which uses an image be incompatible? You simply include the image, extremely straightforward. I would say it's the MOST compatible technique.
For an example, look at Daniweb (http://www.daniweb.com). We simply use an image for all rounded elements.
Like this: http://www.daniweb.com/techtalkforums/dani-images/misc/dani/search_left.gif
akanevsky
06-15-2006, 10:57 PM
If you like in my manuals, you'll see an example of a technique with no images involved.
simonc101
06-15-2006, 11:34 PM
So I can see we can do it 2 ways.
Maybe if you could show me how to do both solutions in Vbulletin then I can try them and let you know my thoughts.
Princeton
06-15-2006, 11:38 PM
Using images is by far the easiest option... (for everyone)
I only need one image and use CSS to place the image within the block element.
akanevsky
06-16-2006, 12:00 AM
Using images is by far the easiest option... (for everyone)
For me, non-image version is easier. But, that's just one of my preferences / conventions :)
IMHO, image version of rounded corners is soooo 20th century. :)
simonc101
06-16-2006, 01:03 AM
So what is the solution to adding rounded corners, what do I need to edit/setup?
xcingix
05-31-2007, 10:42 AM
Using images is by far the easiest option... (for everyone)
I only need one image and use CSS to place the image within the block element.
One image sounds like a good technique. Can you share with us?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.