Tips and Tricks

Quick and Easy Div Layouts

Yui • Posted 6:42PM on July 21, 2007 (2 Comments)

My sense is that, for some reason, most people have a tedency to code div layers layouts by using an <img> tag at the begining of the body of the document for the header image, and then using absolute positioning to place the main content area and sidebar(s) in their appropriate locations. This method is flawed in that, in the absence of a stylesheet (as may be the case when viewing the website on an older browser), the header image still shows up, causing the page to look quite ugly (example). This is especially annoying if your header image has a large height. A better solution is to use a div image replacement, as I have done in ain’t afraid to die, featuring Dir en grey. I will use this layout as an example.

(Read more…)

Tags: HTML/CSS, Tips and Tricks

100% Height CSS Layout w/ Footer

Yui • Posted 2:03AM on July 3, 2007 (4 Comments)

I have a tendency to make designs that are meant to stretch from the very top of the bowser window to the very bottom. The problem is that, especially in very large browser resolutions, sometimes there isn’t enough content to force the layout to either completely fill all of the vertical space in the viewport, or to scroll vertically, leaving a margin between the bottom of the layout and the bottom of the browser window. I’ve finally, I believe, solved the problem, and since I haven’t seen anyone else using this method, I decided to make a tutorial. The method is an extension of this example layout and relies on the principles of min-height, absolute/relative positioning, and z-index. This is the method I’ve used to code the current LastSong.net layout (Waste, featuring UnsraW).

(Read more…)

Tags: HTML/CSS, Tips and Tricks

Neogrotesque yui-ness Crazed System Leopard Print