PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Aug 14, 2020 3:35 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Sep 17, 2015 6:01 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom
I need to get this input box and submit button to line up horizontally, and there seems to be a lot online about this issue with the white space above the Submit button.

This is mine. What am I doing wrong? It needs it so the top and bottom of the 'GO' button line up perfect with the input box.
Syntax: [ Download ] [ Hide ]
<style>

.logobox_search
{
float: left;
width: 295px;
margin-left: 56px;
margin-top: 40px;
font-size: 25px;
color: #ffffff;
text-align: center;
}

.logobox_search input
{
border: 2px solid #153878;
font-size: 23px;
text-align: center;
padding: 8px;
margin-bottom: 10px;
}

.logobox_search input[type="submit"]
{
background-color:  #153878;
color: #ffffff;
font-size: 21px;
text-align: center;
padding: 8px;
margin-bottom: 10px;
}
</style>

<div class='logobox_search' >
      <form method='GET' action='/index.php'>
  <input type='text' name='search' placeholder='Search Jobs'><input type='submit' value='Go'>
  </form>
  <i class="fa fa-phone fa-lg"></i> 00000 000 000
    </div>  


Attachments:
File comment: How it looks now.
test.jpg
test.jpg [ 12.62 KiB | Viewed 3576 times ]

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Top
 Profile  
 
PostPosted: Thu Sep 17, 2015 7:23 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
http://codepen.io/anon/pen/GpZWqJ?editors=110

That's what you get with just the code provided. What else is wrapping this and what other rules are affecting it?

_________________


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group