Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-13-2008, 08:39 AM Absolute Positioning of a DIV inside a DIV
Ultra Talker

Posts: 316
Trades: 0
I'd like the green DIV (class=bottom) to be flush against the bottom and left side of the red DIV (class=left).

Its OK in FF but not in IE.

Any ideas how to do this?
Code:
.bottom {
    position: absolute; 
    left: 6px;
    bottom: 6px;
    background-color: green;
    width: 212px;
    padding: 10px;
}
Code:
.left, .right,.right-scroll {
    float: left;
    height: 369px;
    color: #000000;
    padding: 10px;
}
.left {
    width: 213px;
    margin: 5px 0px 5px 5px;
    text-align: justify;
    background-color: red;
}
HTML Code:
  <div class="left">
Text
<div class="bottom">menu</div>
  </div>
Attached Images
File Type: jpg IE-absolute.JPG (3.8 KB, 12 views)

Last edited by Joe3000; 03-13-2008 at 08:53 AM.. Reason: Attaching image
Joe3000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2008, 09:49 AM Re: DIV inside a DIV
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add position:relative to .left so that .bottom is relative to that, not to the nearest relative ancestor.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-13-2008, 10:13 AM Re: DIV inside a DIV
Ultra Talker

Posts: 316
Trades: 0
Thanks.

It's still a little out in IE:
Attached Images
File Type: jpg IE-absolute.JPG (3.8 KB, 9 views)
Joe3000 is offline
Reply With Quote
View Public Profile
 
Old 03-13-2008, 10:15 AM Re: DIV inside a DIV
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Need a url to see what is happening
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-13-2008, 10:18 AM Re: DIV inside a DIV
Ultra Talker

Posts: 316
Trades: 0
Works fine in FF2 but not IE6

http://www.jfwebdesign.co.uk/dev2/

The red and the green backgrounds are only there as guides - not part of the site design!
Joe3000 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to DIV inside a DIV
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29688 seconds with 13 queries