Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Rounded Corners (Image Gradient)
Old 10-23-2007, 05:31 PM Rounded Corners (Image Gradient)
Novice Talker

Posts: 10
Name: Dan
Trades: 0
Hi everyone.

I am currently redesigning my old table based website with a new CSS design.

One problem I am having is creating rounded corners in CSS. I would be able to do this very quickly using tables, but I feel that it is time for me to move on.

I have tried searching everywhere, but I cannot seem to find anything for what I want to do.

Is there any way of creating a box with images having a gradient with rounded corners. This will be used as the header on my site. What I would have done with tables is create an image for each corner, the sides and one for in the middle. How can I do this with CSS?

I have attached an example of what I am looking for.

Thanks Very much,
Dan.
Attached Images
File Type: jpg IMAGE.jpg (38.5 KB, 14 views)
dannol is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-23-2007, 06:51 PM Re: Rounded Corners (Image Gradient)
MrBrownThumb's Avatar
Extreme Talker

Posts: 194
Location: Chicago, IL
Trades: 0
I've been trying to do the same thing in a Blogger template. Here's an article on how to do it I found a while back.

http://www.html.it/articoli/niftycube/index.html
__________________

Please login or register to view this content. Registration is FREE
.
Please login or register to view this content. Registration is FREE
.
Please login or register to view this content. Registration is FREE
.
MrBrownThumb is offline
Reply With Quote
View Public Profile Visit MrBrownThumb's homepage!
 
Old 10-23-2007, 06:57 PM Re: Rounded Corners (Image Gradient)
Novice Talker

Posts: 10
Name: Dan
Trades: 0
Thanks for the link, MrBrownThumb.

The only problem is that I want to use images. I have found many tutorials on how to do it without images and have also found some that tell you how to use them round the outside to create the "rounded" corners, but I have not found anything that tells you how to set an image on the inside of the box.

What I want to do is have an image in the middle, where the text would be written on top and of course the corners rounded.

Any ideas?
dannol is offline
Reply With Quote
View Public Profile
 
Old 10-23-2007, 07:35 PM Re: Rounded Corners (Image Gradient)
Experienced Talker

Posts: 49
Trades: 0
just do it as a background depending on how big the image is, if the image is too big, then the same way that it can be done with tables, it can be done with css only faster
Cyrus is offline
Reply With Quote
View Public Profile
 
Old 10-23-2007, 11:22 PM Re: Rounded Corners (Image Gradient)
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Dan try Spiffy Box. It's a variation of spiffy corners so if you don't like the previous link try searching for 'spiffy corners' and I'm sure you'll find others.

The main problem you're likely encountering is that each html element can only have one background image. The solutions are generally to place each of the four corners on a different element.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 11-03-2007, 08:02 AM Re: Rounded Corners (Image Gradient)
Novice Talker

Posts: 10
Name: Dan
Trades: 0
Thanks everyone for your replies.

Spiffy box works well - cheers!
dannol is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Rounded Corners (Image Gradient)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24442 seconds with 13 queries