473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Best way to have 'rounded corners' in a block/section

What is the best way to have a background image stretch and have the 'left
rounded corner' look.

Please see the top header at this website for an example: www.kingtree.ca
and http://www.officeactivate.com What I have works, but fails in
Dreamweaver 2004 validation of CSS. I would like it to be valid CSS.

This is the 'bad' code: (but works in IE6 and FireFox 1.x / Mozilla)

<table width="100%" border="0" cellpadding="0" cellspacing="0"
BACKGROUND="/images/HeaderMid.gif">
<tr>
<td width="17"><img src="/images/HeaderTop.gif" width="17" height="142"
border="0"></td>
<td width="100%" height="100%">&nbsp;</td>
</tr>
</table>

Any advice?
Thanks, Dan.V.
Jul 21 '05 #1
4 3621
Dan V. <d@d.com> wrote:
What is the best way to have a background image stretch and have the 'left
rounded corner' look.

Please see the top header at this website for an example: www.kingtree.ca
and http://www.officeactivate.com What I have works, but fails in
Dreamweaver 2004 validation of CSS. I would like it to be valid CSS.


Have you seen ALA's examples?
http://www.alistapart.com/articles/customcorners/
http://www.alistapart.com/articles/customcorners2/
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Experience is what allows you to recognize a mistake when you make it again."
Jul 21 '05 #2
Dan V. wrote:
What is the best way to have a background image stretch
and have the 'left rounded corner' look.
Please see the top header at this website for an example: www.kingtree.ca


Long as you only want one corner rounded there's a simple solution:

<h1 style="display: block; background-color: green; background-image:
url(whitecorner.png); background-repeat: no-repeat;">Header</h1>

Wolf

Jul 21 '05 #3
This tool will make it for you and even color the corner images. Works
with any solid color page background color.
http://www.neuroticweb.com/recursos/css-rounded-box/

Jul 21 '05 #4

"Wolfgang Meier" <wo***@sofort-mail.de> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Dan V. wrote:
What is the best way to have a background image stretch
and have the 'left rounded corner' look.
Please see the top header at this website for an example: www.kingtree.ca


Long as you only want one corner rounded there's a simple solution:

<h1 style="display: block; background-color: green; background-image:
url(whitecorner.png); background-repeat: no-repeat;">Header</h1>

Wolf


This does sound simple. I guess I would need two background images though.
My background is not a straight colour.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mel | last post by:
how can i have a rounded edge button in my forms using CSS ? thanks Mel
1
by: jimfortune | last post by:
The following Access VBA function creates a string that can be used in a pdf stream to draw or fill a rectangle of a given color with rounded corners: 'Begin code----------- Public Function...
2
by: Konrad | last post by:
Hi This is maybe simple question but how to render DataGrid and Tables with rounded corners? Thanks Konrad
8
by: TheCornjerker | last post by:
I've been looking into what method I should use to show rounded corners (and I've found a lot). My question is why does Google seems to mostly use the table method with an image in each corner. ...
6
by: Schraalhans Keukenmeester | last post by:
I want to achieve the following: A small image in each of the corners of a box, like below: +-------------------------------+ | + | + | + | + | + | +
5
by: Cindy Lee | last post by:
Is there anyway to put rounded corners on the grid views? When I bring it up in the brower I need to have rounded corners. There are some tricks I can do to regular html tables, but is there any...
1
by: kidelectric | last post by:
The issue I am having is that I would like to be able to drag-and-drop div elements that have rounded corners.* Since these elements will be dynamically created (including background color), I could...
4
by: PWS | last post by:
I am despertely trying get a DIV to look like a box with rounded corners. I can find load of examples this where the first line of text has the top graphic and the last line of text has the...
2
by: Terry | last post by:
Hi folks. I was wondering what people here think is the best way to create rounded corners on divs. I am hoping that the implementation is pure css and does not involve the addition of extra...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.