• 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

HTML layout problem

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In our webapplication, we have used the HTML tables for the layouts and used CSS styles. Currently we don't have the HTML DOCTYPE declaration. Now we want atleast loose.dtd HTML DOCTYPE declaration. When I use this declaration, all layouts in the application get disturbed..i.e. look and feel is very bad and the layout is very zig-zag. I think the problem could be with CSS properties like width and padding. If it is so, it is very tedious job to handle in entire web application. Any easy way? I heard that this problem can be called as "Defective Box Model".

Please tell me how to resolve this problem.

Thanks in advance,
Prasad
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Prasad,


If you use a valid doc-type, Internet Explorer will use a different "box model" than if you don't use one of doc-type.

In a correct box-model, the "width" of a box does not include padding and borders, the incorrect box-model can give very different results.

Have a look at: http://css.maxdesign.com.au/listamatic/about-boxmodel.htm

Herman
 
Prasad Babu
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Herman,

Thank you very much for your kind reply. It was more helpful to understand the problem. But I dont have any clue to resolve my problem as it is very huge to modify the styles in entire web application.

Thank you,
Prasad.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At some point you are going to have to do it.

Eric
 
Sheriff
Posts: 67746
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
"Prasad",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic