• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Tables going bye -bye: Use DIVS/Span??

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, so Tables are going bye bye and appearntly, from what I read, they take more for browsers to render them anyway. So I assume using DIVs and SPANs are the way to go (DHTML/CSS).

Does anyone have any advice/links/resources on moving from tables to layers (DIV/SPAN)? I have been trying to convert a couple of simple pages that have tables to div and span but with some parts of it I am not having much luck. I think with some documentation it would be easier.

Thanks.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The rule of thumb is tables for data, divs for layout.

div is a block element and a span is an inline element.

what is the basic layout of the page so I can help you with resources?

header/footer/3column etc.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


That is basically for my login screen. The big area on the left is for an image. The first row in column 2 is for a header. Second row colum 2 is label, 2nd row colum 3 text. Same for row 3 and then row 4 is for my submit button.

I thought a visual would help.

Well, it lines up correctly in the edit window. But when I submit the post, it's not lined up right.

Ok, looks right now. :roll:

Also, I thought posting my HTML Table might help too:


[ October 04, 2004: Message edited by: Gregg Bolinger ]
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is rather easy to do

what you need to look into is float:left with spans

http://css.maxdesign.com.au/floatutorial/introduction.htm

Eric
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some great stuff on that site, Eric -- thanks for the link!
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic