1 Reply Latest reply on Nov 27, 2007 8:00 PM by Newsgroup_User

    Help with Dreamweaver code?

    ivoog
      Here's a code for one of my DIV tags:
      <div align="center" style="background-repeat:no-repeat" id="apDiv1" ><img src="ciaUfiles.gif" width="280" height="76" /></div>
      I want it to be 10px right off the left side of the div tag and 10px down off the top of the div tag. How do I do this and where would I insert the code inside here to do this? Thanks!
      Sorry i'm trying to learn html.
        • 1. Re: Help with Dreamweaver code?
          Level 7
          You need to use CSS and you can put 10px padding for the left and top;

          #apDiv1 {
          padding:10px 0px 0px 10px;
          }

          "ivoog" <webforumsuser@macromedia.com> wrote in message
          news:fiijsk$ql3$1@forums.macromedia.com...
          > Here's a code for one of my DIV tags:
          > <div align="center" style="background-repeat:no-repeat" id="apDiv1" ><img
          > src="ciaUfiles.gif" width="280" height="76" /></div>
          > I want it to be 10px right off the left side of the div tag and 10px down
          > off
          > the top of the div tag. How do I do this and where would I insert the code
          > inside here to do this? Thanks!
          > Sorry i'm trying to learn html.
          >