473,614 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Round corner borders Using Div?


Hi everyone,
How to make a round corner dorders using div? with
images or without images. Pls help me!
--
harish
------------------------------------------------------------------------
harish's Profile: http://www.highdots.com/forums/m11
View this thread: http://www.highdots.com/forums/t174579

May 11 '06 #1
10 3729
Deciding to do something for the good of humanity, harish
<ha***********@ no-mx.forums.yourd omain.com.au> declared in
comp.infosystem s.www.authoring.stylesheets:
How to make a round corner dorders using div? with
images or without images. Pls help me!


http://www.albin.net/CSS/roundedCorners/

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
May 11 '06 #2
On Thu, 11 May 2006 15:07:53 +1000 Mark Parnell <we*******@clar kecomputers.com .au> wrote:
| Deciding to do something for the good of humanity, harish
| <ha***********@ no-mx.forums.yourd omain.com.au> declared in
| comp.infosystem s.www.authoring.stylesheets:
|
|> How to make a round corner dorders using div? with
|> images or without images. Pls help me!
|
| http://www.albin.net/CSS/roundedCorners/

So how can one make rounded corners WITH border decorations that also show
up along the sides? The simplest is a border that is a different color than
either the outside background or the inside background. I have more complex
examples but they don't work in IE (only tested Firefox, results from IE
were reported by others).

http://phil.ipal.org/usenet/ciwas/2006-05-11/rcb1.html

Note the increasing radius of the rounded corners toward the bottom boxes.
If the images fail to load, the boxes end up keeping their initial square
borders.

Here's some examples I did a few years ago using only GIF image files and
HTML tables (and a lot of them). Beware: View->Source may be hazardous to
your vision.

http://phil.ipal.org/usenet/ciwas/2006-05-11/rbox.html

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 11 '06 #3
This isn't the answer you want... but the way I make rounded borders
is to put

border-radius: 0.5em;

in my CSS definition, and then wait for CSS3 to get supported. I
can wait.

To me, the current methods of making rounded borders are hacks, and
I'm not particularly interested in those. So I use beveled borders,
or insets, or ridges, or others that CSS2 currently offers.

-A
May 11 '06 #4
On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.n et> wrote:
| This isn't the answer you want... but the way I make rounded borders
| is to put
|
| border-radius: 0.5em;
|
| in my CSS definition, and then wait for CSS3 to get supported. I
| can wait.

Are you waiting for it to be supported in FF or IE?
| To me, the current methods of making rounded borders are hacks, and
| I'm not particularly interested in those. So I use beveled borders,
| or insets, or ridges, or others that CSS2 currently offers.

I use the hacks. I look forward to when "the right way" gets widely
supported. But unless IE dies off, that may be a long long time.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 12 '06 #5
In article <e4*********@ne ws2.newsguy.com >, <ph************ **@ipal.net> wrote:
On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.n et> wrote:
| border-radius: 0.5em;
|
| in my CSS definition, and then wait for CSS3 to get supported. I
| can wait.

Are you waiting for it to be supported in FF or IE?
Anything, really. While I wouldn't mind having rounded corner boxes
on my pages, it's not so important that I want to spend a lot of
time figuring out how to do it, when I have more pressing matters to
attend to (like how to make a useful drop-down menu from a tab bar).
Hacking rounded borders into my pages is on my list of things to do,
but it's way down on the low-priority end. So I use border-radius
and I expect someday I'll discover that FF supports it.
I use the hacks. I look forward to when "the right way" gets widely
supported. But unless IE dies off, that may be a long long time.


IE7, from what I have read, is a drastic improvement but still not
perfect.

-A
May 12 '06 #6
In message <e4*********@ne ws2.newsguy.com >, ph************* *@ipal.net
writes
On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.n et> wrote:
| This isn't the answer you want... but the way I make rounded borders
| is to put
|
| border-radius: 0.5em;
|
| in my CSS definition, and then wait for CSS3 to get supported. I
| can wait. Are you waiting for it to be supported in FF or IE?


Firefox already does, in its own way. There a nice example of it at:

<http://smhill.net/resources/css/rounded_corners/>

Visitors with other browsers will get standard 90 degree corners.
--
Martin Jay
May 12 '06 #7
In article <9m************ **@spam-free.org.uk>,
Martin Jay <ma****@spam-free.org.uk> wrote:
In message <e4*********@ne ws2.newsguy.com >, ph************* *@ipal.net
writes
On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.n et> wrote:
| This isn't the answer you want... but the way I make rounded borders
| is to put
|
| border-radius: 0.5em;
|
| in my CSS definition, and then wait for CSS3 to get supported. I
| can wait.

Are you waiting for it to be supported in FF or IE?


Firefox already does, in its own way. There a nice example of it at:

<http://smhill.net/resources/css/rounded_corners/>


I wonder why "in its own way" was necessary. Why didn't the FF
authors just support the CSS3 border-radius instead of inventing
some new and browser-specific attribute called "-moz-border-radius"?

