You are here: Re: CSS drop down menu - how to centre it? « HTML « IT news, forums, messages
Re: CSS drop down menu - how to centre it?

Posted by John on 10/24/06 16:16

Hi

> Actually, no it doesn't. You are using the CGI.pm correct?
> my $q = new CGI;

That's OK. That's how I use it. I'm probably thinking of print
"Content-type: text/html\n\n";
Thou I prefer to use the $user=param('user') and just hard code the CGI.


> No it shows how 'forgiving' your browser is. Old Netscape would have ended
> the display of your document at the first </html>

Fair point. Actually both IE and FF are both forgiving (to me, at least)
>
If so maybe you ought to see what a real web browser
> does with your page and not depend of IE's interpretation.

Real web browser? Since IE and FF take the lion share I'm just coding for
them. It maybe that Opera etc may baulk at the code but I'll have to live
with that.

..


> To prove it can be done with valid markup:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
>
> <title>Valid Template</title>
>
> <style type="text/css">
> #navbar { text-align: center; font: 80% sans-serif; }
> #navbar UL { list-style: none; margin: 0; padding: 0; }
> #navbar LI { margin: 0 .05em; padding: 0; display: inline; line-height:
> 2 }
> #navbar A { text-decoration: none; padding: .2em 1em; border: 1px solid
> #aaf; }
> #navbar A:link, #navbar A:visited { color: #fff; background-color:
> #50c; }
> #navbar A:hover, #navbar A:active { color: #50c; background-color:
> #fff; }
> </style>
> </head>
> <body>
>
> <div id="navbar">
> <ul>
> <li><a href="home.shtml">Home</a></li>
> <li><a href="flights.pl">Flights</a></li>
> <li><a href="hotels.shtml">Hotels</a></li>
> <li><a href="cars.shtml">Car Rental</a></li>
> <li><a href="cruises.shtml">Cruises</a></li>
> <li><a href="holidays.shtml">Holidays</a></li>
> <li><a href="bargains.shtml">Bargains</a></li>
> <li><a href="MyZampf.pl">MyZampf</a></li>
> <li><a href="contact.shtml">Contact Us</a></li>
> </ul>
> </div>
>
> </body>
> </html>
>
Appreciate that. I see you have added the hover, active and visited. I'm
now adding DOCTYPE where I had earlier ignored it.
Thanks for the above. Much appreciated.

Regards
John
PS I have a 1971 VW Kombi so I probably would hit it with a hammer.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация