Topics

programming

php drupal scheme scheming macros design patterns da la

design

design css

random thoughts

scribbles

alter ego

other me 'em that link us my space me linked in

Collections

Programmable web
PHP design patterns

In search for a flexible, space efficient layout

Submitted by vlado on Tue, 2005-11-08 11:03.css | javasccript | webdesign

Space efficient web page layout is an often desired, but rarely achieved design goal. The problem comes from one of the main side effects of the web technology - you never know how big is the screen of the viewer. Some "solutions" you might encounter are

  • old-school "best viewed at XxZ resolution"
  • fixed width layouts, centered on page - a lot of blogs use that
  • fixed width layouts, left or right aligned - have a look at the bbc website
  • using the "defect" as a design feature

You can find a lot of good examples for all of the above at the csszengarden.

So why am I writing this? Because I have to put black on white a few of the ideas I have, which I might implement, or somebody else might jump on board and do that before me. Or it might already be out there in the wild and I just don't know it.

The end goal is using the browser real estate efficiently, so that there is no unnessesary unused space, while keeping the design tidy, meaning preserving the proportions between the different design elements.

One technique to achieve it would be using floats. A problem with that is that we can't be sure of the floats height, especially in dynamic, as in server generated/serverd content. We need to allow for differences. Floats are of a value with static or rarely changed content, where we can afford paying attention to restyling. It is an approach hard or impossible to maintain.

Another approach would be to use javascript altered layouts. What do I mean by that? Consider the scenario: a website, a good well designed xhtml structure, css based layout. Everything displays well. We want it to display better, or more efficiently. Our only feasible chance to investigate the different client sizes is client-side, javascript.

We should be able to build a set of design, or restyling rules, which onload are applied to optimise the client layout according to the design goals.

The main yardsticks which should be met, paramount in a modern context (IMHO):

  • unobtrusive - the code should be out of the way, so that
  • graceful degradation of the design in the absence of javascript
  • standards compliant
read more | vlado's blog | add new comment

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <br /> <br> <div> <a> <em> <strong> <cite> <pre> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <img> <blockquote> <q> <strike> <small> <h4> <h5> <h6>
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • Lines and paragraphs break automatically.
More information about formatting options
Home ยป In search for a flexible, space efficient layout

dikini.net

spreading confusion by accident since 1970