Welcome Guest ( Log In | Register )

Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
      
 
Reply to this topicStart new topic
menu formatting, Menu presents fine in Firefox, not in IE
rmccafferty
post Apr 17 2008, 03:08 PM
Post #1


Member
**
Posts: 16
OS: vista



I am using the following code for my "header" on a web site.

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="headback_l"><img src="art/logo.gif" alt="Legacy Transformational Consulting Logo" width="239" height="118"></td>
<td width="100%" align="right" class="headback_r"><img src="art/head_text.gif" width="460" height="117"></td>
</tr>
<tr valign="middle">
<td colspan="2" class="backblack"><div><ul class="menu centered">
<li><a href="index.html">HOME</a></li>
<li><a href="products.html">PRODUCTS</a></li>
<li><a href="clients.html">CLIENTS</a></li>
<li><a href="A_who_we_are.html">ABOUT US</a></li>
<li><a href="links.html">LINKS</a></li>
<li><a href="contact.html">CONTACT US</a> </li>
</ul></div></td>
</tr>
</table>

The first table row works fine. The second displays the items vertically rather than horizontally. Worse, it sometimes it is okay, other times not. It is not a matter of screen width. The code in the classes is:
.backblack {
background-color: #000000;
}
and
.centered {margin:0 auto;}
plus
.centered a:visited {
color: #FFFFFF;
}

It always works fine in Firefox and I cannot figure out a constant in what makes it work only sometimes in IE. If you want to see the site it is www.legacytc.com.

I would be very grateful for anyone who sees the error in this.

Robert
Go to the top of the page
 
+Quote Post
rmccafferty
post Apr 17 2008, 03:15 PM
Post #2


Member
**
Posts: 16
OS: vista



I left out one part of the css. Sorry

.menu {
display:table;
padding:0;
list-style-type:none;
white-space:nowrap;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #FFFFFF;
border-left: solid #666 1px;
margin: 0;
border-bottom: none;
}
Go to the top of the page
 
+Quote Post
Major Payne
post Apr 17 2008, 05:43 PM
Post #3


Trusted Techie
Group Icon
Posts: 4,451
From: FEMA took "Tin Can" away!
OS: Win XP/Vista Home Premium. Backup PC: Commodore 64 with 300 baud modem!



You have some serious CSS Errors that need correcting.

Correct your CSS and then re-check with IE.

I will never understand the use of tables as layout when you are using CSS. That is a big no-no as tables are for tabular data use only. The design of pages with table tags went out in the 1990s.

Ron

This post has been edited by Major Payne: Apr 17 2008, 05:49 PM
Go to the top of the page
 
+Quote Post
rmccafferty
post Apr 18 2008, 11:50 AM
Post #4


Member
**
Posts: 16
OS: vista



That is a nice automatic evaluator. But none of the "errors" it detected seem to be about the issue with the menu presentation problem. Most have to do with padding and colors.

Do you see a listed error that would relate to the horizontal menu issue?
Go to the top of the page
 
+Quote Post
Major Payne
post May 5 2008, 07:44 PM
Post #5


Trusted Techie
Group Icon
Posts: 4,451
From: FEMA took "Tin Can" away!
OS: Win XP/Vista Home Premium. Backup PC: Commodore 64 with 300 baud modem!



Wow. Sorry for not getting back to you sooner. My sister has been working me to death to get H. Katrina damage cleaned up.

Just put this in your CSS to get the menu to display horizontally:

ul li { display: inline; }

Ron
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   2 / 76 12th November 2008 - 04:34 PM
R0dders started - last by tws
No New Posts   1 / 41 12th November 2008 - 05:19 PM
tomsgtg started - last by 123Runner
No New Posts   1 / 35 13th November 2008 - 01:49 PM
thatguy03 started - last by sari
No New Posts   1 / 39 18th November 2008 - 02:35 PM
bipolarbear27 started - last by The Admiral

RSS Time is now: 22nd November 2008 - 03:35 AM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.