vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Rounded Corners (https://vborg.vbsupport.ru/showthread.php?t=118709)

simonc101 06-15-2006 10:15 PM

Rounded Corners
 
1 Attachment(s)
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

Quote:

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. We simply use an image for all rounded elements.

Like this: http://www.daniweb.com/techtalkforum...earch_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

Quote:

Originally Posted by Princeton
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

Quote:

Originally Posted by Princeton (Post 1008442)
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?


All times are GMT. The time now is 06:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01086 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete