I have a graphic, and I would like to insert a newsletter sign up box into it. The problem is, when I create the layer with the sign up box it does'nt resize when the browser is collapsed - it just sits in the same place. Is there a way to make the layer move with the rest of the site? I use Dreamweaver if that makes a difference. Thanks.
Two things: First, there is no such animal as a layer. Second, there is no telling what kind of crappy code Dreamweaver generated. Give us a link, so we'll have something other than guesses to work with. cheers, gary
Erm I don't want to p*ss on your chips but I think if you look at this you might find you are wrong <layer></layer> It might not be used as much because of css but it is still valid. I'm always puzzled when someone mentions bad code from Dreamweaver because in all the years I have been using it not once has it inserted something crappy, Frontpage yes. Can you tell me what crappy code you get as I would be interested to know. BTW giving a link to the first question is a good idea and I'm sure some one on here could help.
Look again, that's your bag of chips you're p*ssing on. <layer></layer> is not now, nor has it ever been a part of html. Netscape introduced the tag for Navigator4, but it was never accepted, and Netscape wisely abandoned the idea. Here are all the html recommendations. It ain't in there. Never was. Never will be. It is invalid markup. Have DW generate a non-trivial page layout using css, and I'll show you all the crap code you'd ever hope to see. I make a living cleaning up after its crap-for-code. cheers, gary
Looks like I have soggy chips then and I'll conced your point that it was never accepted by the html gods, but it was still out there and some my even be using it today. I have just done what you suggested and not just for a basic css page from DW but for other DW made up pages too, and for the life of me I still cannot find anything wrong with the code. As long as you can make a living cleaning up this code then good luck to you
Walk away from DW. It hurts to look at the code. TextPad, WildEdit and Tidy cover the bases and do not hurt the eyes.
Gary is right it is a well know fact that Dreamweaver is not a clean coder niether is any other WYSIWYG editor. You will only find this though if you make pages following W3C standards if you dont fully understand W3C standards then you will not see this code bloat as you dont know what is needed and what is not. Dont get me wrong I love using Dreamweaver but only in code veiw so I hand code all my pages, the advantage of Dreamweaver over plain old Note Pad is Dreamweaver template files, file management, code snippets panel and FTP panel. Aswell as the same thing that most other code editors have colour coded coding.
I would have to see your code to be sure but I would think using relative positioning rather than absolute positioning would solve your problem (if I am understanding you correctly).
MMA - Easy fix.. Use display: relative; for your DIV. If you want positioning to work it will probably give you crap, another trick... try a float. Some agree, some disagree - just try it. If you need more help PM me with the URL and I'll post it for everyone to view along with MY recommendations. Am I a jerk? No, I just figure if one person has a look that's been doing this a long time, then he can better articulate the issue. Anyway - Just an idea. Good luck!