Click to See Complete Forum and Search --> : css/forms/page layout


chillin209
05-03-2005, 09:37 PM
Hey guys, I need help with a problem here. On this page

www.rantingrage.com/cnew.html I'm trying to put this form in the middle :

<form method="post" enctype="text/plain" action="mailto:steve@perow.com">

Name : <input type="text" name ="name" />
<p>

City : <input type="text" name="city" />
</p>
<p>
Birthdate : <input type="text" name="birthdate" />
</p>
<p>
Email : <input type ="text" name=email" />
</p>
<p>
<input type="submit" value="Submit"/>

The form works fine..I just can't position it in the middle of the content box of my layout that I did in photoshop. Is it even possible to do? And how do I do it...I have a css/xhtml begginner book. Thats where I got the form, but it doesn't talk about how to position it..Any takers?

grailquester5
05-03-2005, 09:45 PM
Here's a hint: Look up absolute/relative positioning. You have to create a <div> around the form and position it with CSS.

chillin209
05-03-2005, 09:49 PM
ahh not a direct answer thats great..I just wanted direction in the book...btw I got the book you sugested a few days ago..I'll post again once I've figured it out :)

BonRouge
05-03-2005, 09:52 PM
Your image looks very nice and all that, but before you go any further, please read the article in my sig - it's an eye-opener.

grailquester5
05-03-2005, 10:05 PM
That's a good book - glad you picked it up. Trust me - everything you need is in there... at least, to get started on the basics... then you can move on up. ;) BTW - BonRouge's article is great - make sure you check that out as well...

chillin209
05-03-2005, 10:08 PM
I'm reading the article now some of it is greek to me heh...only reason I have tables in my layout is because thats how photoshop did the html.. So thats just how I left it..so I'm open to learning css...I knew it was the way to go years ago..just never got into it...lazy I guess. haha..

BonRouge
05-03-2005, 11:28 PM
It's a common mistake - letting something like photoshop make a webpage for you. My advice - don't do it again. In fact, I'd go back to your original image and try to figure out a good way of using it with css.

chillin209
05-03-2005, 11:41 PM
Sounds good...I'll start playing around css more I've got a begginer book..its just matter of figuring out what does what etc etc thanks..