Can this be done using layers?

Discussion in 'HTML & Website Design' started by MMA, May 29, 2006.

  1. #1
    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.
     
    MMA, May 29, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    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
     
    kk5st, May 29, 2006 IP
  3. Blame Me

    Blame Me Guest

    Messages:
    162
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3

    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.
     
    Blame Me, May 30, 2006 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    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
     
    kk5st, May 30, 2006 IP
  5. Blame Me

    Blame Me Guest

    Messages:
    162
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Looks like I have soggy chips then :rolleyes: 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 :D
     
    Blame Me, May 30, 2006 IP
  6. mt.bum

    mt.bum Guest

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Walk away from DW. It hurts to look at the code. TextPad, WildEdit and Tidy cover the bases and do not hurt the eyes.
     
    mt.bum, May 31, 2006 IP
  7. johneva

    johneva Well-Known Member

    Messages:
    1,480
    Likes Received:
    46
    Best Answers:
    1
    Trophy Points:
    170
    #7
    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.
     
    johneva, Jun 1, 2006 IP
  8. brian394

    brian394 Well-Known Member

    Messages:
    226
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #8
    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).
     
    brian394, Jun 1, 2006 IP
  9. thelouisvilleseo

    thelouisvilleseo Peon

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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!
     
    thelouisvilleseo, Jun 1, 2006 IP