General NOTE: The general forum has been closed to new posts while we evaluate moderator availability.
This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
08-04-2005, 09:32 AM
|
#1
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
XHTML/CSS question: how to draw a curved box for a sidebar
I'm trying to design my Debian help page based on the design of the official www.debian.org site.
Of course, I wanted to make the sidebar with curved edges rather than flat. What is the best way to achieve this using purely CSS design with <div> tags?
Regards.
|
|
|
08-04-2005, 10:51 AM
|
#2
|
Member
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80
Rep:
|
I would also like to know, but i would like to add that it is only curved in gecko based browsers (I think)
|
|
|
08-04-2005, 05:16 PM
|
#3
|
Member
Registered: Oct 2004
Location: USA
Distribution: Vector Linux 5.1 Std., Vector Linux 5.8 Std., Win2k, XP, OS X (10.4 & 10.5)
Posts: 344
Rep:
|
Hari,
I think you have create a gif image to get the curve effect and then use CSS to place the image where you want it on the page. Otherwise you may end up having to code pixel points to acheive the curve effect.
|
|
|
08-04-2005, 07:51 PM
|
#4
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Original Poster
Rep: 
|
Yes, I tried using an image, but it doesn't work out well because images are fixed width and I need the sidebar to be resized according to the browser window width.
Any ideas?
Regards.
|
|
|
08-04-2005, 08:24 PM
|
#5
|
Member
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80
Rep:
|
very bottom of debian.css
Quote:
#leftcol, #navbar, #navbar a, #navbar3, #navbar3 a {
-moz-border-radius: 15px;
/* this goes to the end as the css validator does not like it
will be replaced by border-radius with css3 */
}
|
so this only works in mozilla
i personally cannot wait till CSS3 is in all major browsers,web design will be fun.
|
|
|
08-04-2005, 08:32 PM
|
#6
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Original Poster
Rep: 
|
Yes, thanks a lot. I did somehow feel that that was not an image at all. If it works only with Gecko-based browsers, too bad. I'm going to use it anyway. I don't think too many people with IE will be viewing my Debian site 
|
|
|
All times are GMT -5. The time now is 10:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|