Rocket
Posts: 45
|
| Posted: 11/23/2010, 4:56 PM |
|
How does one center a form in the browser. For example, the Login form always displays to the left, I'd like to have it centered in the browser.
I've played around with the page settings, but then I wind up getting scroll bars. Again, I'm probably missing something absurdly simple.
One last question, on the Data Tab, there is an option for Attributes. What is this for and how would one ues it?
Pointers are appreciated, thanks.
Rocket
|
 |
 |
JimmyCrackedCorn
Posts: 583
|
| Posted: 11/23/2010, 11:59 PM |
|
wrap the form in a div with align set to center. or you could use a table.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
Rocket
Posts: 45
|
| Posted: 11/24/2010, 7:42 PM |
|
Quote JimmyCrackedCorn:
wrap the form in a div with align set to center. or you could use a table.
Thank you sir. I've tried with a table before and couldn't get it centered (unless I tweak the page prop). I'd like to use a table, but if I need to use a div, I'll figure that out.
Thanks again for the assist.
|
 |
 |
datadoit
|
| Posted: 11/25/2010, 6:05 AM |
|
Let CodeCharge create your record form, which will be in a table. Then,
as JCC suggested, wrap it all up in a <div>.
<div align="center" style="margin 0 auto; width=900px;">
<!-- BEGIN Record Login -->
<table>
<form>
[...]
</form>
</table>
<!-- END Record Login -->
</div>
|
|
|
 |
CodeChargeMVP
Posts: 473
|
| Posted: 11/25/2010, 9:03 AM |
|
Just <center> </center> and place the form in the middle.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
Rocket
Posts: 45
|
| Posted: 11/25/2010, 1:14 PM |
|
Quote CodeChargeMVP:
Just <center> </center> and place the form in the middle.
Oh man; this is stupid - silly of me , of coure I went into the HTML tab and viola. For some reason I was poking (stumbling...) around the GUI. Sorry all, still new but I'm getting there.
Thanks to eveyone for their assistance and patience (patients???)
Cheers
|
 |
 |
JimmyCrackedCorn
Posts: 583
|
| Posted: 11/25/2010, 4:37 PM |
|
not stupid at all!
BTW, according to W3Schools (http://www.w3schools.com/tags/tag_center.asp),
Quote :The <center> tag is supported in all major browsers. However, it is deprecated and should be avoided!
use the code datadoit provided
_________________
Walter Kempees...you are dearly missed. |
 |
 |
Rocket
Posts: 45
|
| Posted: 11/25/2010, 5:22 PM |
|
Quote JimmyCrackedCorn:
not stupid at all!
BTW, according to W3Schools (http://www.w3schools.com/tags/tag_center.asp),
Quote :The <center> tag is supported in all major browsers. However, it is deprecated and should be avoided!
use the code datadoit provided
Thanks for the head-up, I actually recalled reading that tidbit on the interweb and used an inline style.
I am amazed with the support here. In most forums when a topic has been pretty much concluded, the donations stop. I've found that not to be the case here, which means that everyone reads the posts and contribute to the conclusion and benefit of the poster.
This is undoubtably the best money I have spent in my company in years. And when one is a small business, one wants (needs) value. Value is in spades here, and if anyone ever says different, why I'll just fly down from Canada and have a "what for" .
Thanks to all.
Cheers.
|
 |
 |
MichaelMcDonald
Posts: 640
|
| Posted: 11/25/2010, 7:18 PM |
|
and I will fly up from Australia...
_________________
Central Coast, NSW, Australia.
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 05/13/2011, 1:38 AM |
|
Hi,
I don´t know if anybody has release about this:
On our application software we´ve got an header and a bottom, those header and bottom are perfectly centered on the screen, I tryed also to perfectly center the forms, but what my surprise than the forms aren´t perfectly centered on the screen, the forms appear slightely to the left, ¿why this happen?
If you pay attention to the design view, you release than the form is inside a red line, then you see than there´s a portion of blank space between the form and the red line on both sides left and right, when you try to center the form, you´re not only centering the form, you´re centering the red line with the blank spaces and the form inside, then this is the reason why the form appear slightely to the left.
I´ve try to match the red line with just the right form size,but when I try this the page comes corrupt.
¿Does anybody knows a way to avoid this and match the red line with the right form size?
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
Waspman
Posts: 948
|
| Posted: 05/13/2011, 4:26 AM |
|
unless it's tabular data, I'm clearing all formatting that CCS puts in (even when it trys to keep putting it back in grrrr) and styling it with my own CSS.
_________________
http://www.waspmedia.co.uk |
 |
 |
Oper
Posts: 1195
|
| Posted: 05/13/2011, 7:13 AM |
|
Do you have a link?
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
damian
Posts: 838
|
| Posted: 05/14/2011, 8:33 PM |
|
check the style definitions.
set margins and padding appropriately.
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
|