Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbe Div possitioning inside another div! 1

Status
Not open for further replies.

fireburner69

Programmer
Aug 22, 2002
108
GR
Hello
my issue I believe its easy but cannot find any help into this.
I have a div that is called header with some simple properties
and I want inside there to have another div that I call it menu.

Now I want the menu div to be always bottom right of the header div!
Inside the menu div I have a nice inline list.

I have tried some properties but I cannot find out a way to work this out!
Any ideas?
Thanks for your time!
 
Put position relative on the header div, and make the inner menu div have position absolute and instead of giving it a top and left, give it a bottom and a right of zero. That ought to do it for you.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
That did the trick! but with this way now there is a small line above the header div!

But thanks for the help!
 
That could just be whitespace. See if removing any whitespace between tags (in that area of your code) fixes things.

Example:
Code:
<div id="abc">
  <div>Something</div>
  <div>Something else</div>
</div>
Might change to this once whitespace is removed to test the theory:
Code:
<div id="abc"><div>Something</div><div>Something else</div></div>
Or this alternative:
Code:
<div id="abc"><
  div>Something</div><
  div>Something else</div><
/div>

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top