Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2019-05-28 21:01:35

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Center search form (resolved)

Hi,

Please,
I don't find how to center the search form

<div id="background">&nbsp;</div>
	<div id="corps" class="the__copy">
  <div class="content clearfix">
    <h1>Trouvez l'image pour votre projet créatif</h1>
</div>
<form action="backlight/search" method="GET"  class="search-form">
<input type="text" id="q" name="q" value="" placeholder="Rechercher"/>
<button type="submit" class="fa_pseudo">
        <span>Rechercher des images</span>
    </button>
</form>

thanks
Nico

Last edited by Nico3939 (2019-06-05 23:46:05)

Offline

#2 2019-05-28 22:44:50

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Center search form (resolved)

is this something you're inserting into a page?

if so, just add some inline styling to the form element:

<form action="backlight/search" method="GET"  class="search-form" style="margin:0 auto;">

or you can do it with custom css:

form.search-form {
   margin: 0 auto;
}

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2019-05-29 06:27:31

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Center search form (resolved)

thank you Rod, much simpler than what I did! wink

Offline

Board footer

Powered by FluxBB