View Full Version : Alignment question
03-24-2004, 02:18 AM
I am new to web design and I have enjoyed reading everyone's comments. I have a question that I hope someone could answer. I would like to be able to have a table/graphic go to the top of the page and to be able to have this image adjust, across the screen, accordingly with any changes in screen resolution. So far I have been able to do one or the other but not both. By using layers I have been able to have a layer go to the top. However, the layer does not extend across the whole page at different screen resolutions. I have been able to have a table stretch across the whole page. However, I can't get the table to extend all the way to the top. Is there a way of creating both goals?
Thanks in advance for any help
03-24-2004, 08:43 AM
I'm not sure exactly what you're trying to do here, but I do have a couple comments/suggestions as a starting point:
* Don't use layers. <layer> isn't part of the HTML spec, it was a proprietary Netscape tag in the 4.x days. IE never supported it - and I'm pretty sure newer Netscape/Gecko products don't either. If you're using/designing for a browser that does support layers, that might complicate things a bit.
* thisimage.jpg will work. But is this really what you're asking for? it will stretch the image as you resize the browser.
* both table and div (which you should be using instead of layer) can have thier width set to 100%, is that what you're doing?
* What's stopping your table from being at the top of the page? Have you set your margins and padding, for both body and table to 0?
Sorry if I haven't addressed your actual problem. Some example code might be helpful.
03-24-2004, 06:31 PM
You gave me the answer. I had to set the top margin. This site is the greatest. Thanks to kind folks like yourself. This was driving me crazy. Thanks, that saved me alot of time.
03-25-2004, 05:40 PM
If you need an image to resize, the only way I know is to put the image in a Flash movie and set the movie to 100% of screen size. Keep in mind that only vector based images will resize without image degradations.
03-26-2004, 01:28 AM
I think that is a great idea. I have a follow up question to an earlier reply. What is wrong with using layers? The seem easier to use with Dreamweaver. I have checked the results in Oprah, Mozilla, IE and Netscape. They all seemed to come out fine. Could someone elaborate on this. Thanks again.
03-26-2004, 08:13 AM
What's the advantage of using flash?
I'm sorry for the confusion about "layers". I don't use dreamweaver, but I did some checking and apparently what they call layers are not actually <layer>s but rather absolutely positioned <div>s. Someone who actually uses the program can correct me if I'm mistaken on this.
I would advise using relatively positioned divs, rather than absolutely positioned in most cases - but that recommendation is not nearly as strong as the one not to use <layer>s
03-26-2004, 07:43 PM
Thanks agian for the clarification. I am in the process of learning CSS. I appreciate your advice. It has been helpful.