doctorChuckles
Programmer
This is partly an attempt to better understand a helpful suggestion made by vragabond in a previous thread.
Lets say I want to place formatted text, including some links, and a few small images, in a rectangle in a certain area of a page. I might want to give the rectangle a border of a certain width or color. I might want to give the rectangle a subtle background image or color.
In addition, let's say I want to place narrow colored or textured rectangles at the right, and possibly top and bottom, for design purposes, and a rectangle containing navigation links at the left.
It seems there are several ways to do this. I can apparently put all my formatted text, links and images, in a DIV area, and I can apparently set the height, width and position of the DIV area with CSS. The other rectangles can be table cells, or possibly GIFs. I suppose they might even be other DIV areas.
Alternately, I could set up a table. A large table cell in the center could contain my formatted text, links and a few small pictures. Adjacent table cells to the left, right, top and bottom can contain links, for navigation, colors, images, and so on.
There might be other ways...
I want to use CSS and HTML, and avoid javascript, because I want to maintain the site myself and I don't know javascript well enough.
Vragabond's previous message seemed to suggest that it's better to use DIVs rather than tables, but I'm not sure I understood that correctly. Reality check please? Are DIVs better?
If so... why are DIVs better?
Thanks a bunch.
Tim
Lets say I want to place formatted text, including some links, and a few small images, in a rectangle in a certain area of a page. I might want to give the rectangle a border of a certain width or color. I might want to give the rectangle a subtle background image or color.
In addition, let's say I want to place narrow colored or textured rectangles at the right, and possibly top and bottom, for design purposes, and a rectangle containing navigation links at the left.
It seems there are several ways to do this. I can apparently put all my formatted text, links and images, in a DIV area, and I can apparently set the height, width and position of the DIV area with CSS. The other rectangles can be table cells, or possibly GIFs. I suppose they might even be other DIV areas.
Alternately, I could set up a table. A large table cell in the center could contain my formatted text, links and a few small pictures. Adjacent table cells to the left, right, top and bottom can contain links, for navigation, colors, images, and so on.
There might be other ways...
I want to use CSS and HTML, and avoid javascript, because I want to maintain the site myself and I don't know javascript well enough.
Vragabond's previous message seemed to suggest that it's better to use DIVs rather than tables, but I'm not sure I understood that correctly. Reality check please? Are DIVs better?
If so... why are DIVs better?
Thanks a bunch.
Tim