I am trying to create a nav bar and i don't know why i am facing this problem : Trying to set the li within the ul as inline-block works, but it is moving the whole list below the image i am using as a logo. Can someone explain why is this happening and how to fix it?    * {   margin: 0;   padding: 0;   box-sizing: border-box; }  body {   background-color: black; }  img {   display: inline-block;   width: 100%;   height: auto;   background-position: center;   background-size: cover;   background-repeat: no-repeat; }  .logo {   width: 150px;   position: center;   display: inline-block; }  #nav-bar {   background-color: yellow; }  ul {   list-style-type: none;   margin: 0;   padding: 0;   display: inline-block; }  #nav-bar li {   display: inline-block; } &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt;   &lt;head&gt;     &lt;meta charset="UTF-8" /&gt;     &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;     &lt;title&gt;Document&lt;/title&gt;     &lt;link rel="stylesheet" href="style.css" /&gt;   &lt;/head&gt;   &lt;body&gt;     &lt;header id="header"&gt;       &lt;nav id="nav-bar"&gt;         &lt;img src="https://lh3.googleusercontent.com/proxy/Gyq8iOFxCVu1elwlR_1-GxK3u-TUWFFlOQSqrfDZgAHetn8z2IwFTVlfxbFKi22xFMo50VuCSigKfek8gVmIspvxC-TIr0Ve0a5eke9v72M3k9xkxmhrsdxYpiqgnFm6Sg" alt="" class="logo" /&gt;         &lt;ul&gt;           &lt;li class="nav-link"&gt;&lt;a href="#"&gt;acasa&lt;/a&gt;&lt;/li&gt;           &lt;li class="nav-link"&gt;&lt;a href="#"&gt;despre&lt;/a&gt;&lt;/li&gt;           &lt;li class="nav-link"&gt;&lt;a href="#"&gt;produse&lt;/a&gt;&lt;/li&gt;           &lt;li class="nav-link"&gt;&lt;a href="#"&gt;cumpara&lt;/a&gt;&lt;/li&gt;         &lt;/ul&gt;       &lt;/nav&gt;       &lt;img src="cover.jpeg" alt="" id="header-img" /&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/header&gt;      &lt;section class="products"&gt;       &lt;div class="product1"&gt;&lt;/div&gt;       &lt;div class="product2"&gt;&lt;/div&gt;       &lt;div class="product3"&gt;&lt;/div&gt;     &lt;/section&gt;      &lt;div class="form"&gt;       &lt;!-- Formular cumparare --&gt;     &lt;/div&gt;   &lt;/body&gt; &lt;/html&gt;
I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers? &lt;div id=&quot;header&quot;&gt;   &lt;img src=&quot;..&quot; &gt;&lt;/img&gt;   &lt;h1&gt;testing...&lt;/h1&gt;   &lt;img src=&quot;...&quot;&gt;&lt;/img&gt; &lt;/div&gt;
Is it possible to write a template that changes behavior depending on if a certain member function is defined on a class?  Here's a simple example of what I would want to write:  template&lt;class T&gt; std::string optionalToString(T* obj) {     if (FUNCTION_EXISTS(T-&gt;toString))         return obj-&gt;toString();     else         return "toString not defined"; }   So, if class T has toString() defined, then it uses it; otherwise, it doesn't. The magical part that I don't know how to do is the "FUNCTION_EXISTS" part. Would I be scrutinized at the border for traveling to the US twice in a quick succession? I am a British citizen visiting the USA in early August for a two week vacation with friends. After the holiday I'm returning to my home in the UK for three weeks. After that I will return to the USA and will be working for my British employer under the Visa Waiver Program for a period of 80-85 days.  I have read already that there is technically no problems with this under ESTA rules, but should I limit this working period to a shorter time frame (e.g. 70 or so days) so that it does not negatively affect the decision made by the POE officer? Ideally I would love to be over in the states for the near-full 85 day period.  Any advice or previous experiences anyone can offer?  Some clarifications: As confirmed by the immigration attorney, as I am employed by my UK employer, it will be regarded as a business trip, the important part being that I will be working officially as a consultant for my UK employer just overseas for the allotted 85 or so days How to register my unregistered account Possible Duplicate:          I've been using my SO account for couple of days, but I am not registered and I do not want to lose all my questions. How can I register and keep my questions from my unregistered account? If a Windows shop moves "everything" to the cloud, does it still need Active Directory? Taking a spin off of this question:  in a new direction for 2014.  Taking into account a basic Windows infrastructure:   domain controllers Exchange 2007/2010/2013 Sharepoint SQL File Servers / Print Servers AD Integrated DNS AD authenticated 3rd party devices (let's say 802.1X for networking and maybe some content-filtering, etc.) AD/LDAP authenticated "administrative" functions on IT apps/hardware/etc. perhaps some KMS stuff throw in a CA if you'd like home grown apps 3rd party in-house apps   Now, let's rip it all out and decide we are going to the cloud.  We've contracted to move Exchange/Sharepoint/File Services to Office 365.  SQL will now be hosted as well on  something like Azure.  We've gotten away from the need for AD-DNS and simply run everything via a simple Windows DNS server.  We still need 802.1X and would like SSO if possible to our various cloud apps.  Home grown and 3rd party in-house apps would likely stay, but have the ability to use internal user databases instead of AD authentication  The question is...do we really need Active Directory at all?  Or more to the point, AD on-premise or even hosted via Azure or similar (ADFS) or running ADDS on a hosted VM through Azure or similar.  Could/Should we look to something else like a 3rd party SSO option such as  or similar that can provide SSO functionality even if it is as simple as LastPass or similar for each user?  What kind of legitimate needs does AD fulfill if everything else in the cloud?  Could a MS-centric infrastructure get away with not having AD at all if they move everything that previously relied on AD to SaaS offerings that didn't rely on AD authentication? How can I eliminate condensation on my toilet tank? My toilet is getting a great deal of condensation on the tank and dripping onto the floor. What can be done to address condensation on the exterior of a toilet tank? How to identify the process locking a file? How do I remove extra Skype icon or ghost icons for removed apps from GNOME shell? Explanation of seasons in "A Song of Ice and Fire" How to loop over the lines of a file? Say I have this file:  hello world hello world   This program  #!/bin/bash  for i in $(cat $1); do     echo "tester: $i" done   outputs  tester: hello tester: world tester: hello tester: world   I'd like to have the for iterate over each line individually ignoring whitespaces though, i.e. the last two lines should be replaced by  tester: hello world   Using quotes for i in "$(cat $1)"; results in i being assigned the whole file at once. What should I change? What is a good criterion or rule-of-thumb for determining when a control should be greyed-out and when should it be completely invisible? "thanks for flagging" popup gets messed up when the comment is automatically deleted For some comments, the comment is automatically deleted when you raise a flag. This includes certain keywords and short +1 comments. But when you raise that flag with the new comment flag interface, the "thanks for flagging" shows up in the top right when the comment is deleted:      As opposed to what happens when you raise a flag on a comment that doesn't auto-delete: I have a problem. I am going to make a minecraft animation in blender. But when I put a minecraft texture on a 3d cube that is 16x16x16 it is very low resolution is there a way to get the texture in a better resolution or is there a way to make blender make the texture better?  I hope you have an answer. Thanks in advance Why do I need 50 reputation to comment? What can I do instead? Users with less than 50 reputation points cannot write comments on questions and answers that they don't own.  Why does this limit exist? But I want to contribute now. What should I do instead? But I can't write a good answer without more information! Shouldn't I be allowed to post comments if I have reputation on a different site? But I saw a new user posting a comment! How did they do it? Why do I need 50 reputation to comment on my own post?   See also:    in the Help Center Suppose we have a random variable $X \sim f(x|\theta)$. If $\theta_0$ were the true parameter, the the likelihood function should be maximized and the derivative equal to zero. This is the basic principle behind the maximum likelihood estimator.   As I understand it, Fisher information is defined as   $$I(\theta) = \Bbb E \Bigg[\left(\frac{\partial}{\partial \theta}f(X|\theta)\right)^2\Bigg ]$$  Thus, if $\theta_0$ is the true parameter, $I(\theta) = 0$. But if it $\theta_0$ is not the true parameter, then we will have a larger amount of Fisher information.   my questions    Does Fisher information measure the "error" of a given MLE? In other words, doesn't the existence of positive Fisher information imply my MLE can't be ideal?  How does this definition of "information" differ from that used by Shannon? Why do we call it information? How do I add "citations" at the end of the document as done here? Is there such a thing as charge density in quantum mechanics? Is there such a thing as a time-varying charge density in quantum mechanics? I am looking at the tungsten filament in a light bulb. Am I allowed to say that there is a wave function which describes that filament, and that in some sense there is a time-varying charge density (which some people call a probability) associated with the square of that wave function? There are electrons which have a probability distribution, and there are nuclei which are vibrating within the lattice, but all in all is there, or is there not, a time-varying charge distribution associated with that glowing filament? And if not, why not?  EDIT: There seems to be some question as to just what kind of charge-density fluctuations I am talking about. Let me clarify: in a hydrogen atom in the ground state, I would say there are NO charge density fluctuations. But if there is a superposition of the ground state and a 2p state, I would say the charge distribution fluctuates sinusoidally at the difference frequency of the two states. THAT is the kind of charge density fluctuation I am asking about for in the tungsten filament. Does it or doesnt' it?  I hope this clarifies the intent of my question.   RE-EDIT: In a separate (and rather hard-fought) discussion, it appears that people who know more than me agree that there is indeed an oscillating charge distribution in the hydrogen superposition as described above (see  ).  So if there is an oscillating charge in the hydrogen atom, why wouldn't there be oscillating charge in a heated tungsten filament? Weird thing in references/bibliography page Xubuntu Dropbox icon fail Use of Indefinite Articles(a,an) Consider the following sentences:  I am staying in a hotel nearby. I am staying in an hotel nearby.  I know that both are correct. But I would like to know why? I do not see any proper reason for the second one as the 'h' is not silent as in French. So, what could be the reason? How to add a custom field to the media screen (image/gallery)? I’m trying to add a custom field to image and gallery edit screen.  I’m aware there are similar questions here, although answers either don’t work with the current version or they add field only to upload screen while I need a field to be visible in all edit screens (see below).  For this, I believe, you’ll have to mess with backbone.js as attachment_fields_to_edit only adds to upload screen.  Adding field with attachment_fields_to_edit    ↑ This is upload image screeen. Here Style is added with attachment_fields_to_edit filter, and my_field is added with ACF plugin.   But they are missing in edit screen in the post    ↑ Click edit on the actual post    ↑ No style &amp; my_field fields!  The question  How to add fields to still have them on the edit screen? Ideally answer will include adding fields to gallery edit screen if it’s a similar process  This question is really important for me so I’ll be adding a 100 rep bounty when it’s available.   Thanks!