Why does padding-left in a textbox cause width to be greater than 100% I have a div with 1 em of padding.  Inside is a textbox, with the width set to 100%.  This looks fine and as expected, with the width set 1 em inside the div.  However, when I add 1 em of padding-left to the textbox, the text box width is widened by 1 em, ignoring the padding on the right.  So it now touches the edge of the div.  How do I resolve this?    &lt;div style="padding:1em;background-color:pink"&gt;   &lt;input style="width:100%;padding-left:1em" /&gt; &lt;/div&gt;
Can I stop 100% Width Text Boxes from extending beyond their containers? Lets say I have a text box that I want to fill a whole line. I would give it a style like this:  input.wide {display:block; width: 100%}   This causes problems because the width is based on the content of the text box. Text boxes have margin, borders, &amp; padding by default, which makes a 100% width text box larger than its container.  For example, here on the right:    Is there any way to make a text box fill the width of its container without expanding beyond it?  Here is some example HTML to show what I mean:  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt; &lt;head&gt;     &lt;title&gt;Untitled Page&lt;/title&gt;     &lt;style type="text/css"&gt;         #outer{border: 1px solid #000; width: 320px; margin: 0px;padding:0px}         #inner{margin: 20px; padding: 20px; background: #999;border: 1px solid #000;}         input.wide {display:block; margin: 0px}         input.normal {display:block; float: right}     &lt;/style&gt; &lt;/head&gt; &lt;body&gt;     &lt;div id="outer"&gt;         &lt;div id="inner"&gt;             &lt;input type="text" class="wide" /&gt;             &lt;input type="text" class="normal" /&gt;             &lt;div style="clear:both;"&gt;&lt;/div&gt;         &lt;/div&gt;     &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;   If this is run, you can see by looking at the "normal" text box that the "wide" text box is sticking out beyond the container. The "normal" text box floats to the actual edge of the container. I'm trying to make the "wide" text box fill its container, without expanding beyond edge like the "normal" text box is.
Log4Net "Could not find schema information" messages Difference between "try to do" and "try and do" What is the difference between try to do and try and do?  To me (non-native speaker), asking someone try and do this seems a bit rude. It's like saying you can try all you want but this must be done: try and fail is not an option. However, asking someone try to do this means I am asking you to try: success is bonus, failure is OK. 1N5819-E3/73  1N5819-E3/53 1N5819-E3/54   the first one is 4x cheaper than the last, why ?  aren't they all the same ? How to replace a string on the 5th line of multiple text files? I want to replace the 5th line of multiple text files (file1.txt,file2.txt,file3.txt,file4.txt) with the string " Good Morning " using a single terminal command.  All the text files are located on my ~/Desktop.  Note: My desktop consists of 6 .txt files.I want to apply the change to above mentioned 4 text files only. Triangle Inequality for norm integral $\|f\|_1=(\int_a^b [|f|^2+|f'|^2]\mathsf dx)^{1/2}$. Define $C_1^1[a,b]$ to be the space of continuously differentiable functions on $[a,b]$, with norm $$\|f\|_1=\left(\int_a^b[|f|^2+|f'|^2]\mathsf dx\right)^{1/2}.$$ Show that this is a proper definition of a norm. Is this normed space complete?  I'm stuck on the triangle inequality part. I'm having a hard time showing that $$\|f+g\|_1\leq \|f\|_1+\|g\|_1.$$ Any hints or solutions are greatly appreciated. Limit of $(\cos1/n)^{n^2}$ when $n\to\infty$ I've been trying to solve this limit: $$\lim_{n\to \infty} \left(\cos\left(\frac{1}{n}\right)\right)^{n^2}$$ I solved it using l'hopital but I have to try in another way. I tried to make the expression:  $$ \lim_{n \to \infty}\exp\left(n^2\ln\left(\cos\left(\frac{1}{n}\right)\right)\right)$$  but it didn't work out for me... How to determine which window manager is running Is there any way (such as a command or environmental variable) to determine what window manager is the one actively running in the current session? There are several Q&amp;A threads that explain how to download youtube videos using the terminal.  However, I would also like to learn how to extract the video's soundtracks as MP3 files--also using only the terminal.  Answers briefly explaining how to use youtube-dl or other similar utilities before explaining how to extract the MP3 would be ideal for the sake of having all the information in one place--even though this aspect has been covered in other posts. This is the gift that my dad sent (to) me This is the gift that my dad sent me on my birthday.   Vs   This is the gift that my dad sent to me on my birthday.  Is to required?   Also   Presenting you guys, the trailer of the film.   Vs   Presenting to you guys, the trailer of the film.    Is to required? Why does the order of the loops affect performance when iterating over a 2D array? Why is the following C# code not allowed:  public abstract class BaseClass {     public abstract int Bar { get;} }  public class ConcreteClass : BaseClass {     public override int Bar     {         get { return 0; }         set {}     } }      CS0546 'ConcreteClass.Bar.set': cannot override because 'BaseClass.Bar' does not have an overridable set accessor What are the benefits of running chef-server instead of chef-solo? I am looking at automated deployment solutions for my team and have been playing with Chef for the past few days. I've been able to get a simple web app up an running from a base Red Hat VM using chef-solo.  Our end goal is to use Chef (or another system) to automatically deploy application topologies to the cloud as we run builds. Our process would basically run like this:   Our web app code, dependencies, and chef cookbooks are stored in SCM A build is executed and creates a single package for images to acquire and test against The build engine then deploys new cloud images that run a chef client to get packages installed. The images acquire the cookbooks from SCM or the Chef server and install everything to get up and running   What are the benefits and/or use cases for getting a Chef Server running?  Are there any major benefits to have a Chef Server hold and acquire the cookbooks from SCM vs. using chef-solo and having a script that will pull the cookbooks from SCM? Connecting desktop computer to the internet through laptop wifi Due to some home network complications I have had to move my router to a seperate part of the house, therefore the wired network I had set up can no longer work. Before I find the time to go out and buy a Wifi adapter for my desktop PC, I have a laptop that uses a built in Wifi card to connect to my router and this can connect to the internet, and I was wondering if I could somehow access the internet on my desktop PC via my laptop.  I'm hoping for a not-so-complex solution as this will only be set up for a few days, but it is quite vital that my desktop computer gets internet access.  Does anyone have experience in this sort of thing and can help me out? Thanks. Strange, unexpected behavior (disappearing/changing values) when using Hash default value, e.g. Hash.new([]) Does the full quarantine period have to be observed for short trips of less than 14 days to England? I am planning to go to England for 2 days in preparation of moving (I already have a place rented and would be staying there) a few weeks later. I am coming from a country where I would need to do a 14 day quarantine as soon as I enter England. Does this mean that I have to stay in England for 14 days or can I leave the country before the end of the 14 day quarantine without facing a penatly? I have found no information about what the rules are for planned stays of less than 14 days on the , while  seems to say that short trips are OK. Official sources would be appreciated. I have 3 old 3.5" internal hard drives sitting gathering dust at the moment. 2 are SATA, and one IDE. I want to either start putting them to use, or dispose of them to clear up some space.  What is the best approach towards disposing of the drives in terms of thoroughly cleaning the contents before throwing away or selling? Are there any recommendations for good software to use to do this?   Are there any 100% successful methods which result in having a usable drive at the end? I am having a strange problem in ArcGIS Toolbox.  I am trying to use the  tool from ArcToolbox. When I open the tool, there is no possibility to input Simplification Tolerance. Please see the attached image.  I can run the tool as a batch and from the Python window without any problem.  I am using ArcGIS 10(Editor) with Service Pack 5 on Windows 7 64Bit (English) and Windows Server 2008 64Bit (German). On both machines, I have the same problem. Any ideas?    I have reinstalled the software but the problem remains. Consider the sentence &quot;I can run faster than 15 miles per hour.&quot; Its meaning is clear and to my eyes obviously grammatically correct. Now let me present some variations that have given me trouble for a long time.  I am faster than 15 miles per hour. – To me this is clearly incorrect. Directly comparing me to a speed doesn't seem right. We need to compare my speed to a speed, or me to another person.  I can run faster than him. – Compared to the base sentence, there is a distinct shift in meaning of the comparison. While before I named a speed faster than which I can run, now I am naming a person. It doesn't seem quite right. I realize the parts of speech can change, but my initial objection is that &quot;him&quot; is not a speed.  I can run faster than he. – This seems most correct to me, but still somehow feels objectionable. Is this in fact the correct way to say it? And if so, is it proper as is or need I say &quot;... faster than he can&quot; or even &quot;... faster than he can run?&quot;  I am faster than him. – With &quot;am&quot; instead of &quot;can run&quot; it now seems slightly more correct. But is it?  I am faster than he. – I'm in doubt here. It doesn't seem wrong to me to say, &quot;I am faster than he is&quot; or even &quot;I am faster than he is fast.&quot; (Though I suppose that is a given since I could hardly properly compare to some other category as in &quot;I am faster than he is smart.&quot;)  My speed is faster than his. – Hmm. This seems more proper as &quot;my speed is greater than his.&quot;   So which of these constructions is correct and which is incorrect? Is there a general rule that I can follow? UPDATE The scholarly article  may be of great interest to some readers!  Once we accept that the elided constituent and its antecedent can differ in form, it becomes reasonable to ask how large this difference can be. The answer in Rooth (1992), Fiengo and May (1994), Chung et al. (1995) and subsequent work is that the wiggle room is actually quite small: the elided constituent and its antecedent are allowed to differ only in the realization of inﬂectional morphology. Other than that, both constituents have to be syntactically and lexically isomorphic. Why is "the set of all sets" a paradox, in Layman's terms? I've heard of some other paradoxes involving sets (i.e., &quot;the set of all sets that do not contain themselves&quot;) and I understand how paradoxes arise from them.  But this one I do not understand. Why is &quot;the set of all sets&quot; a paradox?  It seems like it would be fine, to me.  There is nothing paradoxical about a set containing itself. Is it something that arises from the &quot;rules of sets&quot; that are involved in more rigorous set theory? Understanding QGIS buffer tool units I  have had no luck getting the buffer tool to accept anything but degrees as units of measure.  I have found lots of stuff saying the layer needs to be reprojected and saved but it hasn't worked at all for me.   Is there a way I could create a buffer without using ftools or at least force the units to meters somehow?  As a workaround I converted meters to degrees (lat) and used that but the final product needs to be as close to reality as possible.  Things I've tried:   setting every unit option I could find to meters (where possible). setting everything to NAD83/Maryland (data is for Washington, DC) and saving it as such (as layers in ESRI shape files). reimporting the reprojected layers setting relevant layers to Google Mercator   The was tried followed by creating a buffer. Many were tried in combination. QGIS 1.7.3 Slackware64 current (qgis from SBo-13.37 repo, tried on multilib and plain 64it with same results)