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
A need help with some Navigation prolbems for a site I am doing for a client.
Old 08-31-2007, 05:37 PM A need help with some Navigation prolbems for a site I am doing for a client.
Skilled Talker

Posts: 89
Trades: 0
Hello I have been making a template or site, but the menue or navigation done't look right it IE. Its perfect in FF. I think it has to do with the type of navigation I am using you will see in the code, but I don't really know. Does anyone know why it does this? I don't really know how to describe the problem but I think I read that somewhere you arn't able to make navigation that has auto size for Ie, but I bassically got the basic code for the navigation from hear. http://www.cssplay.co.uk/menus/centered.html menu 2

Hears what it does...

FF http://i93.photobucket.com/albums/l7..._Bouzy/ada.jpg

IE http://i93.photobucket.com/albums/l7...Bouzy/adaa.jpg

(I have the margin problems fixed just not how the navigation works.

I always have problems with my sites in IE (But they always look perfect the first time in FF. Is this because of some bad coding habits or what???

Code:
#menu {
   
   padding: 0px;
   margin: auto; 
   white-space: nowrap;
   background-image: url(Images/navigation.jpg);
   margin-left: 4px;
   background-repeat: no-repeat;
   height: 32;
   width: 742;
   list-style-type:none;
   margin-bottom: 4px;
 
 }
 
 #menu li {
   
   display:table-cell;
   
 }
 
 
 #menu a {
   
   width: auto;
   display:block;
   padding:5px 17px;
   color:#7699b5; 
   background:#b0cfe1; 
   text-decoration:none;
   
 }
 
 
 #menu a:hover {
   
   color:#b0cfe1; 
   background:#7699b5;
  
 }
 
 .container {text-decoration:none;}
 * html .container {display:inline-block;}
Code:
<ul id="menu">
 <li><a href="#nogo">Home</a></li>
 <li><a href="#nogo">Blog</a></li>
 <li><a href="#nogo">Portfolio</a></li>
 <li><a href="#nogo">About</a></li>
 <li><a href="#nogo">Contact</a></li>
 </ul>
That is in an include file from the main xhtml like this

Code:
 <div id="header">
     <!-- HEADER CODE -->
     <img src="Images/header.jpg" alt= "Banner and title of site" />
 
   </div>
 
 <!-- ************************ -->
 
     <!-- NAVIGATION CODE -->
     <!-- CSS NAVIGATION -->
 
 <del class="container">
 <?php
 @include('Includes/links.html');
 ?>
 </del>
 
 <!-- ************************ -->
 
       <div id="conttop">
         <!-- PUT MAIN COLUMN_T CODE HERE -->
 
       </div>
 
 <!-- ************************ -->
 
       <div id="content">
         <!-- PUT MAIN COLUMN CODE HERE -->
         <!-- PUT YOUR MAIN HEADING FOR THE PAGE AND CONTENT BETWEEN THE HEADING TAGS <H> AND THE PARAGRAPH TAGES <P> -->
         <h2 class="contentheading">Heading</h2>
         <p class="contentparagraph">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin eu enim quis odio blandit malesuada. Vivamus tristique, felis eu tristique tincidunt, ipsum libero tempor lectus, sed feugiat lectus urna non risus. Suspendisse ac elit. Nam nec erat. Nulla posuere nisi at magna venenatis lobortis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent ornare, felis malesuada fermentum sagittis, justo nibh interdum tortor, sed ullamcorper purus dui at pede. Maecenas suscipit justo non ante. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pede. Fusce lobortis euismod diam. Morbi ullamcorper laoreet nibh. Mauris elementum, dui ut facilisis pretium, urna dolor rhoncus mi, ut tempor metus neque sed justo. Nulla vel tellus in nisl ultrices suscipit. Ut nisl. Quisque turpis libero, fermentum sed, nonummy non, eleifend eu, ipsum. Ut sit amet nunc. Mauris a neque sit amet purus volutpat cursus. Quisque sem.
 
