+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: Rounded Corners Box With Css

  1. #1
    Administrator GumSlone has disabled reputation GumSlone's Avatar
    Join Date
    Mar 2005
    Posts
    1,083
    Thanks
    40
    Thanked 133 Times in 60 Posts
    Blog Entries
    2
    Rep Power
    10

    Default

    Here is an example how to create rouded boxes with css.

    css:
    Code:
    .r1, .r2, .r3, .r4, .r5 { display: block; height: 1px; overflow: hidden; font-size:1px;}
    .r5 { margin: 0 5px; background-color: #D0CBB8; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r4 { margin: 0 4px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r3 { margin: 0 3px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r2 { margin: 0 2px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r1 { margin: 0 1px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    #rounded-box { margin:3px 0em; }
    .inner-box { background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    #rounded-box .inner-box { padding: 0px 7px;}
    
    usage

    Code:
    <div id='rounded-box'><b class='r5'><b class='r3'><b class='r2'><b class='r1'><b class='r1'> 
    <div class='inner-box'>
    Your content here
    
    </div> <b class='r1'><b class='r1'><b class='r2'><b class='r3'><b class='r5'></div>
    
    coding-talk.com - a place where noobs become professionals

    Advertise your mobile site for FREE with




  2. The Following 7 Users Say Thank You to GumSlone For This Useful Post:

    bhushan (03-04-09), centi (08-04-09), Chins (09-04-09), DjMatrix (03-04-09), riderz (08-04-09), subzero (03-04-09), whiteboy (21-01-10)

  3. #2
    Senior Member REY619
    Join Date
    Sep 2005
    Location
    India
    Posts
    135
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    nice..

  4. #3
    Member reece345
    Join Date
    Dec 2006
    Location
    Manchester
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Im guess the code goes in themes folder.

  5. #4
    Senior Member nclemale36
    Join Date
    May 2007
    Location
    newcastle
    Posts
    435
    Thanks
    6
    Thanked 13 Times in 6 Posts
    Rep Power
    0

    Default

    not everyone uses lava and wapdesire reece . think gums has posted as a general tip .




  6. #5
    Member bhushan bhushan's Avatar
    Join Date
    Oct 2008
    Location
    Navi Mumbai, India
    Posts
    32
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    0

    Default

    COOL... Thanks

  7. #6
    Administrator GumSlone has disabled reputation GumSlone's Avatar
    Join Date
    Mar 2005
    Posts
    1,083
    Thanks
    40
    Thanked 133 Times in 60 Posts
    Blog Entries
    2
    Rep Power
    10

    Default

    Quote Originally Posted by bhushan
    COOL... Thanks
    Next time please use the "thanks" button.....
    coding-talk.com - a place where noobs become professionals

    Advertise your mobile site for FREE with




  8. #7
    Member bhushan bhushan's Avatar
    Join Date
    Oct 2008
    Location
    Navi Mumbai, India
    Posts
    32
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    0

    Default

    ok, from now i will be remembering to use the "thanks" button

  9. #8
    Senior Member quiksilverX
    Join Date
    Apr 2007
    Location
    South-Africa
    Posts
    260
    Thanks
    1
    Thanked 18 Times in 7 Posts
    Blog Entries
    1
    Rep Power
    0

    Default

    Quote Originally Posted by GumSlone
    Here is an example how to create rouded boxes with css.

    css:
    Code:
    .r1, .r2, .r3, .r4, .r5 { display: block; height: 1px; overflow: hidden; font-size:1px;}
    .r5 { margin: 0 5px; background-color: #D0CBB8; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r4 { margin: 0 4px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r3 { margin: 0 3px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r2 { margin: 0 2px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    .r1 { margin: 0 1px; background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    #rounded-box { margin:3px 0em; }
    .inner-box { background-color: #F1F0ED; border-left:1px solid #D0CBB8;border-right:1px solid #D0CBB8;}
    #rounded-box .inner-box { padding: 0px 7px;}
    
    usage

    Code:
    <div id='rounded-box'><b class='r5'><b class='r3'><b class='r2'><b class='r1'><b class='r1'> 
    <div class='inner-box'>
    Your content here
    
    </div> <b class='r1'><b class='r1'><b class='r2'><b class='r3'><b class='r5'></div>
    
    wow gum this really looks awesome on your toplist. Great job man

  10. #9
    ori
    ori is offline
    Senior Member ori is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    australia
    Posts
    464
    Thanks
    0
    Thanked 33 Times in 5 Posts
    Rep Power
    0

    Default

    anyway to do this in a simplified code like 1 tag... 1 id tag and 4 class tags is bit messy

  11. #10
    ori
    ori is offline
    Senior Member ori is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    australia
    Posts
    464
    Thanks
    0
    Thanked 33 Times in 5 Posts
    Rep Power
    0

    Default

    why there 5 class tags lol code i hav seen uses 4 lol


    PHP Code:
    .rtop * {display:block; height:1px; overflow:hidden; background:#<?=$navcolor?>;}
    .r1 {margin:0 5px;}
    .r2 {margin:0 3px;}
    .r3 {margin:0 2px;}
    .r4 {margin:0 1px; height: 2px;}

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Help With Css
    By SpiderWap in forum Coding Forum
    Replies: 3
    Last Post: 28-05-07, 16:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO