1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

html question/css

Discussion in 'BBS Hangout' started by what, Sep 1, 2012.

  1. what

    what Member

    Joined:
    Dec 4, 2003
    Messages:
    14,621
    Likes Received:
    2,593
    I am totally confused by something. I am brand new when it comes to customizing a style sheet. My confusion lies in where you should drop your code into your css file.

    If I, for example, want to add functions to my css file, does it matter in terms of "clean code, seo" if I tack the code onto the end of the sheet, or do I need to go by the template legend and find the right area of the sheet to add my code.

    My main concern is to understand what makes a css style sheet bloated and ineffective, my inclination is that, because I am so knew to html that I'd plug in far too much code than I actually need and there would be a "trick" or a simple (more elegant) way to go about it.
     
  2. tamericus

    tamericus Member

    Joined:
    Oct 30, 2008
    Messages:
    3,247
    Likes Received:
    894
    I used this crash course and it helped me immensely.

    http://www.codecademy.com/tracks/web

    CSS basically just separates the style from the coding. It also uses parent and child relationships, allowing you to organize your styles a lot easier. I think you will catch on pretty quick if you have any previous experience in programming. I would suggest learning the basics and looking at different website's CSS files, following through them to see what exactly is going on.
     
  3. madmonkey37

    madmonkey37 Member

    Joined:
    Jun 20, 2003
    Messages:
    2,499
    Likes Received:
    52
    In general, css rules at the end of style sheets override those that come before, although there could be specificity issues that prevent successful overriding.
     
  4. rawool

    rawool Member

    Joined:
    Mar 28, 2006
    Messages:
    2,686
    Likes Received:
    273
    As long as you don't have multiples of the same selectors and class/id names, it shouldn't matter where it's located in your CSS file. Although, you do want to keep it organized incase you need to changes.

    I usually organize my CSS by sections: html/body (global), header, footer, main, sidebar, and so on.
     
  5. what

    what Member

    Joined:
    Dec 4, 2003
    Messages:
    14,621
    Likes Received:
    2,593
    can i ask you a question? my template from the joomla shack promotes that its Impacto3 joomla template has bootstrap functionality. From what I've gathered, bootstrap is part of twitter. look here: http://demotemplates.joomlashack.com/impacto/

    Does this mean that they built bootstrap into the template, and how do I get to the icons and so on for customization?

    btw, I do understand a little bit about kickstart.php if that makes a difference. In other words, if I need to install bootstrap to my site I probably cood.
     
  6. rawool

    rawool Member

    Joined:
    Mar 28, 2006
    Messages:
    2,686
    Likes Received:
    273
    I'm assuming it is built in. Looking at the documentation (Basic Options), there are some default settings for bootstrap.

    Here is how to use the icons, http://twitter.github.com/bootstrap/base-css.html, along with some other features.

    I'm not that familiar with Joomla or bootstrap, but hope that helps, haha.
     

Share This Page

  • About ClutchFans

    Since 1996, ClutchFans has been loud and proud covering the Houston Rockets, helping set an industry standard for team fan sites. The forums have been a home for Houston sports fans as well as basketball fanatics around the globe.

  • Support ClutchFans!

    If you find that ClutchFans is a valuable resource for you, please consider becoming a Supporting Member. Supporting Members can upload photos and attachments directly to their posts, customize their user title and more. Gold Supporters see zero ads!


    Upgrade Now