|
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]
|