A better way to organize your CSS/HTML
It’s tough being a genius. It really is. Here’s my new guidelines for CSS/HTML:
- All tags are divs
- Use standard html tags as class/id names whenever possible
So, with our new awesomeness, we might get something like this:
1: <div class="body">
2:
3: <div class="h1">My Title</div>
4: <div id="p">This is my awesome <div id="span">stuff</div></div>
5:
6: </div>
Pretty freaking slick, eh? I’m hoping it can be integrated into Kobe soon!
3:32 PM
|
Labels:
Evil Rob
|
This entry was posted on 3:32 PM
and is filed under
Evil Rob
.
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
Subscribe to:
Post Comments (Atom)
5 comments:
That makes an amazing amount of sense. Can I nominate you for the CSS/XHTML standards committee?
Yes. Yes you may.
Wow...
I guess it makes sense. All tags are, anyways, are just designating what the elements should look like, or behave as.
Can I suggest that you try to make a DIV anchor A tag? Do some fun OnClick event or something to open new sites...
Thanks for the feedback! I think we can really tune this up to be something special.
We can do like <div class="link" linkDest="http://www.live.com">The One True Search</div>, then some jQuery like:
$(".link").click(function(){
var $url = $(this).attr("linkDest");
window.open($url);
});
That's really f'ing badass now, I love using new tech to it's fullest!
Post a Comment