Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fit buttons correctly in context to height of container
    primarykey
    data
    text
    <p>I'm been struggling with this problem for a couple of days now, i've tried to change every possible property in my CSS document, but none of them seemed to work.</p> <p>site: <a href="http://www.mohrdevelopment.com" rel="nofollow">http://www.mohrdevelopment.com</a></p> <p>The problem is in the navigation bar.</p> <ol> <li><p>problem: There is a spacing/gap between every button which i want to remove</p></li> <li><p>Problem: All buttons (except Home button) expands to exceed the background of the navigation bar when hovered over. The height of navigation bar is 40px.</p></li> </ol> <p>This is my HTML coding for the bar:</p> <pre><code>&lt;div class="wrap"&gt; &lt;ul class="navigation"&gt; &lt;li class="current"&gt;&lt;a href="index.html"&gt;&lt;em class="home"/&gt;&lt;b&gt;Home&lt;/b&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="second.html"&gt;&lt;em class="photos"/&gt;&lt;b&gt;Photos&lt;/b&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="projects.html"&gt;&lt;em class="projects"/&gt;&lt;b&gt;Projects&lt;/b&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="about.html"&gt;&lt;em class="about"/&gt;&lt;b&gt;About&lt;/b&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contact.html"&gt;&lt;em class="contact"/&gt;&lt;b&gt;Contact&lt;/b&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>And this is my CSS code:</p> <pre class="lang-css prettyprint-override"><code>body { font-family:sans-serif; background: url(images/background3.png); } .navigation { background:#1841c8 url(Navigation/Navigation/nav_background.png); height:40px; margin-bottom:0px; display:block; min-width:625px; } .navigation li{ display:inline-block; line-height: 40px; } .navigation li a{ color:#FFFFFF; padding: 11px 5px 15px; } .navigation li a em{ height:32px; display:inline-block; padding: 0 5px 6px 50px; font-weight:bold; vertical-align: middle; background-position: 0 50%; } .navigation li a:hover{ color:#00CCFF; background: url(Navigation/Navigation/nav_hover.png); text-decoration:none; padding: 11px 5px 10px; } .navigation .current a { color:#FFFFFF; background:url(Navigation/Navigation/nav_hover.png); padding-bottom:11px; } /*Navigation bar icons*/ .navigation li a em.home { background-image: url(Navigation/Icon_images/home.png); background-repeat: no-repeat; } .navigation li a em.photos{ background-image: url(Navigation/Icon_images/Photo.png); background-repeat: no-repeat; } .navigation li a em.projects{ background-image: url(Navigation/Icon_images/projects.png); background-repeat: no-repeat; } .navigation li a em.about{ background-image: url(Navigation/Icon_images/about.png); background-repeat: no-repeat; } .navigation li a em.contact{ background-image: url(Navigation/Icon_images/Contact.png); background-repeat: no-repeat; } .wrap { margin:auto; width:80%; background:yellow; } </code></pre> <p>Hope someone can help me with this problem, i've spent hours troubleshooting it/looking for solutions.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload