vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Rounded corners in vB (https://vborg.vbsupport.ru/showthread.php?t=82526)

filburt1 06-05-2005 12:46 AM

Rounded corners in vB
 
I devised a way to add rounded corners to all standard vB tables without modifying the markup or using Javascript, just pure compliant CSS (that IE won't support). I must say, it's damn clever, and no, you won't see the code. A hint, though: you need to use some new CSS3 tricks to pull it off.

Fortunately, I wrote the CSS such that IE won't render the problematic parts at all and it'll just revert to still fine-looking squared corners.

Hmm, I also just realized I could probably do truly good-looking drop shadows, even using alpha-blended PNG images which lame IE doesn't support. Don't tell me about the filter hack to do it, it still doesn't get the color palette right.

AN-net 06-05-2005 03:20 AM

well known mozilla only css:
http://books.mozdev.org/chapters/ch04.html#77028

BamaStangGuy 06-05-2005 06:06 AM

Quote:

Originally Posted by filburt1
I devised a way to add rounded corners to all standard vB tables without modifying the markup or using Javascript, just pure compliant CSS (that IE won't support). I must say, it's damn clever, and no, you won't see the code. A hint, though: you need to use some new CSS3 tricks to pull it off.

Fortunately, I wrote the CSS such that IE won't render the problematic parts at all and it'll just revert to still fine-looking squared corners.

Hmm, I also just realized I could probably do truly good-looking drop shadows, even using alpha-blended PNG images which lame IE doesn't support. Don't tell me about the filter hack to do it, it still doesn't get the color palette right.

You want a pat on the back or something? Why make a post like this and not share the code?

Need the attention?

memobug 06-05-2005 06:32 AM

<a href="http://www.bath.ac.uk/~cs1spw/demos/moz-border-radius.html" target="_blank">http://www.bath.ac.uk/~cs1spw/demos/...er-radius.html</a>

code? view source!

yawn

sabret00the 06-05-2005 09:02 AM

Quote:

Originally Posted by filburt1
I devised a way to add rounded corners to all standard vB tables without modifying the markup or using Javascript, just pure compliant CSS (that IE won't support). I must say, it's damn clever, and no, you won't see the code. A hint, though: you need to use some new CSS3 tricks to pull it off.

Fortunately, I wrote the CSS such that IE won't render the problematic parts at all and it'll just revert to still fine-looking squared corners.

Hmm, I also just realized I could probably do truly good-looking drop shadows, even using alpha-blended PNG images which lame IE doesn't support. Don't tell me about the filter hack to do it, it still doesn't get the color palette right.

screenie atleast?

Revan 06-05-2005 09:11 AM

Quote:

Originally Posted by BrentWilson
You want a pat on the back or something? Why make a post like this and not share the code?

Need the attention?

My thoughts exactly. Gotta love attention +++++s.
Nothing that pisses me off more than people saying "ooh heres something leet [insert long explanation]. PS: My ass you can have it, bugger off." :mad:

Dean C 06-05-2005 10:17 AM

Quote:

Originally Posted by BrentWilson
You want a pat on the back or something? Why make a post like this and not share the code?

Need the attention?

My thoughts too :tired:

filburt1 06-05-2005 02:02 PM

My code doesn't use Mozilla-only extensions, and unlike most other rounded corner CSS snippets out there, mine works in the standard vB table structure it uses everywhere.

I'm not posting the code because people will copy it and use it without having any clue as to how it works, so I'll give hints instead. The first one: look into the first-child and last-child pseudoclasses.

sabret00the 06-05-2005 03:53 PM

Quote:

Originally Posted by filburt1
My code doesn't use Mozilla-only extensions, and unlike most other rounded corner CSS snippets out there, mine works in the standard vB table structure it uses everywhere.

I'm not posting the code because people will copy it and use it without having any clue as to how it works, so I'll give hints instead. The first one: look into the first-child and last-child pseudoclasses.

again, can we atleast see a screenshot before you continue with the hinting game so i can see if i'm interested or not? ;)

ericgtr 06-05-2005 04:17 PM

Quote:

Originally Posted by filburt1
I devised a way to add rounded corners to all standard vB tables without modifying the markup or using Javascript, just pure compliant CSS (that IE won't support). I must say, it's damn clever, and no, you won't see the code. A hint, though: you need to use some new CSS3 tricks to pull it off.

Fortunately, I wrote the CSS such that IE won't render the problematic parts at all and it'll just revert to still fine-looking squared corners.

Hmm, I also just realized I could probably do truly good-looking drop shadows, even using alpha-blended PNG images which lame IE doesn't support. Don't tell me about the filter hack to do it, it still doesn't get the color palette right.

Yeah but, how do you really feel about IE? Don't sugar coat it now ;)


All times are GMT. The time now is 12:21 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.01157 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete