Activity Stream
48,167 MEMBERS
6957 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1.     
    #1
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com

    Default [TUT] Image-less Round borders

    This very small tut shows how to create round borders without using images or tables or CSS3.

    Firstly let me explain why image-less borders are better.
    For a start, it means you do not have to download the images. It may be 4 or even up to 8 images being downloaded. Depending on the ability of the coder, it could be a sprite, but again, a http request needs to be made, and a (sometimes) large sprite needs to be downloaded.

    So this example, an image-less rounded border uses text only, resulting in zero extra http requests and inevitably faster page-loading.

    Ok. So the CSS:

    There are 2 ways we can do this. One with an outer border-color, and one without.

    CSS with border:
    Code: 
    <style type="text/css">
    
    .b1f, .b2f, .b3f, .b4f{
        font-size:1px; 
        overflow:hidden; 
        display:block;
        }
    
    .b1f {
        height:1px; 
        background:#888; 
        margin:0 5px;
        }
    
    .b2f {
        height:1px; 
        background:#ddd; 
        border-right:2px solid #888; 
        border-left:2px solid #888; 
        margin:0 3px;
        }
    
    .b3f {
        height:1px; 
        background:#ddd; 
        border-right:1px solid #888; 
        border-left:1px solid #888; 
        margin:0 2px;
        }
    
    .b4f {
        height:2px; 
        background:#ddd; 
        border-right:1px solid #888; 
        border-left:1px solid #888; 
        margin:0 1px;
        }
        
    .contentf {
        background: #ddd; 
        border-right:1px solid #888; 
        border-left:1px solid #888;
        }
        
    .contentf div {
        margin-left: 5px;
        }
        
    </style>
    CSS without border:
    Code: 
    <style type="text/css">
    
    .b1f, .b2f, .b3f, .b4f{
        font-size:1px; 
        overflow:hidden; 
        display:block;
        }
    
    .b1f {
        height:1px; 
        background:#ddd; 
        margin:0 5px;
        }
    
    .b2f {
        height:1px; 
        background:#ddd; 
        margin:0 3px;
        }
    
    .b3f {
        height:1px; 
        background:#ddd; 
        margin:0 2px;
        }
    
    .b4f {
        height:2px; 
        background:#ddd; 
        margin:0 1px;
        }
    
    .contentf {
        background: #ddd;
        }
    
    .contentf div {
        margin-left: 5px;
        }
    
    </style>

    The Main CODE:
    Code: 
    <b class="b1f"></b><b class="b2f"></b><b class="b3f"></b><b class="b4f"></b>
        <div class="contentf">
            <div>
            KWWHunction ftw.<br />
            Content Goes Here<br />
            </div>
        </div>
    <b class="b4f"></b><b class="b3f"></b><b class="b2f"></b><b class="b1f"></b>
    And here are the results, depending on which CSS you decided to use:

    Border:



    No-Border:



    The "rounded boxes" can be re-used time and time again in the same code simply by using the main code again and again
    jayfella Reviewed by jayfella on . [TUT] Image-less Round borders This very small tut shows how to create round borders without using images or tables or CSS3. Firstly let me explain why image-less borders are better. For a start, it means you do not have to download the images. It may be 4 or even up to 8 images being downloaded. Depending on the ability of the coder, it could be a sprite, but again, a http request needs to be made, and a (sometimes) large sprite needs to be downloaded. So this example, an image-less rounded border uses text only, Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    seekingw.com uwddl.com generalgamers.co.uk motivatedgamerz.com
    Thanks for this jay.

  4.     
    #3
    Member
    Nice!

    Does this work in IE?

    I have a method of doing this, but it won't work in IE Lol.


    Ps - FIX YOUR SITE lol.

  5.     
    #4
    Retired NinJa
    Website's:
    loledhard.com
    I accept it, I love ur knowledge mate.



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  6.     
    #5
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    Quote Originally Posted by Sandin0 View Post
    Nice!

    Does this work in IE?

    I have a method of doing this, but it won't work in IE Lol.


    Ps - FIX YOUR SITE lol.

    Yep, it works in every single browser going

  7.     
    #6
    Member
    thanks jayfella

  8.     
    #7
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    nice tutorial and this will work ion all browsers but for a simpler solution on web-kit and firefox - this is chrome,ffx,safari and alot of other browsers you can do the following


    Code: 
    .round{
    -moz-border-radius-topleft:2px;
    -webkit-border-top-left-radius:2px;
    -moz-border-radius-topright:2px;
    -webkit-border-top-right-radius:2px;
    -moz-border-radius-bottomleft:2px;
    -webkit-border-bottom-left-radius:2px;
    -moz-border-radius-bottomright:2px;
    -webkit-border-bottom-right-radius:2px;
    }
    Code: 
    <div class="round">Litewarez</div>
    this will produce the same effect for most browsers apart from IE!
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  9.     
    #8
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    yeah ^^ . wish it worked on IE. would make things so much simpler for us.

  10.     
    #9
    Member
    Quote Originally Posted by litewarez View Post
    nice tutorial and this will work ion all browsers but for a simpler solution on web-kit and firefox - this is chrome,ffx,safari and alot of other browsers you can do the following


    Code: 
    .round{
    -moz-border-radius-topleft:2px;
    -webkit-border-top-left-radius:2px;
    -moz-border-radius-topright:2px;
    -webkit-border-top-right-radius:2px;
    -moz-border-radius-bottomleft:2px;
    -webkit-border-bottom-left-radius:2px;
    -moz-border-radius-bottomright:2px;
    -webkit-border-bottom-right-radius:2px;
    }
    Code: 
    <div class="round">Litewarez</div>
    this will produce the same effect for most browsers apart from IE!
    yep.
    that's what i use

  11.     
    #10
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    Thanks Lite !
    I really your posts

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to thicken the blog post and gadget borders
    By Breaking Bad in forum Technical Help Desk Support
    Replies: 0
    Last Post: 15th Dec 2011, 01:27 PM
  2. Borders
    By gmaister22 in forum vBulletin
    Replies: 3
    Last Post: 17th Aug 2011, 08:29 PM
  3. Website with rounded borders.
    By -Im.z2ight- in forum General Discussion
    Replies: 2
    Last Post: 4th May 2011, 10:05 AM
  4. Best all round script ?
    By ThaGoon in forum Webmaster Discussion
    Replies: 0
    Last Post: 11th Mar 2011, 10:44 PM
  5. round robin dns service
    By priviet02 in forum General Discussion
    Replies: 2
    Last Post: 26th Jan 2011, 12:11 PM

Tags for this Thread

BE SOCIAL