File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Controlling Page Layout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Controlling Page Layout" Watch "Controlling Page Layout" New topic
Author

Controlling Page Layout

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1476
    
    1
I am really having a hard time trying to control the layout of my web page. I have used tables within tables to get some control but still not as good as I would like. The width of the tables within the tables seem to have their own mind which I cannot control.

I have little experiance with CSS. Can this be used to control placement of objects on the page?

Also if I have two tables on the page can I control one of them with one CSS and the other table with another CSS?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

Originally posted by Steve Dyke:
I am really having a hard time trying to control the layout of my web page. I have used tables within tables to get some control but still not as good as I would like.
Except for the display of tabular data, tables have been pretty much abandoned as a page layout mechanism. CSS is better suited to the task. (Usually. Given IE's rather weak CSS implementation, sometimes, tables still rule the roost -- but that's only in exceptional situations.)

I have little experiance with CSS. Can this be used to control placement of objects on the page?
That's one of the primary purposes of CSS.

Also if I have two tables on the page can I control one of them with one CSS and the other table with another CSS?
Another CSS? That doesn't make much sense. That's like saying "another HTML". CSS is a technology, not a "thing".

If you meant to ask if styles can be separated into separate style sheet files, then yes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Controlling Page Layout