User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 402,891 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,043 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser: Programming Forums
Views: 3750 | Replies: 16
Reply
Join Date: Mar 2006
Posts: 25
Reputation: sinjix_media is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
sinjix_media's Avatar
sinjix_media sinjix_media is offline Offline
Light Poster

Help if our webmasters here at daniweb would be so kind

  #1  
Nov 17th, 2006
i would love to learn about what methods were used to create the rounded corners for your tables here @ daniweb.
i run a vbulletin message board and i've done some searches on vbulletin.org and .com for rounded corners and there were many methods to choose from.... also many methods that were debated.

i would also love to know what method you use here to display your welcome header. i understand there is a mod @ vbulletin.org called welcome headers, but i was wondering if that was the one u used here.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: if our webmasters here at daniweb would be so kind

  #2  
Nov 18th, 2006
several ways to do that:
1. use tables and images to do that
2. use css and images
3. use javascript(most reliable and most probably used at daniweb to)
4. CSS3(which is not yet supported by browsers)

for a javascript snippet
http://www.html.it/articoli/nifty/index.html
Last edited by vishesh : Nov 18th, 2006 at 4:39 am.
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 109
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: if our webmasters here at daniweb would be so kind

  #3  
Nov 23rd, 2006
We use the CSS method because I was having a problem getting the JavaScript method to be as cross-compatible among browsers and platforms as I would have liked.

All hacks are custom so nothing off of vB.org
Reply With Quote  
Join Date: Mar 2006
Posts: 25
Reputation: sinjix_media is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
sinjix_media's Avatar
sinjix_media sinjix_media is offline Offline
Light Poster

Re: if our webmasters here at daniweb would be so kind

  #4  
Nov 23rd, 2006
Originally Posted by cscgal View Post
We use the CSS method because I was having a problem getting the JavaScript method to be as cross-compatible among browsers and platforms as I would have liked.

All hacks are custom so nothing off of vB.org

so u just do the old fashioned 4 images in a table CSS thing?
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: if our webmasters here at daniweb would be so kind

  #5  
Nov 23rd, 2006
Originally Posted by sinjix_media View Post
so u just do the old fashioned 4 images in a table CSS thing?
it's not old fashioned, i suppose. css is even needed when you use javascript. also several people still use that old method.
Reply With Quote  
Join Date: Mar 2006
Posts: 25
Reputation: sinjix_media is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
sinjix_media's Avatar
sinjix_media sinjix_media is offline Offline
Light Poster

Re: if our webmasters here at daniweb would be so kind

  #6  
May 20th, 2007
I STILL haven't figured out a good way for doing this.
Reply With Quote  
Join Date: May 2007
Posts: 14
Reputation: Spaiz is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Spaiz Spaiz is offline Offline
Newbie Poster

Help Re: if our webmasters here at daniweb would be so kind

  #7  
May 23rd, 2007
There's another way to do it, pure css.

