div - relative positioning

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default div - relative positioning

    I'm having a tad bit of difficulty understanding how to get to div's to align
    side-by-side.

    Very very basic layout here...

    I have a #header at the top of my page, 140px down I have #main section, and
    just to the right of that, I would LOVE to have my #navBar. I want it all
    relatively positioned.

    I must be missing something within the flow of my code. I understand that if
    a div is relative, it is going to position itself relevant to the div above it,
    before it, or what have you in the code. So as a result, my #navBar is
    positioned underneath my #main as opposed to 'next' to it on the right.

    Very similar to the home page of macromedia, main content on the left, nav
    column on the right.

    Hope someone can shed some light.

    Thanks,

    juane moore Guest

  2. Similar Questions and Discussions

    1. Prob. with Absolute/Relative Positioning of Layers
      I'm using the List-u-Like generator to create a menu (http://www.listulike.com/generator/) for this page that I created in Dreamweaver:...
    2. positioning
      im trying to move a div tag to the right side, ive tried using "float" but it doesnt work the way i want it to. i tried setting its position as...
    3. need help positioning movie clip relative to a resizing clip...
      I am trying to attach a "caption" to the bottom right edge of a movie clip that resizes. I am using the resizing clip as a image holder for a...
    4. document relative/site root relative linking
      It used to be that DW had a much, much better memory of what your last selection was, re: root v. document. MX now seems to get confused much more...
    5. Site relative or document relative links prob.
      Hi everyone, I have currently developed a new site within a sub directory of a site. I have used document relative links to test the site online...
  3. #2

    Default Re: div - relative positioning

    ps- using external css sheet to play with code.

    ....and the usual MX 2004, XP SP2, Dual Monitors, blood type O+
    juane moore Guest

  4. #3

    Default Re: div - relative positioning

    You need to use Float to get Divs to sit along side each other. There is an
    excellent series of articles on the MM Site on using CSS positioning. Go to
    the Developers, Dreamweaver section and then select CSS.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "juane moore" <webforumsuser@macromedia.com> wrote in message
    news:d4m61n$l84$1@forums.macromedia.com...
    > I'm having a tad bit of difficulty understanding how to get to div's to
    align
    > side-by-side.
    >
    > Very very basic layout here...
    >
    > I have a #header at the top of my page, 140px down I have #main section,
    and
    > just to the right of that, I would LOVE to have my #navBar. I want it all
    > relatively positioned.
    >
    > I must be missing something within the flow of my code. I understand
    that if
    > a div is relative, it is going to position itself relevant to the div
    above it,
    > before it, or what have you in the code. So as a result, my #navBar is
    > positioned underneath my #main as opposed to 'next' to it on the right.
    >
    > Very similar to the home page of macromedia, main content on the left,
    nav
    > column on the right.
    >
    > Hope someone can shed some light.
    >
    > Thanks,
    >

    Paul Whitham TMM Guest

  5. #4

    Default Re: div - relative positioning

    Thanks for the speedy reply!

    Actually, I read through this tutorial:

    Introduction to CSS Positioning in Dreamweaver MX 2004
    Learn how to use absolute, relative, and static positioning to lay out your
    pages with CSS.

    None of the examples show how to position side-by-side, or FLOAT as you say.

    That is where I picked up on the flow of the code...

    juane moore Guest

  6. #5

    Default Re: div - relative positioning

    Go to this page

    [url]http://www.macromedia.com/devnet/mx/dreamweaver/css.html[/url]

    and you will see the 6 articles. It pays to work from the top, but Part 2 &
    Part 4 are the most relevant to what you want

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "juane moore" <webforumsuser@macromedia.com> wrote in message
    news:d4m757$ms3$1@forums.macromedia.com...
    > Thanks for the speedy reply!
    >
    > Actually, I read through this tutorial:
    >
    > Introduction to CSS Positioning in Dreamweaver MX 2004
    > Learn how to use absolute, relative, and static positioning to lay out
    your
    > pages with CSS.
    >
    > None of the examples show how to position side-by-side, or FLOAT as you
    say.
    >
    > That is where I picked up on the flow of the code...
    >

    Paul Whitham TMM Guest

  7. #6

    Default Re: div - relative positioning

    Thank you for the post... I read from top to bottom as you recommended and now
    am familiar with floating divs...

    I have another problem however, my layout is as follows:

    <div id="wrapper">
    <div id="header"></div>
    <div id="main"></div>
    <div id="navBar"></div>
    </div>

    I have a space in between the header div and the main div. Its a single line.
    There is no code in between the two. How do I get rid of it?

    In the tutorials I read, there existed usage of <div id="clear"></div> after
    certain divs, but do not understand what the purpose of them is. Could this be
    the solution to clearing up that space?

    Thanks

    juane moore Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139