treehouse : what would you like to learn today?
Web Design Web Development iOS Development

brandon

  • Active state on a menu item

    By active, do you mean that the user has navigated to the page represented by the menu item? What framework are you working in?
    Comment by brandon January 2009 permalink
  • width:expression(document.body.clientWidth < 782? "780px" ?

    It's called a CSS expression. Google can give you a better explanation, but in short it's a way to assign the result of a Javascript expression to a CSS attribute, rather than a static value. EDIT: if you need a literal explanation of th…
    Comment by brandon October 2008 permalink
  • Dynamic CSS Switching using Javascript...

    Give this a read http://alistapart.com/stories/alternate/
    Comment by brandon October 2008 permalink
  • CHRIS can you explain

    I know I'm not Chris, but here goes. The input tag is an inline element. Most HTML elements can be divided into block and inline elements (list is another type IIRC). Block level elements (like div, p, h1, h2, h3...) typically have an intrin…
    Comment by brandon October 2008 permalink
  • how many CSS files?

    Personally, I love using SASS (http://haml.hamptoncatlin.com/docs/rdoc ... /Sass.html) While it's a little tougher to use outside of the Rails framework, it makes a cinch of writing CSS. Furthermore HAML is a true gem (no pun intended) when it …
    Comment by brandon October 2008 permalink
  • IE / FF positioning ?

    Your markup could use a little help. You have many places where you don't close your tags. Browsers typically don't complain about this but it makes diagnosing problems a little more difficult when the code isn't easy to read. You …
    Comment by brandon September 2008 permalink
  • Multiple Header Colors

    same concept #page1 .header { color: blue; background: url(/path/to/your/image) } In order to leave your markup the same, have some CSS that relates to each custom page
    Comment by brandon September 2008 permalink
  • Which comes first - cart or horse?

    I always write the markup first, and leave it pretty much style-less. Once I'm happy with it, I move on to CSS. It can be a large headache trying to style your page well (in addition to making it cross-browser compliant) if you don't hav…
    Comment by brandon September 2008 permalink