> How do I force (using CSS) the second box to have the same height as the
> first box so that the borders line up?

First thing I can recommend is being careful of falling into the trap of 
'divitis': 

http://www.tyssendesign.com.au/articles/faqs/what-is-divitis/

Second, you can benefit from some inheritence here. Two identical divs 
right next to each other are screaming for a semantic parent class to 
define their scope. 

> (This is obviously just a trivial example of what I am trying to do.
> With tables this would be easy, of-course.)

Remember this golden rule: 

If it looks good in a spreadsheet, then it should use tables. 

If you paste whatever data you have in an HTML table into a spreadsheet, 
and it still properly represents the data, then tables are ok to use. 

If, however... you're using tables to lay out your HTML, then tables are 
flat-out wrong (and unmaintainable anyway, not to mention much more code 
and much more fragile than an equivalent amount of css). 

I've done dozens of sites now that "look like tables", but exist as pure, 
clean, non-divitis css. There's plenty of examples out there for you to 
work with if you want to find out how to do it in a browser-independent, 
future-compatible way.


David A. Desrosiers
Linux on Power Developer Program Manager
[EMAIL PROTECTED]

_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to