CSS - nav button dropping to next line

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default CSS - nav button dropping to next line

    My nav buttons all float left with 20px space between them (buttons are 100px
    wide). My last button is falling off to the next line even though it seems
    there is plenty of room. My menu is set for 759px and so I should have 59px
    left over of extra space.

    Any ideas?

    [url]www.acswebdev.net[/url]
    [url]www.acswebdev.net/styles/hatranchstyles.css[/url]


    thanks!
    Denise

    dwebber Guest

  2. Similar Questions and Discussions

    1. Contribute not dropping old URL
      Hey all, I am having an issue with Contribute CS3 that i have been unable to solve. It should be a simple fix but in this case it does not seem...
    2. dropping the suffix
      Hi: Can someone tell me how I can get my website to assume a .html suffix so that browsers don't have to add the suffix all the time? ie: instead...
    3. Append a text line by pressing a submit button
      Hi, I made a small text field form, now I want to append the name of the text to a new line by pressing a submit button. The form action =...
    4. dropping sprites into a bag
      I'm trying to write lingo to make a sprite disappear once it's dropped onto another sprite. So, I have a sprite that's moveable and I want the...
    5. Editing the text of a 2 line button symbol.
      On 8/26/2003 8:24 AM, Bruce Kieffer wrote: I haven't found a way to do it. That's a good one for the Fireworks wish list. ...
  3. #2

    Default Re: CSS - nav button dropping to next line

    Since you are containing each navigation button in a div named #menu and then
    floating each of the buttons to the left makes it unnecessary to add the left
    declaration to the rule.

    The float makes them line up side by side, and if you need space between them
    simply add a margin-left declaration to each button to push them apart.

    The only other thing you might think of is accessibility. If someone browses
    to this site and they can't see the images then how are they going to navigate
    it? Add alt attributes to your images to label them for screen readers.

    One last thing, are you truly writing XHTML? Your DOCTYPE says yes but your
    code says no. I don't know what version of DW your using, but if you have the
    option look under the File menu for the Convert option and convert your page to
    XHTML. If you're using DW8 then choose the same flavor as your DOCTYPE
    declares, which is XHTML 1.0 Transitional.

    alanmarchman Guest

  4. #3

    Default Re: CSS - nav button dropping to next line

    [q]Originally posted by: alanmarchman
    One last thing, are you truly writing XHTML? Your DOCTYPE says yes but your
    code says no. I don't know what version of DW your using, but if you have the
    option look under the File menu for the Convert option and convert your page to
    XHTML. If you're using DW8 then choose the same flavor as your DOCTYPE
    declares, which is XHTML 1.0 Transitional.[/q]

    I'm using Dreamweaver MX. I looked under File>Convert and the XHTML was greyed
    out. What specifically is it about my code that tells you I'm not truly XHTML?
    I chose the check box "make document XHTML compliant" when I created it.

    I also found out that I had two divs by the same name (#contact), oops. So I
    changed the names and now everything is flowing nicely...well except in IE6.

    dwebber 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