Rounded rectange for BG of certain items in an HTML table

This is a discussion on "Rounded rectange for BG of certain items in an HTML table" within the Web Page Design section. This forum, and the thread "Rounded rectange for BG of certain items in an HTML table are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 11th, 2008, 19:48
New Member
Join Date: Apr 2007
Location: Ohio
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rounded rectange for BG of certain items in an HTML table

Hi all. I'm using CSS to format the vast majority of a client's site. A few of their pages have actual HTML tables in them with data (comparison charts for temperature grades to be precise). I was hoping that someone could help me format them so that they don't just look like lousy tables. What I'd like is for each cell to have a rounded rectangle background for the text to rest on top of. Here is an example. I was hoping to do it with a simple
Code: Select all
td {
}
selector, but I'm not sure if it's possible. I have seen tables and charts like this before, so I assumed there was a way. Anyone? Thanks!
Reply With Quote

  #2 (permalink)  
Old Feb 11th, 2008, 20:01
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

http://webdesign.about.com/od/css/a/aa072406.htm
http://www.spiffycorners.com/
http://kalsey.com/2003/07/rounded_corners_in_css/
http://www.html.it/articoli/nifty/index.html
http://www.sitepoint.com/article/css...s-boxes-curves
http://www.fireandknowledge.org/arch...images-part-1/

Just did a quick google search and found these, not had chance to have a look so don't no how good they are

Hope they help

Craig
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #3 (permalink)  
Old Feb 11th, 2008, 20:02
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Edit:

a quick search on google

http://www.google.co.uk/search?q=rou...ient=firefox-a

can sometimes be useful in looking for answers
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #4 (permalink)  
Old Feb 11th, 2008, 21:08
New Member
Join Date: Apr 2007
Location: Ohio
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Thanks for the reply, I appreciate it. I too tried the google search before posting and got the same results. The reason I posted is because those methods explained how to manually make individual divs that you could later put content in. I currently have several HTML tables with data in them that I was hoping to edit to make their backgrounds have rounded corners, instead of creating and sizing new divs one by one that are specifically tailored for each table cell's dimensions. What I am looking for would be this, but with it's corners round, instead of sharp. Sorry if I am being redundant, I just assumed there was a way to do this with CSS without recreating each and every single table cell. Thanks again, look forward to hearing more input.
Reply With Quote
  #5 (permalink)  
Old Feb 11th, 2008, 21:15
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Couldn't you just use

Code: Select all
#td {
}
and then include the information to change the corners?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #6 (permalink)  
Old Feb 11th, 2008, 21:19
New Member
Join Date: Apr 2007
Location: Ohio
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Quote:
Originally Posted by unitedcraig View Post
Couldn't you just use

Code: Select all
#td {
}
and then include the information to change the corners?
I'm not sure, that's what I was hoping. Does anyone know the syntax for that? I'm sure it's something simple that I can't seem to dig up.
Reply With Quote
  #7 (permalink)  
Old Feb 11th, 2008, 21:22
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Would you not be able to include the information on
http://webdesign.about.com/od/css/a/aa072406.htm

and place this in a css as they have done, what's wrong with doing that?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #8 (permalink)  
Old Feb 11th, 2008, 21:37
New Member
Join Date: Apr 2007
Location: Ohio
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

this method is a little too advanced for me to properly apply it to my table cells. i've only been working with css for about a week now and that lady has me scratching my head. thanks anyways. <sniffle>
Reply With Quote
  #9 (permalink)  
Old Feb 11th, 2008, 21:38
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

do you have a link to your site?

If not send me your page and i'll see what i can do
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #10 (permalink)  
Old Feb 11th, 2008, 21:50
New Member
Join Date: Apr 2007
Location: Ohio
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Really? Thanks, I really appreciate it. Here's the link. I warn you that my code is quite likely redundant, messy, and all around silly...so any touch up suggestions are welcome. Thanks again.
Reply With Quote
  #11 (permalink)  
Old Feb 11th, 2008, 21:52
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

I'll take a look at it for you, watch this space
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #12 (permalink)  
Old Feb 11th, 2008, 23:40
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Here are the files, read the comments in the code and post if theres anything you don't understand.

Hope this helps

Craig
Attached Files
File Type: css content_text.css (2.0 KB, 1 views)
File Type: htm mat_tpe_perf.htm (12.6 KB, 1 views)
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #13 (permalink)  
Old Feb 11th, 2008, 23:41
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rounded rectange for BG of certain items in an HTML table

Also, make sure that the files are in the same directory/folder when viewing, other wise the CSS will not link to it

Craig
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounded corner css html generator Graisbeck Graphics and 3D 1 Jan 8th, 2008 16:28
[SOLVED] Putting CSS with an HTML Table. mcdanielnc89 Web Page Design 6 Nov 2nd, 2007 05:13
.swf file as HTML table background bubberz Flash & Multimedia Forum 9 Jun 18th, 2007 21:45
Need help in clone html table bryanpung JavaScript Forum 1 Jun 15th, 2007 14:12
html table design help antony Web Page Design 6 Mar 12th, 2007 16:32


All times are GMT. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43