Results 1 to 5 of 5

Thread: Floated Divs and Amazon

  1. #1
    Join Date
    Apr 2009
    Location
    Sydney, Australia
    Posts
    118
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default Floated Divs and Amazon

    Hi everyone.

    I am a web-design student and draw continual blanks on how to make floated divs not wrap to other lines on screen resize. amazon.com seems to be able to do this with elastic widths and image-heavy content. I assume they use a minimum width (in CSS) for the content area but remain puzzled.

    You can see my example page and how the right-navigation div wraps underneath the content area, as opposed to amazon.com whose containers do not wrap.

    Any suggestions would be appreciated.

  2. #2
    Join Date
    Apr 2009
    Location
    Sydney, Australia
    Posts
    118
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default

    anything?

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    which div or what has to be clicked to activate it?

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    the right-navigation div wraps underneath the content area...
    Do you mean this area (highlighted)?
    It doesn't wrap when I view it, in FF or IE.
    Maybe you're referring to something else?

  5. The Following User Says Thank You to traq For This Useful Post:

    sniperman (06-21-2009)

  6. #5
    Join Date
    Apr 2009
    Location
    Sydney, Australia
    Posts
    118
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default

    thanks for the response traq.

    yes, the highlighted area is the div in question. I altered the min-width in CSS and resolved the wrap issue, but in IE the text inside the highlighted div wraps underneath the text in the content area on the left.

    I know from amazon.com developers can manipulate elements to fix the minimum width a browser can resize down. I'd like to accomplish the same effect, (35% or 500px left content area minimum width) to help keep the content area in proportion.

    I can see the developers for amazon.com floated divs to the right, and fixed a percentage on the content in the middle. i would love to know how they fixed the browser resize.

Bookmarks

Posting Permissions

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