Suspendisse sed risus eget odio imperdiet tristique. Sed urna neque, facilisis ut, pulvinar sit amet, hendrerit id, urna. Morbi congue diam id eros. Phasellus sit amet lorem. Mauris sollicitudin. Cras gravida, lectus quis dictum auctor, elit tortor semper libero, viverra tincidunt justo ligula venenatis ipsum. Integer eget libero. Aliquam dapibus sem nec ipsum. Vestibulum augue. Phasellus a nisl semper urna venenatis tristique. Quisque eu purus. Nunc eu sapien sodales neque fermentum blandit. Donec molestie libero et metus egestas dictum. Praesent magna lorem, faucibus sit amet, semper sit amet, porta a, sem. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Donec justo. Proin ultricies interdum erat. Pellentesque nec nunc. In volutpat lacus ac mauris. Nulla mauris neque, mollis a, faucibus vitae, posuere et, lacus.</p>
 
       </div>
 
 <!-- ************************ -->
 
       <div id="contentb">
         <!-- PUT MAIN COLUMN_B CODE HERE -->
 
       </div>
 
 <!-- ************************ -->
     
   <div id="footer">
     <!-- PUT FOOTER CODE HERE -->
     <p id="copy">&copy; 
          <?php ini_set('date.timezone', 'American/Eastcoast');
          $startYear = 2007;
          $thisYear = date('Y');
          if ($startYear == $thisYear) {
          echo $startYear;
          }
          else {
          echo "{$startYear}-{$thisYear}";
          }
          ?>
     Goldfish Graphics</p>
    
   </div>
 
 <!-- Closing container div -->
 </div>
If anyone could help that would be great seeing as this is for someone. (P.S. everything validats I think)
Bouzy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-31-2007, 05:53 PM Re: A need help with some Navigation prolbems for a site I am doing for a client.
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I think it has something to do with the "display: table-cell". Try floating the list items to the left.

Edit:
I changed this and it seems to work:
Code:
 #menu li {
   
   float:left;
   
 }
__________________

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

Last edited by angele803; 08-31-2007 at 05:55 PM..
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-31-2007, 06:48 PM Re: A need help with some Navigation prolbems for a site I am doing for a client.
Skilled Talker

Posts: 89
Trades: 0
When i do that the navigation gets skinnyer than I want it and the content heading and box go to the right of it. I tried fixing this by doing clear: right;, but to no avail. Any suggestions?
Bouzy is offline
Reply With Quote
View Public Profile
 
Old 08-31-2007, 10:31 PM Re: A need help with some Navigation prolbems for a site I am doing for a client.
Experienced Talker

Posts: 49
Trades: 0
seems you got a messy code
__________________
Time to upgrade your website! Visit us at:
Please login or register to view this content. Registration is FREE
.
- Professionals Designs with Details
Cyrus is offline
Reply With Quote
View Public Profile
 
Old 08-31-2007, 10:59 PM Re: A need help with some Navigation prolbems for a site I am doing for a client.
Skilled Talker

Posts: 89
Trades: 0
My code isn't messy and that doesn't really help me.
Bouzy is offline
Reply With Quote
View Public Profile
 
Old 08-31-2007, 11:04 PM Re: A need help with some Navigation prolbems for a site I am doing for a client.
Experienced Talker

Posts: 49
Trades: 0
lol sorry bud, how about this? Want to use my code?
__________________
Time to upgrade your website! Visit us at:
Please login or register to view this content. Registration is FREE
.
- Professionals Designs with Details
Cyrus is offline
Reply With Quote
View Public Profile
 
Old 08-31-2007, 11:24 PM Re: A need help with some Navigation prolbems for a site I am doing for a client.
Skilled Talker

Posts: 89
Trades: 0
No, you are talking like my code is crzy bad or something. ITs not that bad. I was asking about a problem I have not if you think my code is messy so if anyone has any good ideas as to how to fix the problem suggestions would be great.
Bouzy is offline
Reply With Quote
View Public Profile
 
Old 09-01-2007, 12:21 AM Re: A need help with some Navigation prolbems for a site I am doing for a client.
Skilled Talker

Posts: 89
Trades: 0
Closed
Bouzy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A need help with some Navigation prolbems for a site I am doing for a client.
 

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