This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Css Rounded Borders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Css Rounded Borders" Watch "Css Rounded Borders" New topic
Author

Css Rounded Borders

madoori Kumar
Greenhorn

Joined: Jun 11, 2009
Posts: 5
Can i create a background with rounded corners without using an image ( by writing pure css). Is it possible ? if yes can you give a small code snippet.


Thanks,
Madoori
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2229
    
    7

of course i did that with some of my projects. The css code I used was:

Then in my jsp page I used a for loop to


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60739
    
  65

K. Tsang, please do not post JSP in an HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
madoori Kumar
Greenhorn

Joined: Jun 11, 2009
Posts: 5
Thanks Tsang, i'll use the above snippet in my project.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Css Rounded Borders
 
Similar Threads
Rounded corner Tables
Putting borders around images
from rectangular shape to ellipse shape with jquery
Show default text in PasswordTextBox.
rounded textbox & buttons