Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-20-2007, 02:01 PM   #1 (permalink)
Contributing Member
 
kade119's Avatar
 
Join Date: 03-20-07
Posts: 164
iTrader: 0 / 0%
Latest Blog:
None

kade119 is liked by many
Menu alignment problem

When I try to set a top maring or top padding for the menu it pushes my #container downwards, and I need the menu to lay on top of the bgimage a little bit.. anyone know where they are conflicting?




HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css" media="screen"> <!-- @import url(css/dropmenu.css); img {border:0} a:link {text-decoration:none} --> </style> <link rel="stylesheet" href="/css/p/dropdowndemo4msie.css" type="text/css" /> <script type="text/javascript" src="/articles/dropdown/styles4msie.js"></script> <script type="text/javascript" src="/articles/dropdown/js4msie.js"></script> <!--[if IE 5]> <style type="text/css" media="screen"> * html #DropDownMenu li ul {top:2.2em} * html #DropDownMenu li ul li a {line-height:1.4em;height:1.4em} </style> <![endif]--> </head> <body onload="TJKSetEvents()"> <noscript> <!--[if IE 5]> <style type="text/css" media="screen"> * html #DropDownMenu li ul {top:0} * html #TJKDDM #current ul {top:0} * html #DropDownMenu ul a:hover {line-height:17px} </style> <![endif]--> </noscript> </head> <body> <div id="container"> <ul id="DropDownMenu"> <li><a href="javascript:;">Home</a></li> <li class="trigger"><a href="javascript:;">About Us</a> <ul> <li><a href="javascript:;">Who We Are</a></li> <li><a href="javascript:;">Introduction</a></li> </ul> </li> <li class="trigger"><a href="javascript:;">Our Portfolio</a> <ul> <li><a href="javascript:;">Graphic Design</a></li> <li><a href="javascript:;">Imaging</a></li> <li><a href="javascript:;">Web Development</a></li> <li><a href="javascript:;">Programming</a></li> </ul> </li> <li class="trigger"><a href="javascript:;">Services</a> <ul> <li><a href="javascript:;">Graphic Design</a></li> <li><a href="javascript:;">Imaging</a></li> <li><a href="javascript:;">Web Development</a></li> <li><a href="javascript:;">Programming</a></li> </ul> </li> <li class="trigger"><a href="javascript:;">Support</a> <ul> <li><a href="javascript:;">Contact Us</a></li> <li><a href="javascript:;">Downloads</a></li> </ul> </li> </ul> </div> </div> <!-- /menu --> </body> </html>


Code:
/* all lists */ #DropDownMenu a, #DropDownMenu a:link, #DropDownMenu a:visited { font-size:.9em; color:#666666; font-family: arial, "myriad-pro"; } #DropDownMenu, #DropDownMenu ul { width:750px; background-image: url(dropmenu.png); background-repeat: no-repeat; } /* Nested ULs */ #DropDownMenu li ul { position:absolute; top:1.2em; left:-900px } /* All LIs */ #DropDownMenu li { float:left; width:auto; margin:0; padding:0; list-style-type:none; font-weight:600; border-bottom:0px; } #DropDownMenu li a { padding:.1em .4em; height:2em; color:#999999 line-height:1em; border-bottom:0px; } #DropDownMenu li a:hover { background-image:none; color:#555555 border-bottom:0px } #DropDownMenu li ul li a { line-height:1.7em; height:1.7em; font-weight:400; border:none; color:#D3D3D3; background-image:none; } #DropDownMenu li ul li a:hover { color:#FFFFFF; } /* we reset the margin for the children */ #DropDownMenu li ul li { margin:0; border-bottom:0; border-right:0px } #DropDownMenu li:hover ul, #DropDownMenu li.msieFix ul {left:9px} html>body #container { position: relative; clear: none; width: 700px; margin: 0 auto; height: 635px; clear: none; height: 635px; background-image: url(bg1page.jpg); background-repeat: no-repeat; background-position: center; }
kade119 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox VS IE alignment problem DJ-Craig Coding Forum 12 06-14-2007 04:18 PM
image and paragraph alignment problem kade119 Coding Forum 3 03-26-2007 03:21 PM
Coding: Alignment Problem in Navbar soultrader Coding Forum 0 11-17-2006 07:05 AM
Images Alignment on Page problem. HELP leeuniverse Coding Forum 2 07-12-2006 04:40 AM
CSS alignment problem blelisa Coding Forum 9 04-19-2004 06:55 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:44 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.