css3 - Questions regarding CSS <div> tags vs. HTML table -


many have cautioned not use html tables construct html page layout, i'm struggling design work right css , tags.

here's example in tables want , how simple was:

editor's note: code example required jsfiddle.net/y2rlm0t6/1/ 

and now:

editor's note: code example required: jsfiddle.net/hyp8re6h/ 

i have 3 questions:

  1. should create new div inside other div "lay-main" properties such max-width px , make centerd inside "lay-main"? resolve problems i'm having image being stretched across screen?

  2. my header i'm calling lay-top. should same thing here, menu start bottom-left 800px that's centered , not centerd entire page now.

  3. how go making height of "lay-main" take remaining space after lay-top/lay-bottom have taken space. attempts tried height 100% resulted in adding *px bottom , making page scroll no reason. read strange fixes such setting -*px margins bottom layer etc.

    also, im asking myself why continue using css layouts this. more browser compatible? slower, faster code? why? right feel add css styles wanted table layout complete want easy.

i put text in code last resort because nothing else has worked me.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -