Wednesday, April 7, 2010

What's the deal with being absolute?

First of all here's the url to the article that I read

http://www.tyssendesign.com.au/articles/css/absolute-positioning-pitfalls/

It is called "Absolute Positioning Pitfalls" and if you can't tell from the title, it is about why absolute positioning can have its pitfalls. Now this article doesn't say never to use absolute positioning, but just to be careful when you don't know how to do it properly. I think this article was written well. I think it is spot on when providing convincing examples of why and why not to use it. When you position elements absolutely, it like it has no effect on any of the other elements in the page. So when you position a section absolute, that contains text or anything else, then the outcome could drastically change when viewed on a different resolution screen or when the user changes text size to makes things easier to read. The article talks about how Dreamweaver deals with absolute positioning when designed through the "design view." I have experienced this back in high school, when I wasn't to familiar with HTML code. It caused a lot of stress and painful headaches, and sadly I was never able to fix this problem, up until now:) I think that when used correctly, absolute positioning can work wonders when designing your web site. One example is shown on a site that i designed in my first web essentials class. The url is http://claudandvera.ouronlinefamily.org if you wanna see it for yourselves. On the home page, I have created a division that rotates different pictures of my grandparents every 6 seconds. I used absolute position for this because the pictures are all different sizes, and if the rest of the content was effected with each picture change, it would be quite distracting having text and other elements shifting back and forth. With absolute positioning, its like the site doesn't account for the picture div, so as long as I leave enough space for my largest picture to be in, then the rest of the content on the site will not be effected at all. Now I'm not here to say absolute positioning should be used all the time, I actually would say the more flexible your site is, the better it will be, but there are some things that absolute positioning can accomplish that other methods of position just can't do. To conclude my thoughts, I think that this article does a great job of proving one point, while still leaving validating the others. I think it would be wise for a web designer to know how to layout a site both ways, because a little of both will harmonize quite well, resulting in a beautiful looking web site.

No comments:

Post a Comment