Archive for April, 2008

April 24

Domain Registrar Transfer

General Site NewsThe header says it all: “I am transfering my domain name.” When I registered the domain name bedrichrios.com several months ago, I was unaware of Yahoo’s domain registrar annoyances. The main one being that you cannot renew an account (domain) manually, instead, Yahoo will do it automatically for you, unless you cancel it of course.  This means that if you have the “crazy” thought of securing your domain name for, say, 3 years in one payment, you cannot do so. I find this very annoying because it affects your Google rank. The search engine giant has been known to dismiss many sites whose domain name are registered for only one year. So, after some looking around and advise gathering, I have decided to transfer my domain name to dyndns.com. I am really excited about the move but at the same time a little nervous. I have heard really bad stories from people trying to move away from Yahoo domains. Hopefully the transaction will go smoothly and I will be back posting about web design and other things soon.

April 22

A “Guide” To Your Web Design Start

Business ManIn the last couple of months I have crossed paths with many individuals who still believe web pages are created using only HTML and table layouts. People who have no knowledge of web standards, accessibility, or the work that goes into creating or designing a website. Furthermore, there are those who, in my opinion, sadly still perceive the web as child-play.

I am not the most experienced web designer, far from it actually, but I have spent countless hours (for the past three years) learning about the web in order not to “hurt it.” That said, it is really hard to find higher education programs or classes about web design, mainly do to its “young” nature. At the same time, a simple Google search will return an overwhelming number of links to tutorials and how-tos. So, what’s good out there? There are many possible answers to that question. The following list is one. It will provide you with what worked for me when I began to take interest in web design. They are not all related to web design per se, but they will give you a brief overview of what your are getting yourself into.

The List, But Not “The List”

  1. Understanding Web Design
    In this article, Jeffrey Zeldman, writes about what it means to be a web designer and what it does not. He talks about why web design is misunderstood and the dangers the misconceptions carry. Furthermore, he gives an answer to the question: what is web design? This is a must read for anyone interested or involved in web design.
  2. The Web Standards Project
    “The Web Standards Project is a grassroots coalition fighting for standards which ensure simple, affordable access to web technologies for all.” In other words, web standards attempt to assure that the exchange and use of information between web based products go “smoothly” regardless of the browser being used.
  3. CSS Beginner Tutorial
    Cascading Style Sheets are a web designer’s best friend. CSS allows you to design the way a web page displays without ever having to mess with the markup (HTML). Follow all the steps on the tutorial and you will be off to a good start.
  4. Learn CSS Positioning in Ten Steps
    Learning how to position markup generated elements on a web page using CSS will be your key to liberating yourself from ever using tables to layout a page. Leave tables for displaying tabular data not entire web pages.
  5. A Guide To Web Typography
    Many times overlooked, typography is one of the most important parts on a website’s design. After all, content is the meat of your site, display it right.

What Next?

I wrote this article with the assumption that you had general knowledge when it comes to HTML and CMSystems. If not, check out these articles: CMS and the Single Web Designer and HTML Beginner Tutorial. In any case, this list is intended to give you a good and solid starting point before you begin designing web pages. It worked for me in the past, I hope it works for you. If you have any questions or comments, please leave your thoughts down below.

April 19

Absolute Positioning Using jQuery

jQuery TutorialUsing coordinates to place an abolutely postioned element on a page may seem like a bit of an overkill when you can just assign the top, bottom, right, and left values in the CSS but believe me is not. I have used this effect in combination with the Text-Resize Detection script published on A List Apart to re-position an element next to another at all times (the project demanded this effect) regardless of window or text resizing. The things you can do with this nifty trick are only limited by your imagination. Look at a demo of the “trick” at work if you wish to see it before reading the tutorial. Enough rumbling, let’s begin.

Gathering Neccesary Information

There are a couple of things we are going to need to know before beginning to write the script and they are:

  • The name (id or class) of the element we are trying to get the coordinates of, which I will call “static_box (id name)” during this tutorial.
  • And, the name (id or class) of the element we are moving around, which I will call “moving_box (id name)” during this tutorial.

Now we can begin recreating what you saw on the demo. First, let’s start by creating the functions we will need in order to position the moving box to either the left or right of the static box. In this step we will write the commands for the main function only. In other words, we will absolutely position the moving box and give it top and left values.

function position_left()
{
	/* code will go here */
}

function position_right()
{
	/* code will go here */
}

function position(x,y)
{
	var moving_box = $("#moving_box");
	moving_box.css("position","absolute");
	moving_box.css("top",y);
	moving_box.css("left",x);
}

Now we need to record the coordinates of the static box and apply them to the moving box. However the actual X and Y coordinates will need to change a bit if we want things to line up correctly. We need to take padding and border into consideration and make them part of our equation. So with a bit of addition and subtraction involved in the equation, our empty functions should look something like this.

function position_left()
{
	var static_box = $("#static_box");
	var moving_box = $("#moving_box");
	var mb_width = moving_box.width();

	var coordinates = static_box.offset()
	var x = coordinates.left - mb_width;
	var y = coordinates.top;
	position(x,y);
}

function position_right()
{
	var static_box = $("#static_box");
	var sb_width = static_box.width() + ["static_box total padding + total border"];
	var coordinates = static_box.offset()

	var x = coordinates.left + sb_width;
	var y = coordinates.top;
	position(x,y);
}

function position(x,y)
{
	var moving_box = $(”#moving_box”);
	moving_box.css(”position”,”absolute”);
	moving_box.css(”top”,y);
	moving_box.css(”left”,x);
}

That is all the code you need to recreate what you saw on the demo. However, you will need to call either function position_right or position_left for things to work. In the case of the demo, the functions are being called by an “onclick” function attached to the link elements.

Download

Please feel free to play around with the code and make any tweaks to it. If you have any questions or something is not working right for you, leave a comment and I will try to answer your question(s).

Download Demo

April 16

New Site Design, Time To Celebrate

Happy PeopleAfter arduous days of CSS coding, cross browser testing, icon resizing, and sleepless nights the new theme for bedrichrios.com is ready. Everything should work fine but please feel free to contact me if you encounter a broken link or a CSS quirk. Also, expect to see some weirdness in the days to come as I will be tweaking the design a bit more. If you are wondering why I decided to redesign the site, well, it has to do with the growth of my blog and the attention is getting thanks to the fact that one my posts is featured on the homepage of csselite.com. In case you haven’t read it yet, make sure to check out the Mootools Style Sidebar Using jQuery post. Because of this post, a lot of ideas have been orbiting my head. The main conclusion, jQuery scripts mean more traffic and love for this site.

jQuery Anyone?

It’s no mystery that I love writing jQuery solutions (well, at least its no mystery to me). As I said before, the blog get the most hits from the posts containing jQuery scripts. Therefore, I have decided to dedicate more time to writing new scripts. Thus, I’m asking that you send me your suggestions for future jQuery scripts to suggestions@bedrichrios.com. This should create a more steady flow of jQuery posts in the future, something that will benefit you and the site equally.

The Future

My hope for this site is to create a more steady flow of posts (twice a week) and traffic. The blog has done surprisingly well to my delight in the past two months and I hope to continue that in the months to come. Also, expect to see some “random” posts from time to time, as I have discovered that sometimes people need a break from web design, development, or whatever that is you may do. The next few months should be very interesting, thanks for visiting the site. Enjoy!