SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Problem

  1. #1
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem

    Hey,

    Alright, so I am busting out some css and trying to get a grasp on formatting with div's and css instead of tables. So, if I line up 3 images like so:

    Code:
    <img src="left" style="position:absolute" /><img src="middle" style="width:100%; height:26%; position:relative;" /><img src="right" style="position:absolute;" />
    Now, with IE it works beautifully.. but NS the right image drops to the next line. How do I eliminate this from occurring? Thanks.

    Brett

  2. #2
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, another ?. Why is it that divs inside of divs don't constrain themselves to a percentage when their is an image within that div. Does that make sense? For instance:

    Code:
    <div style="height:100%">
       <img src="something" />
       <div style="height:100%">
            Some Text
       </div>
    </div>
    Now, with this the second div will go beyond the first div in height the amount of the image height. Why does it do this, how does one fix it so a page will fluxuate correctly when resized? Thanx.

    Brett


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
  •