Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How clean is this CSS code?

    Just wondering, how clean is the code found here: http://www.piratebay.us/hoodia/hoodiatemplate.html

    Compared to the most efficient way to use CSS.

    This is one of the first things I've coded so I'm just wondering how I can improve.

    Thanks!

  • #2
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Great start!
    You have some unnecesary things though, like
    Code:
    <div class="menubar">
    	
    <div class="menubartext">
    		
    		Products | About Us | Contact Us	
    		
    </div>
    		
    </div>
    . You should only need one. And also a tip: instead of using "|" for seperating, you should really use borders so it looks something like
    Code:
    Products <span style="border-left:1px #fff solid; border-right:1px #fff solid;">About Us</span> Contact Us
    Someone with more time than me will help you more I'm sure


  •  

    Posting Permissions

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