LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2006, 11:40 AM   #1
Spudley
Member
 
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32
CSS (stylesheet) question


Hello everyone,

I'm creating a web site, and I'm trying to get it looking good using CSS.

One of the newer CSS properties is "border-radius", which allows you to put nuce rounded corners on your boxes. This isn't supported by many browsers yet (Firefox supports it as "-moz-border-radius"), but I wanted to use it, as the rounded edges aren't really that important, but would be nice to give FF users a little bit of extra eye candy.


So I've got both "border-radius" and "-moz-border-radius" in my stylesheet, set to 5px, and it works great, in browsers that support it.

However, when I add a background image to the same element, I find that it ignores the rounded edges, and draw the background right up to the corners of the box, which looks awful. This doesn't happen if the background is a colour rather than an image.


So my question is: Is this a Firefox bug, or is there another style I need to apply to stop it doing this?

Many thanks in advance to anyone who can answer this.
 
Old 01-11-2006, 10:21 PM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
Can you make the background image have a border radius also? If you could you could make it with the same parameters as your "box" and then it would match up. Just an idea
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Question iammisc Programming 2 12-19-2005 12:44 PM
XHTML/CSS question: how to draw a curved box for a sidebar vharishankar General 5 08-04-2005 08:32 PM
CSS question PensJunkie Linux - General 2 07-22-2005 05:07 AM
Using stylesheet on Apache-server? @ngelot Linux - Software 8 10-26-2004 08:53 AM
css question tekmorph Programming 10 09-04-2004 09:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration