Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 10-24-2010, 09:16 AM Rounded Corners
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Im having some trouble setting up rounded corners on <div>'s. The problem arises when the outer <div> is rounded and then the inner <div> protudes into the rounded corner area. Do i just apply the same rounded corner radius to the inner <div>?
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
 
Register now for full access!
Old 10-24-2010, 12:21 PM Re: Rounded Corners
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Do i just apply the same rounded corner radius to the inner <div>?
That will work. Do you want the inner div to be rounded? The other solution is to make the inner div dimensions smaller than the outer div. Of course, w/o seeing the code in question, it's hard to say what else may be affecting it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-24-2010, 01:39 PM Re: Rounded Corners
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
You can see the code in use here. Its the header to the menu navigation.
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-24-2010, 05:42 PM Re: Rounded Corners
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Uhh.. better check that link, the full css-reset is being displayed and there is no styling.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-25-2010, 04:25 AM Re: Rounded Corners
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
I can't see a problem with the styling not showing up, which browser are you using?
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-25-2010, 05:22 AM Re: Rounded Corners
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
well, from what I can see in Opera's Dragonfly, it looks like you've got #menu with your rounded corners, then directly inside that you've got .menu-holder.

.menu-holder appears to have a white background in it. Try removing that.
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Old 10-25-2010, 05:29 AM Re: Rounded Corners
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Ive done that and now part of the background is grey and the rounded corners still have a little nick taken out of them.
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-25-2010, 07:59 AM Re: Rounded Corners
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
I commented out this line in your stylesheet:

Code:
#menu .menu-title {
	padding: 5px;
	display: block;
	/* background-color: #F5F5F5; */ <--- this line!
	border-bottom: 1px solid #AAAAAA;
	/* background-color: #F5F5F5;
	border: 1px solid #E3E3E3; */
}
And the problem is gone. Apply the background color to the box with the round corners.
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Old 10-25-2010, 08:32 AM Re: Rounded Corners
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Yeah that works, ive assigned the white background to the #menu-holder-inner, but now that has taken a nick out of the border radius at the bottom.

Last edited by evans123; 10-25-2010 at 08:35 AM..
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-25-2010, 09:53 AM Re: Rounded Corners
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
maybe add a corner radius to the bottom corners of that div?
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Old 10-25-2010, 10:13 AM Re: Rounded Corners
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Ok, should it be the same as the outer or smaller?
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-25-2010, 01:23 PM Re: Rounded Corners
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
It'll have to be slighty smaller, but have a play with some different radiuses and see what looks best. Either that, or separate the menu out, so you have a top half with a grey background, top corners rounded, bottom ones square, and then make the bottom part the opposite, with a white background.
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Old 11-01-2010, 01:52 AM Re: Rounded Corners
Html Web Design's Avatar
Experienced Talker

Posts: 31
Name: WP Themes
Location: Nagpur
Trades: 0
You can use this code for rounded border

Code:
#Example_A {
height: 65px;
width:160px;
-moz-border-radius-bottomright: 50px;
border-bottom-right-radius: 50px;
} #Example_B {
height: 65px;
width:160px;
-moz-border-radius-bottomright: 50px 25px;
border-bottom-right-radius: 50px 25px;
}
 #Example_C {
height: 65px;
width:160px;
-moz-border-radius-bottomright: 25px 50px;
border-bottom-right-radius: 25px 50px;
}
 #Example_D {
height: 5em;
width: 12em;
-moz-border-radius: 1em 4em 1em 4em;
border-radius: 1em 4em 1em 4em;
}
 #Example_E {
height: 65px;
width:160px;
-moz-border-radius: 25px 10px / 10px 25px;
border-radius: 25px 10px / 10px 25px;
}
 #Example_F {
height: 70px;
width: 70px;
-moz-border-radius: 35px;
border-radius: 35px;
}
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Last edited by chrishirst; 11-07-2010 at 05:05 PM..
Html Web Design is offline
Reply With Quote
View Public Profile Visit Html Web Design's homepage!
 
Reply     « Reply to Rounded Corners
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45601 seconds with 12 queries