You are here: Re: Menu list broken by form button « HTML « IT news, forums, messages
Re: Menu list broken by form button

Posted by Jukka K. Korpela on 07/11/07 05:30

Scripsit Paul Furman:

> I've got a nav menu that's css formatted to run across the top:

What's the URL?

> When I want to make one of the links a button, the formatting is
> broken, causing a double page break from code like this:

Well, then just stop wanting that. Turning links to buttons is a bad idea
anyway; see http://www.cs.tut.fi/~jkorpela/www/links.html
for a detailed explanation, or consider just a few of the reasons:
1) Does Google treat the button as a link?
2) Can the user middle-click on the button to open the linked resource in a
new tab, as he can do with real links?
3) Does the button automatically change color after visiting the linked
resource?

"Doctor, it hurts when I do this!"
"Then don't do that."

> <li>
> <form ...
> about
> </form>
> </li>

A form is a block-level element by default. Thus, it will be rendered with
line breaks before and after. You could prevent this with

form { display: inline; }

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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