473,385 Members | 1,518 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,385 software developers and data experts.

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 3714
Deciding to do something for the good of humanity, harish
<ha***********@no-mx.forums.yourdomain.com.au> declared in
comp.infosystems.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*******@clarkecomputers.com.au> wrote:
| Deciding to do something for the good of humanity, harish
| <ha***********@no-mx.forums.yourdomain.com.au> declared in
| comp.infosystems.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.net> 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*********@news2.newsguy.com>, <ph**************@ipal.net> wrote:
On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.net> 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*********@news2.newsguy.com>, ph**************@ipal.net
writes
On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.net> 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*********@news2.newsguy.com>, ph**************@ipal.net
writes
On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.net> 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*********@news2.newsguy.com>, ph**************@ipal.net
| writes
|>On Thu, 11 May 2006 21:50:37 +0000 (UTC) axlq <ax**@spamcop.net> 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
In article <Pi*******************************@ppepc20.ph.gla. ac.uk>,
Alan J. Flavell <fl*****@physics.gla.ac.uk> wrote:
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.


I get it. Yes, that makes sense.

-A
May 13 '06 #11

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

Similar topics

3
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...
5
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
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
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...
2
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...
1
by: Ryan Wade | last post by:
How would I create a panel with a round corner? A sample would be great. Thanks Ryan
10
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
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...
7
by: Freelancer Deepak | last post by:
How can i implemented round corner table in an html page
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.