html - CSS conflicts with <br> tag -


i have following html , css code

<body>         <div class='topbar'>             <form action='q.php' method='get' class='spage'>                 <input type='text' class='search lt' placeholder='search' name='s' autofocus='autofocus' style='border-bottom:0px;'>                 <input type='submit' class='srchbtn lt' value='go' style='background:#fff; color:#e40046;'>             </form>         </div> </body> 

when try give following css code above html code,

.spage{   margin-top: 5px;   margin-left: 25px;  } 

the problem margin-top property brings down tobar div. want bring spage down. how can fix it

if no other css conflicting, it's margin-top low, maybe don't notice change because 5px top nothing. try increasing value 30px or 50px , you'll notice margin.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -