Hi all! I'm an Italian guy so excuse me for my bad english. I'm trying to make the layout attached to the tread. I would like to know your advice: it is better to float those text-box in the middle or use the absolute positioning? Thanks To All
Stay clear of absolute positioning in almost cases. At worst, use fixed widths for "top" and "left" values relative to the container.
You can use either really, but as said above, you'll likely have an easier time coding with floats, and have less issues in the end.
Thank you all. I made it with floats! I was thinking: when does it is convenient to use absolute position????
A good example of when you need it could be when you need something to definitely be in a certain position relative to another container... like with drop-down menus. The main (first) part of the menu can be floated, but the part that drops down should stay under the main button. You would not want the sub-headings that belong under HOME to end up under CONTACT US. If you need something to sit in a corner of a container, and never move, you could use absolute positioning. One thing to watch out for with absolute positioning is that it is considered outside the document flow, so if the rest of the page changes or moves around, the absolutely positioned stuff WON'T move with it. They are out of the flow, man. An example I first saw in a book and then later encountered was an absolutely positioned sidebar next to a relatively-positioned main text box. When you have something sitting under the main text box, like a footer or a chart, and the main text then gets shorter than the sidebar for some reason, the part underneath (footer or chart) will end up behind the sidebar if it's wide enough to reach it. My absolutely-positioned sidebar covered my chart : (