Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-17 19:05:12
- tez
- Member
- Registered: 2006-02-25
- Posts: 22
align a form?
hi
how do I align a form?
I’d like to use a slideshow and center it at the top of my home page.
I’ve created a form and popped in the slideshow code.
I’ve added the form to a sticky post which goes at the top of the home page.
I know that at the moment that it will automatically align to the left because of my css (see below)
But I’d just like to center the form and continue with the text aligned to the left.
I hope that’s clear and you can help.
Thanks
tezz
FYI:
my css
#wrap
{
background: #fff;
border-left: 0px solid #444;
border-right: 0px solid #444;
border-bottom: 0px solid #444;
margin: 0 auto;
padding-top: 5px;
text-align: left;
width: 700px;
}
Offline
#2 2006-05-19 19:41:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: align a form?
Hi tez, can’t you just wrap your form in a div id=“slideshow”?
<del>#wrap #slideshow {text-align: center;}</del>
Edit: no sorry, that won’t work. You need to do something with positioning. Something like this perhaps?
#wrap #slideshow {position: relative; left: 50%; width: 400px; margin-left: -200px;}
Last edited by els (2006-05-19 19:45:49)
Offline
Pages: 1