-2

There a huge indent on the right side of the input labels

HTML:

<div id="div-area">
  <p id="title-div1">
    Find pages with...
  </p>
  <label>
    all these words:
    <input type="text" name="dummy1" id="input-field1" />
  </label>
  <label>
    this exact word or phrase:
    <input type="text" name="dummy2" id="input-field1" />
  </label>
  <label>
    any of these words:
    <input type="text" name="dummy3" id="input-field1" />
  </label>
  <label>
    none of these words:
    <input type="text" name="none-words" id="input-field1" />
  </label>
  <label>
    numbers ranging from:
    <input type="text" name="ranging-from" id="input-field1" />
  </label>
</div>

CSS:

#div-area {
  width: 50%;
  background-color: #d93025;
  padding-left: 0;
  
}

#input-field1 {
  width: 500px;
  font-size: 140%;
}

I'm not really able to understand why's that, because I'm not actually running padding or anything 🤔

I want the output to be somewhat like Google Advanced Search's page: https://www.google.com/advanced_search

New contributor
Akshaj Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
7
  • Welcome to Stack Overflow! Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. Commented 6 hours ago
  • stackoverflow.com/questions/30208335/… Commented 6 hours ago
  • Hello @akshaj-singhal I made some edits to your question to make it more readable. Feel free to approve it :) Commented 6 hours ago
  • 1
    Your CSS is telling the parent element to confine its width to 50% and also you set a width of 500px. What is the reason for using only part of the viewport? Commented 6 hours ago
  • 1
    You are using the same ID "input-field1" five times. That's invalid HTML. Commented 5 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.