Try this:
  1. <html>
  2. <head>
  3. <title>Round Corners</title>
  4. <style>
  5. *{margin:0}
  6. body{font:105% arial;text-align:center;padding-top:4em}
  7. h1{color:white;text-align:center;padding:10px 0 10px 0}
  8. .sm_box{margin:0 auto;width:50%}
  9. .sm_box .a,.sm_box .b,.sm_box .c,.sm_box .d{height:1px}
  10. .sm_box .a,.sm_box .b,.sm_box .c,.sm_box .d,.sm_box .content{background:#7fdcff;overflow:hidden;border:0 solid #7fdcff;border-width:0 1px}
  11. .sm_box .a{margin:0 5px;background:#7fdcff;border:0}
  12. .sm_box .b{margin:0 3px;border-width:0 2px}
  13. .sm_box .c{margin:0 2px}
  14. .sm_box .d{height:2px;margin:0 1px}
  15. .sm_box .content{padding:0}
  16. </style>
  17. </head>
  18. <body>
  19. <div class=sm_box>
  20. <div class=a></div><div class=b></div><div class=c></div><div class=d></div>
  21. <div class=content>
  22. <h1>Round<br>Corners</h1>
  23. </div>
  24. <div class=d></div><div class=c></div><div class=b></div><div class=a></div>
  25. </div>
  26. </body>
  27. </html>

The idea is to create 4 lines each is 1px high, and each line is shorter than the other one by 1 or 2 px:

 
    -----------
  ---------------
 -----------------
-------------------
       content...
-------------------
 -----------------
  ---------------
    -----------

and that makes the round corner effect.


p.s. daniweb corners are made with jquery (i think so)
Reply With Quote  
Join Date: Mar 2006
Posts: 25
Reputation: sinjix_media is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
sinjix_media's Avatar
sinjix_media sinjix_media is offline Offline
Light Poster

Re: if our webmasters here at daniweb would be so kind

  #8  
May 23rd, 2007
Originally Posted by Spaiz View Post
There's another way to do it, pure css.

Try this:
  1. <html>
  2. <head>
  3. <title>Round Corners</title>
  4. <style>
  5. *{margin:0}
  6. body{font:105% arial;text-align:center;padding-top:4em}
  7. h1{color:white;text-align:center;padding:10px 0 10px 0}
  8. .sm_box{margin:0 auto;width:50%}
  9. .sm_box .a,.sm_box .b,.sm_box .c,.sm_box .d{height:1px}
  10. .sm_box .a,.sm_box .b,.sm_box .c,.sm_box .d,.sm_box .content{background:#7fdcff;overflow:hidden;border:0 solid #7fdcff;border-width:0 1px}
  11. .sm_box .a{margin:0 5px;background:#7fdcff;border:0}
  12. .sm_box .b{margin:0 3px;border-width:0 2px}
  13. .sm_box .c{margin:0 2px}
  14. .sm_box .d{height:2px;margin:0 1px}
  15. .sm_box .content{padding:0}
  16. </style>
  17. </head>
  18. <body>
  19. <div class=sm_box>
  20. <div class=a></div><div class=b></div><div class=c></div><div class=d></div>
  21. <div class=content>
  22. <h1>Round<br>Corners</h1>
  23. </div>
  24. <div class=d></div><div class=c></div><div class=b></div><div class=a></div>
  25. </div>
  26. </body>
  27. </html>

The idea is to create 4 lines each is 1px high, and each line is shorter than the other one by 1 or 2 px:

 
    -----------
  ---------------
 -----------------
-------------------
       content...
-------------------
 -----------------
  ---------------
    -----------

and that makes the round corner effect.


p.s. daniweb corners are made with jquery (i think so)

WOW! That is AMAZING! Is that totally cross browser compatible!?
You are a god-send bro!
Listen, I have these classes I want to modify to be the same as they are shown below, but with rounded corners. Can you change one for me as an example?

.tcat
{
background: #869BBF url(../../images/gradients/gradient_tcat.gif) repeat-x top left;
color: #FFFFFF;
font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.tcat a:link, .tcat_alink
{
color: #ffffff;
text-decoration: none;
}
.tcat a:visited, .tcat_avisited
{
color: #ffffff;
text-decoration: none;
}
.tcat a:hover, .tcat a:active, .tcat_ahover
{
color: #FFFF66;
text-decoration: underline;
}
.thead
{
background: #5C7099 url(../../images/gradients/gradient_thead.gif) repeat-x top left;
color: #FFFFFF;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.thead a:link, .thead_alink
{
color: #FFFFFF;
}
.thead a:visited, .thead_avisited
{
color: #FFFFFF;
}
.thead a:hover, .thead a:active, .thead_ahover
{
color: #FFFF00;
}
Reply With Quote  
Join Date: Mar 2006
Posts: 25
Reputation: sinjix_media is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
sinjix_media's Avatar
sinjix_media sinjix_media is offline Offline
Light Poster

Re: if our webmasters here at daniweb would be so kind

  #9  
May 23rd, 2007
Oh yeah, and is it possible to have a border on it as well?
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 109
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: if our webmasters here at daniweb would be so kind

  #10  
May 23rd, 2007
DaniWeb corners use JQuery to dynamically insert multiple divs at the top and bottom of the div that needs to be rounded using the same technique as Spaiz illustrated.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Site Layout and Usability Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Site Layout and Usability Forum

All times are GMT -4. The time now is 2:53 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC