Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

CSS3 fluid arcs + some text

CSS3 fluid arcs + some text

Problem

Is there a way to make such thing fluid so that it scales along with its parent or, what would it take to achieve it..

enter image description here




    Demo
CSS3+HTML5
Problem courtesy of: ostati

Solution

Every element is subordinated to the #circle-container. You have defined fixed width's and height's in all elements. You could calculate those values as a proportional value to the actual 200px of width and height of the #circle-container, and change it to the percentual result.

Example:

    #circle-container {
        position: relative;
        width: 200px;
        height: 200px;
        border: solid 0px #333;            
    }

    .dimmensions {
        width: 100px;
        height: 100px;
    }

Would turn into:

    #circle-container {
        position: relative;
        width: 200px;
        height: 200px;
        border: solid 0px #333;            
    } 
    .dimmensions {
        width: 50%; //Proportional
        height: 50%;  //Proportional
    }

Then, resizing the #circle-container would resize the entire arc.

Solution courtesy of: LcSalazar

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

CSS3 fluid arcs + some text

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×