change of font-weight to bold is unwantingly changing width of element Whilst creating a navigation bar for my site I decided to make the active page tab show up in bold for usability purposes, but when I change the font-weight on the element it only slightly makes the element wider, an example I made using hover effects instead demonstrates my issue and i've never known a way to solve it..    HTML  &lt;ul id="mainNav"&gt;     &lt;li class="navItem"&gt;         &lt;a class="navLink" id="activeLink"&gt;Link 1&lt;/a&gt;     &lt;/li&gt;      &lt;li class="navItem"&gt;         &lt;a class="navLink"&gt;Link 2&lt;/a&gt;     &lt;/li&gt;      &lt;li class="navItem"&gt;         &lt;a class="navLink"&gt;Link 3&lt;/a&gt;     &lt;/li&gt; &lt;/ul&gt;   CSS  * {     font-family: Arial;     font-size: 14px;     list-style: none;     margin: 0;     padding: 0;     text-decoration: none; }  #mainNav {     background: RGB(200, 230, 240);     border-bottom: 1px solid RGB(0, 0, 0);     height: 30px;     margin: 0 auto;     position: relative;     width: 100%; }  .navItem {     display: block;     float: left;     position: relative; }  .navItem:last-child .navLink {     border-right: 1px solid RGB(0, 0, 0); }  .navLink {     border-bottom: 1px solid RGB(0, 0, 0);     border-left: 1px solid RGB(0, 0, 0);     display: inline-block;     height: 30px;     line-height: 30px;     padding: 0 15px;     white-space: nowrap; }  .navItem:hover .navLink {     background: RGB(120, 200, 250);     color: RGB(255, 255, 255);     cursor: pointer;     font-weight: bold; }  #activeLink {     background: RGB(90, 170, 220);     color: RGB(255, 255, 255);     font-weight: bold; }  #activeLink:hover {     background: RGB(110, 190, 240); }  .navItem:hover .subNav {     display: block; }
Inline elements shifting when made bold on hover I created a horizontal menu using a HTML lists and CSS. Everything works as it should except when you hover over the links. You see, I created a bold hover state for the links, and now the menu links shift because of the bold size difference.  I encounter the same problem as . However, the post does not have proper solution. I've searched everywhere for a solution and can't find one. Surely I can't be the only one trying to do this.  Does anyone have any ideas?  P.S: I don't know the width of the text in menu items so I cannot just set the width of the li items.    .nav { margin: 0; padding: 0; } .nav li {      list-style: none;      display: inline;      border-left: #ffffff 1px solid;  } .nav li a:link, .nav li a:visited {      text-decoration: none;      color: #000;      margin-left: 8px;      margin-right: 5px;  } .nav li a:hover{      text-decoration: none;      font-weight: bold;  } .nav li.first { border: none; } &lt;ul class="nav"&gt;     &lt;li class="first"&gt;&lt;a href="#"&gt;item 0&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 1&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 2&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 3&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 4&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;
Pure verbal nouns/deverbal nouns vs. gerunds This is a follow-up to a previous question which I am still trying to understand. I think I'm making progress in my understanding, but I would appreciate feedback to help me refine my thinking.  Here is the sentence:     Good writing requires hard work.   Originally, I thought that "writing" was acting as a gerund in this phrase.  After reading through the replies to that question along with back posts related to gerunds, I've since concluded that "writing" in this sentence is a , also termed a deverbal noun.  My reasoning?  —In the sentence above "writing" is modified by "good" and is thus acting more like a noun than a verb. —It has no direct object.  Is my thinking correct here?  If not, could someone politely help me to refine it?  However, what if I had written the following?     Writing well requires hard work.     or   To write well requires hard work.   In these examples, I'm thinking that "writing" would be a different kind of verbal noun—a non-finite verb acting as a gerund or infinitive, which is one piece of a larger complement noun clause.  The last bit is muddy for me, but I will leave it at that. Thank you in advance for your patience and insight. As far as I know, only a player character's non-temporary ability scores are considered for taking feats, taking prestige classes, etc. Meanwhile, any ability bonus that comes from spells, or magic items that are in effect only while worn, is not counted (except tomes which increase abilities permanently).  So a Fighter with low Int who wants to qualify for Combat Expertise can't use spells or items that gives an Int bonus to raise it high enough to qualify. Is that right?  For example:  Say our fighter has Str 12, so he can not take the Power Attack feat. Suppose he asks for a spell from the wizard to make his Str 16, or to borrow a ring which provides +4 Str from another character. (Or any other method that will provide him a non-permanent bonus). His Str is now 16. Can he take Power Attack with that non-permanent bonus now? Because after the spell duration ends or he takes off the ring, his Str score will be to low again to qualify for Power Attack. How to find a suitable association of color with data value in a visualization? I'm working on a software project that involves creating a visualizer for flood simulations. As part of this project, I've created a water gradient that shows water depth at particular points. To set what values will represent what colors, I go through the data and get the minimum and maximum values that occur and evenly distribute the colors according to that scale.  However, there are often times points in these simulations that have significantly deeper water at them than anywhere else in the simulation. This causes most of the points on the map to have very similar colors and this is not very informative and makes the areas where the water is deeper very hard to see.  My goal is to dedicate a larger range of colors to depths that occur more frequently. For example, if depths go from 0 to 12 but most depths are between 1 and 2, I want more color variation to occur within that range than does between say 11 and 12 or 4 and 5. It seems I need to use standard deviation or something involving normal distribution to do this, but I'm a bit fuzzy on how these things work and how I can use them to accomplish my goal.  Any help that can be provided will be appreciated. Thank you. No field properly between $\mathbb Q$ and $E$ iff $G(K/\mathbb Q) \cong A_4$ or $S_4$ Finding solution of non linear DE $x\ddot{x}-\dot{x}^2=1$ I am looking for help on how to find the solution of the following differential equation,  $$x\ddot{x}-\dot{x}^2=1,$$  which comes from solving the Euler-Lagrange equations for the lagrangian $L=x\sqrt{\dot{x}^2+1}$. It is from an exercise in my field theory course. My professor provided me with the solution $x(t)=c_1\cosh{\left(\frac{t-c_2}{c_1}\right)}$, which is a solution when plugged into the equation, but does not give any derivation.   Is there a way to solve this DE other than an educated guess? If so how? Add sort by relevance to search jobs In Careers 2.0, individuals can choose "search jobs" and sort by date posted, job title, and company name.  However, Careers 2.0 already knows what tags I'm proficient in, and knows the tags associated with the job postings.  A sort option, relevance, should be added so that jobs matching my skill set, as demonstrated on stack exchange, will float to the top. Why would someone use WHERE 1=1 AND &lt;conditions&gt; in a SQL clause (Either SQL obtained through concatenated strings, either view definition)  I've seen somewhere that this would be used to protect against SQL Injection, but it seems very weird.  If there is injection WHERE 1 = 1 AND injected OR 1=1 would have the same result as injected OR 1=1.  Later edit: What about the usage in a view definition?    Thank you for your answers.  Still, I don't understand why would someone use this construction for defining a view, or use it inside a stored procedure.  Take this for example:  CREATE VIEW vTest AS SELECT FROM Table WHERE 1=1 AND table.Field=Value Do I have to move swap partition to the right side? According to  I just expand my sda4 to include unallocated space, my question is after create 2 new partitions sda7, sda8, do I need to move the swap partition to the most right of the disk? (I really don't know this, I saw  which moving the swap partition to the right side)  Thanks. Which one is correct? (Maybe both are correct.)     He passed away on the morning of March 5.   Or      He passed away in the morning of March 5. I want to view the fonts that are installed on my system. Specifically, I want the client-side (fontconfig) fonts, not the old-style X11 bitmap fonts on the server (for which xfontsel does an adequate job). I guess what I'm looking for would be called a font viewer or font gallery. I want to see a bit of sample text for each font, ideally configurable sample text.  Being able to filter by font name, available character sets and other characteristics would be a plus.  A search of packages in Debian wheezy found gnome-font-viewer and kfontview, but they can only display a single font. I'd rather avoid depending on software that isn't widely available, including on the current Debian stable and Ubuntu LTS. My professor sometimes asks me to referee papers for him.  Should I list the corresponding journals in the professionals activity section of my CV? How can a piece of A4 paper be folded in exactly three equal parts? This is something that always annoys me when putting an A4 letter in a oblong envelope: one has to estimate where to put the creases when folding the letter. I normally start from the bottom and on eye estimate where to fold. Then I turn the letter over and fold bottom to top. Most of the time ending up with three different areas. There must be a way to do this exactly, without using any tools (ruler, etc.). Is there a way to install a newer version than in the repository?  Ubuntu installs vagrant 1.4.3 at the moment, but I need at least 1.5 A generalisation of the fundamental theorem of algebra We already know the following theorem by d'Alembert and Gauss, often called fundamental theorem of algebra.  Theorem Let $P$ be in $\mathbb C[X]$ of degree $1$ or greater. There exists $\alpha\in \mathbb C$ such that $P(\alpha)=0$.  Can we give the following generalisation for polynomials with several variables?  Generalisation Let $n$ be in $\mathbb N^*$ and $P$ be in $\mathbb C[X_1,\ldots,X_n]$ of degree $1$ or greater. There exists $\alpha\in \mathbb C^n$ such that $P(\alpha)=0$.  Any references, hints or solutions would be greatly appreciated. Prove by induction $\sum_{i=1}^ni^3=\frac{n^2(n+1)^2}{4}$ for $n\ge1$ Prove the following statement $S(n)$ for $n\ge1$:  $$\sum_{i=1}^ni^3=\frac{n^2(n+1)^2}{4}$$  To prove the basis, I substitute $1$ for $n$ in $S(n)$:  $$\sum_{i=1}^11^3=1=\frac{1^2(2)^2}{4}$$  Great. For the inductive step, I assume $S(n)$ to be true and prove $S(n+1)$:  $$\sum_{i=1}^{n+1}i^3=\frac{(n+1)^2(n+2)^2}{4}$$  Considering the sum on the left side:  $$\sum_{i=1}^{n+1}i^3=\sum_{i=1}^ni^3+(n+1)^3$$  I make use of $S(n)$ by substituting its right side for $\sum_{i=1}^ni^3$:  $$\sum_{i=1}^{n+1}i^3=\frac{n^2(n+1)^2}{4}+(n+1)^3$$  This is where I get a little lost. I think I expand the equation to be  $$=\frac{(n^4+2n^3+n^2)}{4}+(n+1)^3$$  but I'm not totally confident about that. Can anyone provide some guidance? Can I kill an indestructible creature with -X/-X and sufficient damage marked on it? Can I hit a 4/4 indestructible creature with a  (3 damage) and give it -1/-1 with  to kill it? (Does it matter which way around I cast those?)  I read  here and it says, damage is removed in cleanup step, so it should be on the creature still after both spells.     702.12. Indestructible   702.12a Indestructible is a static ability.   702.12b A permanent with indestructible can’t be destroyed. Such permanents aren’t destroyed by lethal damage, and they ignore the state-based action that checks for lethal damage (see rule 704.5g).   702.12c Multiple instances of indestructible on the same permanent are redundant. Suppose I want to know whether $\sqrt{7}\in\mathbb{Q}_5$, or more generally, whether $\sqrt{n}\in\mathbb{Q}_p$ for $n\in\mathbb{Z}$, $p$ an odd prime. What are the techniques for determining this? Am I supposed to "lift" it from $\mathbb{Z}/p\mathbb{Z}$ using Hensel's lemma? Could I see an example? How do I format a String in an email so Outlook will print the line breaks? I'm trying to send an email in Java but when I read the body of the email in Outlook, it's gotten rid of all my linebreaks. I'm putting \n at the ends of the lines but is there something special I need to do other than that? The receivers are always going to be using Outlook.   I found a page on microsoft.com that says there's a 'Remove line breaks' "feature" in Outlook so does this mean there's no solution to get around that other than un-checking that setting?  Thanks Capillary action and conservation of energy When I dip a paper towel in a cup of water the water gets drawn up due to . How is this reconciled with conservation of energy, as it would seem on the surface that the potential energy of the system has gone up with no work being done? How can I lock a file using java (if possible)