• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

table cells not aligning

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi yall,
I have an interesting problem. I have a html file with some example data, what i am aiming for is a table that has two td cells. Each cell will have another table. I want both of the two tables to be shown as the same height, even in one may have less rows than the other (its rows should 'stretch' vertically so the tables line up evenly.
Here is the html :



This code provides the desired results. Here is my problem though! I have some styles I need for some items in my html that when added, 'break' this effect I am seeing. Here is the altered HTML that DOESN'T work :


I am kind of lost on why this is breaking, I got the styles from a graphics person who was changing the look-and-feel of the web app.

Thanks if this is something obvious to someone!!!
Kim
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By having the DOCTYPE declaration, the page gets 'broken'.
[ October 15, 2007: Message edited by: Dan Drillich ]
 
Sheriff
Posts: 67749
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Adding a DOCTYPE doesn't "break" anything; it switches the browser out of quirks mode into standards mode. The way various CSS rules are applied will be different, but neither one can be considered "broken".
[ October 15, 2007: Message edited by: Bear Bibeault ]
 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, thank you so much. I removed that line and viola! Fixed.
Now just have to go ask the graphic guy why he put it there in the first place . . .

Thanks Again!!!
 
Bear Bibeault
Sheriff
Posts: 67749
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably to fix other issues which could be re-introduced by removing the DOCTYPE. It really depends upon what conventions are set up for your app. Some shops like to use all quirks mode pages, and some standards-mode pages. You really ought to settle as a group on which one to use and make sure all pages render correctly. Simply adding or removing the DOCTYPE willy-nilly is guaranteed to be a recipe for disaster.
 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dang, I liked 'willy-nilly' but alas you were right. My removing that line broke other things on the page.

This is a tricky situation because we have three differant people working on the same jsp, oy!

Looks like time for me to start reading up on xhtml . . .

Thanks again for all the help.
 
Bear Bibeault
Sheriff
Posts: 67749
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
quirksmode.org is a good resource.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic