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
the links show up at the bottom of the screen
Old 06-25-2006, 12:10 PM the links show up at the bottom of the screen
Skilled Talker

Posts: 97
Trades: 0
ok my links show up at the bottom of the screen
when its suppose to be in the div header

Code:
<head> <style>
body {
  background: #000;
}

#header {
  background: #8B2500;
  height: 120px;
}

/*- Main Menu in Header */

ul.menu {
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 90%;
    }

ul.menu li {
    display: inline;
    margin: 0;
    }

ul.menu,
ul.menu li a {
    padding: 100px 15px 6px;
    }

ul.menu li a {
    font: 1em Verdana, Helvetica, Arial, Sans-Serif;
    color: #EAEAEA;
    margin: 0;
    }

ul.menu li a:hover {
    background: #333;
    color: #eee !important;
    text-decoration: none;
    }

ul.menu li.current_page_item a,
ul.menu li.current_page_item a:hover {
    color: #333 !important;
    background: #EAEAEA;
    text-decoration: none;
    }
    
    
</style>

   </head>

   <body>

<div id="header">
<ul class="menu">
<li class="current_page_item"><a href="#">Home</a></li>
<li class="page_item"><a href="#">Downloads</a></li>
<li class="page_item"><a href="#">Staff</a></li>
<li class="page_item"><a href="#">About</a></li>
</ul>
</div>

   </body>
</html>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
raptrex is offline
Reply With Quote
View Public Profile Visit raptrex's homepage!
 
 
Register now for full access!
Old 06-25-2006, 02:04 PM Re: the links show up at the bottom of the screen
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I think it's because of the absolute positioning of the menu at bottom:0. That should mean it will sit at the bottom of the nearest containing element that is also postioned or failing to find another positioned containing element at the bottom of the body. Since no containing element (in this case the header) has been positioned the positioning of the menu is in relation to the body of the document.

I think if you add position:relative to #header the links will show where you intended.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 06-25-2006 at 02:05 PM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 06-25-2006, 04:14 PM Re: the links show up at the bottom of the screen
Skilled Talker

Posts: 97
Trades: 0
thank you very much it works
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
raptrex is offline
Reply With Quote
View Public Profile Visit raptrex's homepage!
 
Old 06-25-2006, 11:54 PM Re: the links show up at the bottom of the screen
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Glad to help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to the links show up at the bottom of the screen
 

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.62343 seconds with 12 queries