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-01-2010, 09:04 AM CSS3 Border Radius
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
I know how to do simple border radius's in CSS3, but i want to have a border radius instead another border radius with out it looking weird. Its similar to the effect you get when you use the "stroke" tool in photoshop.

Any ideas on how i would set the CSS up to do this?

CSS Code:

Code:
#tabs {
    list-style: none;
    display: block;
    margin-top: 20px;
    font-size: 11px;
}

#tabs li.application_info, #tabs li.application_info a {
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    -webkit-border-radius-topleft: 3px;
    -webkit-border-radius-topright: 3px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

#tabs li.application_info {
    margin: 0 5px 0 0;
    border: 1px solid #1d489f;
    border-bottom: none;
    }
#tabs li.application_info a {
    border: 1px solid #2f6cc1;    
    border-bottom: none;
    background: #FFFFFF;
}
#tabs li
{
    display: block;
    float: left;
    margin: 0 2px -1px 0;
    text-align: center;
}

#tabs li a
{
    display: block;
    padding: 5px 10px 5px 10px;
    background: #ffffff url('../../images/shortcut/bg_shortcut.png') repeat-x center;
    -moz-border-radius-top: 3px;
    -webkit-border-radius-top: 3px;
    border-radius: 5px;
    border: 1px solid #cdcdcd;
    color: #393839;
    text-shadow:0 1px 0 #ffffff;
}
HTML Code:

Code:
            <div id="tab_menu">
            <ul id="tabs">
                <li class="application_info"><span><a href="#">File</a></span></li>
                <li class="current"><span><a href="#">Home</a></span></li>
                <li><a href="#">Insert</a></li>
                <li><a href="#">Page Layout</a></li>
            </ul>
            
            </div>
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
 
Register now for full access!
Old 10-01-2010, 10:27 AM Re: CSS3 Border Radius
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
Quote:
Originally Posted by evans123 View Post
I know how to do simple border radius's in CSS3, but i want to have a border radius instead another border radius with out it looking weird. Its similar to the effect you get when you use the "stroke" tool in photoshop.
not really sure what you mean here. Do you mean you want round corners INSIDE round corners without them looking odd?
__________________

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-02-2010, 03:52 AM Re: CSS3 Border Radius
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Yeah that's what i want.
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-02-2010, 05:05 AM Re: CSS3 Border Radius
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Have you tried border-style: double; ?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-03-2010, 04:26 AM Re: CSS3 Border Radius
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Can you use two colors doing that?
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 10-03-2010, 06:43 AM Re: CSS3 Border Radius
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope.

To get a double border with different colurs requires overlayed elements
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-04-2010, 06:00 AM Re: CSS3 Border Radius
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
at uni we learnt the equation for working out nested round borders. I can't for the life of me remember what it is.

The inside border is obviously going to need to be smaller, have a play around, it also depends on the distance between the two borders.

Try 3px out side 2 inside and go from there.
__________________

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!
 
Reply     « Reply to CSS3 Border Radius
 

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 1.11462 seconds with 12 queries