Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

css button changes position or comes to next line while zoom browser?

here is my code:

Same problem occurred when i used just link "a:link" with background image; but i fixed it by using, "position:relative; display:inline-block". But in this case I am little confused about Is it possible to add same codes to here also. If possible How and where? ( I tried, but didn't get) I want to fix this using css only if possible. Please any one can answer? Thank you! :)

Here is my code.

<html> <head> <title> </title>

<style type="text/css">

ul#avmenu {

margin:35px 0px;

padding: 0;

font: 12px Verdana;

list-style-type: none;

}

ul#avmenu li {

display: inline

}

ul#avmenu li a {

padding: 5px 10px;

border: 1px solid #aaa;

background-color: #eee;

color: #47a;

text-decoration: none;

background:#481115

}

ul#avmenu a:hover {

background: #fff;

color: #222;

}

ul#avmenu li.current a {

border:1px solid #777;

}

</style>

</head> <body>

<ul id="avmenu">

<li class="current"><a href="first.html">First page</a></li>

<li><a href="second.html">Second page</a></li>

<li><a href="third.html">Third page</a></li>

<li><a href="fourth.html">Fourth page</a></li>

<li><a href="fifth.html">Fifth page</a></li>

</ul>

</body>

</html>

3 Answers

Relevance
  • Anonymous
    9 years ago
    Favorite Answer

    You need to stop the button or its container from inheriting the above lying styles. Use 'clear: both' in your css or just above the element tag add this line

    <div style='clear: both'> </div>

  • ?
    Lv 4
    5 years ago

    Css Button Position

  • 5 years ago

    I never report people, but my best friend has been reported like 3 times(by the same person) just because they didn't like her. How rude! But I'm a good girl, so I don't report people(It's just the way they are) And I do think reporting should be made public for everyone to see. It's a fight to see who's good and who's evil!!!

Still have questions? Get your answers by asking now.