September, 2008

...now browsing by month

 

Styling Nested List Items With CSS

Thursday, September 25th, 2008

Many years ago designers overlooked an important piece of the pie known as efficient web design - the use of lists. As the years progressed, this overlooked portion began to take shape as an art form and started to show the world the power it could harness to make the web a more manageable place.

With that mouthful, let us move on to see how we can use CSS to nest lists!

First and foremost - keep your list CSS in one CSS file

One issue I’ve seen from working with premade layouts is that some have various stylesheets and each have classes and selectors pertaining to the same list items. In reason, it can be assumed that you may want to seperate these stylesheets to operate with different browsers (such as IE6 or IE7 while using the and conditional statements for Internet Explorer 7 and Pre Internet Explorer 7 respectively). However, there really shouldn’t be a big hassle between the browsers in terms of lists. For example:

body {}
ul
{
list-style:square;
}
/*We shall create css to format interior lists, going 3 deep from the root*/
ul li ul,
ul li ul li ul,
ul li ul li ul li ul
{
padding-top:10px;
list-style: url('../images/mapbrack.gif');
}

In our css, we have defined styles for ul selector. From there we have moved on to specify styles for more intense DOM structure, such as nested lists.

The HTML could look like the below example:


<ul>
<li><a href="#"><a href="#">Test</a></a></li>
<li><a href="#">Test 2</a></li>
<li><a href="#">Test Group
<ul>
<li><a href="#">Inner Test 1</a></li>
<li><a href="#">Inner Test 2</a></li>
<li><a href="#"> Inner Test 3
<ul>
<li><a href="#">Inside Inner Test 1
<ul>
<li><a href="#">Last Test 1</a></li>
<li><a href="#">Last Test 2</a></li>
<li><a href="#">Last Test 3</a></li>
</ul>
</a></li>
</ul>
</a></li>
<li><a href="#">Inner Test 4</a></li>
</ul>
</a></li>
<li><a href="#">Test 4</a></li>
<li><a href="#">Test 5</a></li>
</ul>

As you can see we have did quite a number on nested lists. Not only do we have one nested list, but we have created nested lists within nested lists that will gracefully stretch across IE, Firefox, and Safari. The result is that you have optimized your css to limit the amount of code to render and produce the same result. You can look at it as trimming the fat off of the CSS, or you can look at it as just one small step in saving resources.

Shame on you Yahoo.. shame shame shame!

Saturday, September 20th, 2008

http://news.yahoo.com/page/election-2008-political-pulse-obama-race;_ylt=AilsBg.LZYY1gUgZxAZQLFiyFz4D

You know.. I’m really sick of stuff like this steering views away from real issues.

I will post at a later time regarding this article…. but I do want to say I’ve just lost faith in Yahoo’s professionalism and choice for content.

Trip Down Memory Lane

Monday, September 15th, 2008

For those that probably don’t know - I wasn’t always a web developer.  Once I was realllllllllllllllyyyyyy big into pro-wrestling.

Ironically.. that’s how the web design/development thing came along.

Back in the day my friend Travis Alley and I did a lot with the backyard wrestling scene on the internet that was pretty popular form 1997-01.  Running a few sites here and there got my gears going, and eventually down the road after I hurt myself in wrestling (yes, I went professional for awhile, touring the indies) I decided to take the web gig seriously.
For kicks, here is one of the sites Travis and I launched in late 2000 for our backyard fed - MAWA.

http://www.geocities.com/overdose85/index2.html

Boy how design, the internet, and the world has changed since then……..

Chrome Next Window’s Killer? Unlikely!

Monday, September 8th, 2008

Well, it seems the blogosphere is all in heat due to a recent posting on Tech Crunch. What is causing the hissy? It seems Michael Arrington believes Google’s new browser known as Chrome can eventually kill off the Window’s OS -
http://www.techcrunch.com/2008/09/01/meet-chrome-googles-windows-killer/.

On the other hand - Ted Dziuba has posted a rebuttal (along with the lengthy list of comments on the article already posted below the blog) at http://teddziuba.com/2008/09/a-web-os-are-you-dense.html.

Now what is the real fact people are arguing over? With the explosion of Web 2.0, it seems a lot of cliches are being thrown around. Programming is being looked at in a different light. Everyone and their mother are jumping on the ship and putting their name into the game (remember the dot com crash anyone?).

My $0.02
Google is effectively pushing some ideas off the table and to my laptop. I believe that this browser could push the limits of what we believe a browser can do.  However - do remember that browsers are just that - something used for browsing.  An operating system itself is a whole new monster, intricately communicating via the fine line between binary bonds of language and hardware response.  Yes - that’s a very poetic way to put it.  The bottom line my friend is that Google has brought out a browser.  It’s just that.  The game is TOO young at this point to make such an assumption, especially with Windows holding such a high market share and the fact that a lot of computer users are not as computer proficient as most techie wizards believe the average user to be.  At most - Google is going to utilize their resources and attack an open-source market held by Mozilla’s Firefox, or even cut into those that do use Safari.  But attacking an operating system?  That’s a blue screen of an idea….