MyBB Community Forums

Full Version: Columns remove error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Ok, let's leave alone horisontal lines.
Tel me how to edit provided code, to align username texbox?

Here is mine code from template:

<table><tr>
<td class="trow1"><input type="text" class="textbox" id="author" name="author" size="40" maxlength="{$mybb->settings['maxnamelength']}" /><br /><span class="smalltext"><input type="checkbox" class="checkbox" name="matchusername" value="1" checked="checked" />&nbsp; {$lang->match_username}</span></td>
<td class="trow1">&nbsp;</td>
</tr></table>

hmmm, everywhere is like mine. look here, maybe you'll get an idea.
http://www.atomicjustice.com/forum/search.php

even http://community.mybboard.net/search.php is like that.
Because the trow class doesn't have width value, so you need to add the width value to the td, so you can make it align left, right or center.

<td class="trow1" width="100%">

Then, you can make the textbox in a div:

<div style="text-align: center">
<input type="text" class="textbox"..... maxlength="{$mybb->settings['maxnamelength']}" />
</div>

Then, just change the span into div:

<div class="smalltext" style="text-align: center">
<input type="checkbox" class="checkbox" name="matchusername" value="1" checked="checked" />&nbsp; {$lang->match_username}
</div>

I hope it works.

Another simple way:

Add align to the table

<table align="center">
Did that, got it same result, look:
http://www.globalgsm.mk/search.php

Code:
<td class="trow1" width="100%"><div style="text-align: left"><input type="text" class="textbox" id="author" name="author" size="40" maxlength="{$mybb->settings['maxnamelength']}" /></div><br /><div class="smalltext" style="text-align: left"><input type="checkbox" class="checkbox" name="matchusername" value="1" checked="checked" />&nbsp; {$lang->match_username}</div>

Quote:nother simple way:

Add align to the table

Code:
<table align="center">

Where exatly i need to put that code ?
In the table tags (in that part of that code):

<table><tr>
<td class="trow1">

If you want to align it to the left, you don't need to change the code. They are left by default. I thought you need to align them to center or right.
ohh. ok. You know, there was duplicate trow1 codes in two places, thats why template shows to extra lines. fixed that.

Thanks a lot. for the BIIIG help. Anything i can do for u ?
Ha.. ha.. ha.. Never Mind. Nice to talk to you, apo. Smile
hahha, i know what you think. I am not talking about php or programming, anything else, for example, i am mobilephone servicer , unlocking, flashing, debrending, hardware repairing..
Or you may be intersted in Fitness or BodyBuilding, i am expert in that too, so if you need some advices here is my forum for that support http://www.steroidi.com.mk
Yeah. I already know your forum from the footer of that globalgsm site. That's why I tell you that you have very nice theme. Both of them.
Pages: 1 2 3