Advertisement:

Author Topic: Twitter inc.search.php <--- how to centre it?  (Read 1030 times)

196806

  • Newbie
  • *
  • Posts: 5
Twitter inc.search.php <--- how to centre it?
« on: April 15, 2014, 06:18:49 am »
Hello,

I've just started playing with Osclass; I am by no means a PHP, CSS or HTML expert but I've found things easy(isn) to understand so far.

A little problem - on my Twitter theme the form generated by inc-search.php is left aligned and I can't for the life of me figure out how to centre it.

Can you help a newbie?

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Twitter inc.search.php <--- how to centre it?
« Reply #1 on: April 16, 2014, 08:05:13 am »
find thes line in bootstrap.min.css:

fieldset{margin-bottom:18px;padding-top:18px;padding-left:60px;}

padding-left:60px; was added

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Twitter inc.search.php <--- how to centre it?
« Reply #2 on: April 16, 2014, 06:46:51 pm »
actually if you go to get.bootstrap.com, you will see you stack the class with an offset so you don't have to change the css

I just redid the twitter theme for the market, updated to 3.xx from the 1.xx it is now. give us some time to fully vet it and it will be available soon. maybe a day or two.

196806

  • Newbie
  • *
  • Posts: 5
Re: Twitter inc.search.php <--- how to centre it?
« Reply #3 on: April 17, 2014, 12:18:42 am »
Ah thank you. CSS is not my strong suit. I was looking for the relevant class but couldn't seem to find it.

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Twitter inc.search.php <--- how to centre it?
« Reply #4 on: April 17, 2014, 12:35:32 am »
I think the old theme would be offset-3

as I said, Im working with the new stuff so I don't know the old classes.

so in the <div class="span3 offset2">

just play around with the 2 and 3 until it gets into the right spot, keeping in mind the SUM of the two needs to equal the total of the row. so if the row is span16 then the class would be span13 offset3. Providing there is nothing else in the row....(then all needs to equal 16)


http://getbootstrap.com/2.3.2/scaffolding.html