Brandon Blatcher wrote:

> I'm at bit of a loss when it comes to building a website. I've mocked up
> a layout in an old program called Layout Master and the layout seems to
> work fine in most browsers. However, the layout uses absolute
> positioning and z-indexes to achieve the layout. Is this wrong and if so
> why?
>
> Also, are there current, basically agreed upon standards for building
> websites, i.e. how to spec fonts (%,em or pts?), or what positioning
> system to use? Or is it more of a wild west, whatever works for that
> particular project idea?

Hi Barndon

Firstly I will state that regardless of what position or layout you use (the 
wild west approach is ok) what is agreed upon in most quarters is user 
accessibility. This can range from catering for a user with a physical 
disability needing a keyboard accessible site or who use a screen reader. A 
physical impairment, like needing particular colors or contrast or easy to read 
legible font. Be aware of how a webpage is different when view with different 
screen resolutions, variation in browsers.

So having font sizes in % or ems is good, but don't have the unit em on the 
body or you will trigger the IE font size bug. So considering that some users 
will just tear your site apart with text resizing or ignoring authors font size 
altogether, beware of using absolute positioning. Resize the text in any 
browser for this page and notice how the text expands out of the boxes.

http://portfolio.themaninblue.com/news/

With z-indexing, the issue that you will face is the differences between how 
the browsers layer the boxes if you use relative positioning to generate 
containing blocks. A test showing these differences can be found here. View the 
test in both Internet Explorer (IE) as well as Firefox (FF) and spot the many 
differences in layering. Also follow the links at the bottom of the page.

http://css-class.com/test/z-index.htm

Just keep practicing and researching and you will see clearer in the long run. 
Good luck.

Kind Regards, Alan http://css-class.com/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to