-A
May 12 '06 #8
On Fri, 12 May 2006, axlq wrote:
I wonder why "in its own way" was necessary. Why didn't the FF
authors just support the CSS3 border-radius instead of inventing
some new and browser-specific attribute called "-moz-border-radius"?


Bit of history for you. MSIE3 implemented some CSS(1) when it was
still in draft. And misbehaved royally when the actual specification
came out, and some of us started to code to it. Misbehaved so badly
that we had to find ways of hiding the CSS from that thing.

CSS3 is still in draft. Various developers are getting practice with
implementing the drafts, without falling into the trap of presenting
them as if they were standard CSS. This is *good* - don't knock it.

The CSS specification is very clear about how to handle undefined
properties. We can happily code -moz-whatever and -opera-whatever and
-konq-whatever... to call out whatever their developers care to
implement experimentally. Other browsers are required to calmly
ignore what they don't understand. When CSS3 is final, they can
introduce the new standard property names, and phase out the
experimental ones, with a decent overlap, causing a minimum of
disruption.
May 12 '06 #9
On Fri, 12 May 2006 16:03:26 +0100 Martin Jay <ma****@spam-free.org.uk> wrote:
| In message <e4*********@ne ws2.newsguy.com >, ph************* *@ipal.net
| writes
|>On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.n et> wrote:
|>| This isn't the answer you want... but the way I make rounded borders
|>| is to put
|>|
|>| border-radius: 0.5em;
|>|
|>| in my CSS definition, and then wait for CSS3 to get supported. I
|>| can wait.
|
|>Are you waiting for it to be supported in FF or IE?
|
| Firefox already does, in its own way. There a nice example of it at:
|
| <http://smhill.net/resources/css/rounded_corners/>
|
| Visitors with other browsers will get standard 90 degree corners.

It could be better, but it doesn't seem to be too bad. I'd like some
anti-aliasing in it. I'd also like a little more in the way of border
striping.

I threw these together to explore it. The first uses round corners just
for background coloring. The second combines round corners with a drop
shadow effect where the shadow is rounded, too.

http://phil.ipal.org/usenet/ciwas/20...corners-1.html
http://phil.ipal.org/usenet/ciwas/20...corners-2.html

For those with browsers that can't render it, you can see these PNGs:

http://phil.ipal.org/usenet/ciwas/20...-corners-1.png
http://phil.ipal.org/usenet/ciwas/20...corners-2a.png
http://phil.ipal.org/usenet/ciwas/20...corners-2b.png

The "2b" image is with the pointer hovering over the box.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 12 '06 #10

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

Similar topics

3
6183
by: Markus | last post by:
hi, i am new to the xsl-fo-pdf-stuff... i want to create a pdf document with apache-fop. in this document i do have a border around two blocks. my designer want to have round corners for the border. is there any easy way to do this? and the second question: the two blocks have to overlap each other, so the borders will overlap too. thanxs in advance
5
33323
by: reneeccwest | last post by:
is there any way I can make the 4 end of table with round corner without using any images? <table border=1> <tr><td>I wanna be a round table</td></tr> </table>
1
2747
by: Marek Mänd | last post by:
When one uses CSS such like as -moz-border-radius:5px; border:1px solid black; background:red; round corner is built in Mozilla: |FFFF |wFFF
3
14446
by: Kerberos | last post by:
I haven't found in my CSS book how to create a gradient to fill a division tag, and to create a border with round corners. Is it possible using either CSS or JavaScript? I'd like to create a menu bar with a gradient in the background, and I want the top corners to be a little round with a 5px radius. Thanks, -- Kerberos.
2
3945
by: R0bert Neville | last post by:
I have been working a rounded content box approach. The layout rendered beautifully in Firefox, yet IE threw a wrench into my layout. The approach has to be re-thought and aligned for compatibility with IE. The HTML and CSS code validates on the server. The situation may relate to the Box Model Hack, but I have little familiarity with the various workarounds and hack techniques. My questions relate to improving my current approach and...
1
14678
by: Ryan Wade | last post by:
How would I create a panel with a round corner? A sample would be great. Thanks Ryan
10
4801
by: Steel | last post by:
Hi at all, I'ld like to know what is the best CSS crossbrowser mean to round the angles of <DIV> without images. Regards and thank you very much in advance Steel
2
1791
by: ruud.hermans | last post by:
Hi all, I'm having some issue displaying a "corner image" in FireFox. I'd like to have a rounded left-top and right-bottom corner on my website. In IE, my code seems to work just fine, but FF puts image I use for the right-bottom almost at the top of the page. The website address is http://www.hermansict.nl/test/.
7
5129
by: Freelancer Deepak | last post by:
How can i implemented round corner table in an html page
0
8198
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8142
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8591
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8294
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8444
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6093
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5549
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4138
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1438
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.