Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

CSS has its own quirks, couple that with browser's own quirks; and it might get hard.

However, here are a few pointers for people who are new to CSS, struggling to get CSS positioning:

http://www.alistapart.com/authors/s/nstokes

Another very important issue is that of "containing floats", http://complexspiral.com/publications/containing-floats/ , th that the height of a container is not expanded to fill its contents is logical from a publisher pov.

Where does one start the next paragraph if a paragraph has a long image on the right? It doesn't start when the image ends, the next paragraph starts when the text in the previous paragraph ends.

Still, though, CSS positioning is hard, and that's why people are using grid frameworks, like 960.gs.

One other major issue is CSS is that all browsers have an internal stylesheet, and those sheets are slightly different, hence people make use of CSS resets or normalizers that default properties to common values.

As a sidenote: To see how one can use CSS to build quality documents, look at PrinceXML: http://www.princexml.com/samples/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: